diff --git "a/datasets/go/valid.jsonl" "b/datasets/go/valid.jsonl" new file mode 100644--- /dev/null +++ "b/datasets/go/valid.jsonl" @@ -0,0 +1,7325 @@ +{"repo": "prometheus/prometheus", "path": "promql/engine.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close implements the Query interface.", "docstring_tokens": ["Close", "implements", "the", "Query", "interface", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/engine.go#L167-L171", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/engine.go", "func_name": "Exec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Exec implements the Query interface.", "docstring_tokens": ["Exec", "implements", "the", "Query", "interface", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/engine.go#L174-L181", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/engine.go", "func_name": "contextDone", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// contextDone returns an error if the context was canceled or timed out.", "docstring_tokens": ["contextDone", "returns", "an", "error", "if", "the", "context", "was", "canceled", "or", "timed", "out", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/engine.go#L184-L189", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/engine.go", "func_name": "NewEngine", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewEngine returns a new engine.", "docstring_tokens": ["NewEngine", "returns", "a", "new", "engine", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/engine.go#L222-L288", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/engine.go", "func_name": "NewInstantQuery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewInstantQuery returns an evaluation query for the given expression at the given time.", "docstring_tokens": ["NewInstantQuery", "returns", "an", "evaluation", "query", "for", "the", "given", "expression", "at", "the", "given", "time", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/engine.go#L291-L300", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/engine.go", "func_name": "NewRangeQuery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRangeQuery returns an evaluation query for the given time range and with\n// the resolution set by the interval.", "docstring_tokens": ["NewRangeQuery", "returns", "an", "evaluation", "query", "for", "the", "given", "time", "range", "and", "with", "the", "resolution", "set", "by", "the", "interval", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/engine.go#L304-L316", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/engine.go", "func_name": "exec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// exec executes the query.\n//\n// At this point per query only one EvalStmt is evaluated. Alert and record\n// statements are not handled by the Engine.", "docstring_tokens": ["exec", "executes", "the", "query", ".", "At", "this", "point", "per", "query", "only", "one", "EvalStmt", "is", "evaluated", ".", "Alert", "and", "record", "statements", "are", "not", "handled", "by", "the", "Engine", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/engine.go#L355-L395", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/engine.go", "func_name": "cumulativeSubqueryOffset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// cumulativeSubqueryOffset returns the sum of range and offset of all subqueries in the path.", "docstring_tokens": ["cumulativeSubqueryOffset", "returns", "the", "sum", "of", "range", "and", "offset", "of", "all", "subqueries", "in", "the", "path", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/engine.go#L503-L512", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/engine.go", "func_name": "extractFuncFromPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// extractFuncFromPath walks up the path and searches for the first instance of\n// a function or aggregation.", "docstring_tokens": ["extractFuncFromPath", "walks", "up", "the", "path", "and", "searches", "for", "the", "first", "instance", "of", "a", "function", "or", "aggregation", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/engine.go#L607-L622", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/engine.go", "func_name": "errorf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// errorf causes a panic with the input formatted into an error.", "docstring_tokens": ["errorf", "causes", "a", "panic", "with", "the", "input", "formatted", "into", "an", "error", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/engine.go#L676-L678", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/engine.go", "func_name": "recover", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// recover is the handler that turns panics into returns from the top level of evaluation.", "docstring_tokens": ["recover", "is", "the", "handler", "that", "turns", "panics", "into", "returns", "from", "the", "top", "level", "of", "evaluation", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/engine.go#L686-L701", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/engine.go", "func_name": "dropMetricName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// dropMetricName is a cached version of dropMetricName.", "docstring_tokens": ["dropMetricName", "is", "a", "cached", "version", "of", "dropMetricName", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/engine.go#L732-L744", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/engine.go", "func_name": "signatureFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// signatureFunc is a cached version of signatureFunc.", "docstring_tokens": ["signatureFunc", "is", "a", "cached", "version", "of", "signatureFunc", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/engine.go#L747-L762", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/engine.go", "func_name": "evalSubquery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// evalSubquery evaluates given SubqueryExpr and returns an equivalent\n// evaluated MatrixSelector in its place. Note that the Name and LabelMatchers are not set.", "docstring_tokens": ["evalSubquery", "evaluates", "given", "SubqueryExpr", "and", "returns", "an", "equivalent", "evaluated", "MatrixSelector", "in", "its", "place", ".", "Note", "that", "the", "Name", "and", "LabelMatchers", "are", "not", "set", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/engine.go#L890-L901", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/engine.go", "func_name": "vectorSelectorSingle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// vectorSelectorSingle evaluates a instant vector for the iterator of one time series.", "docstring_tokens": ["vectorSelectorSingle", "evaluates", "a", "instant", "vector", "for", "the", "iterator", "of", "one", "time", "series", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/engine.go#L1210-L1236", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/engine.go", "func_name": "signatureFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// signatureFunc returns a function that calculates the signature for a metric\n// ignoring the provided labels. If on, then the given labels are only used instead.", "docstring_tokens": ["signatureFunc", "returns", "a", "function", "that", "calculates", "the", "signature", "for", "a", "metric", "ignoring", "the", "provided", "labels", ".", "If", "on", "then", "the", "given", "labels", "are", "only", "used", "instead", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/engine.go#L1521-L1529", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/engine.go", "func_name": "VectorscalarBinop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// VectorscalarBinop evaluates a binary operation between a Vector and a Scalar.", "docstring_tokens": ["VectorscalarBinop", "evaluates", "a", "binary", "operation", "between", "a", "Vector", "and", "a", "Scalar", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/engine.go#L1583-L1614", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/engine.go", "func_name": "scalarBinop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// scalarBinop evaluates a binary operation between two Scalars.", "docstring_tokens": ["scalarBinop", "evaluates", "a", "binary", "operation", "between", "two", "Scalars", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/engine.go#L1621-L1649", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/engine.go", "func_name": "shouldDropMetricName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// shouldDropMetricName returns whether the metric name should be dropped in the\n// result of the op operation.", "docstring_tokens": ["shouldDropMetricName", "returns", "whether", "the", "metric", "name", "should", "be", "dropped", "in", "the", "result", "of", "the", "op", "operation", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/engine.go#L1909-L1916", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/kubernetes/endpoints.go", "func_name": "NewEndpoints", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewEndpoints returns a new endpoints discovery.", "docstring_tokens": ["NewEndpoints", "returns", "a", "new", "endpoints", "discovery", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/kubernetes/endpoints.go#L48-L115", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/functions.go", "func_name": "calcTrendValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Calculate the trend value at the given index i in raw data d.\n// This is somewhat analogous to the slope of the trend at the given index.\n// The argument \"s\" is the set of computed smoothed values.\n// The argument \"b\" is the set of computed trend factors.\n// The argument \"d\" is the set of raw input values.", "docstring_tokens": ["Calculate", "the", "trend", "value", "at", "the", "given", "index", "i", "in", "raw", "data", "d", ".", "This", "is", "somewhat", "analogous", "to", "the", "slope", "of", "the", "trend", "at", "the", "given", "index", ".", "The", "argument", "s", "is", "the", "set", "of", "computed", "smoothed", "values", ".", "The", "argument", "b", "is", "the", "set", "of", "computed", "trend", "factors", ".", "The", "argument", "d", "is", "the", "set", "of", "raw", "input", "values", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/functions.go#L209-L218", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/functions.go", "func_name": "linearRegression", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// linearRegression performs a least-square linear regression analysis on the\n// provided SamplePairs. It returns the slope, and the intercept value at the\n// provided time.", "docstring_tokens": ["linearRegression", "performs", "a", "least", "-", "square", "linear", "regression", "analysis", "on", "the", "provided", "SamplePairs", ".", "It", "returns", "the", "slope", "and", "the", "intercept", "value", "at", "the", "provided", "time", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/functions.go#L564-L584", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/functions.go", "func_name": "dateWrapper", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Common code for date related functions.", "docstring_tokens": ["Common", "code", "for", "date", "related", "functions", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/functions.go#L842-L859", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/functions.go", "func_name": "getFunction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getFunction returns a predefined Function object for the given name.", "docstring_tokens": ["getFunction", "returns", "a", "predefined", "Function", "object", "for", "the", "given", "name", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/functions.go#L1199-L1202", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/config/config.go", "func_name": "Validate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Validate validates the ServiceDiscoveryConfig.", "docstring_tokens": ["Validate", "validates", "the", "ServiceDiscoveryConfig", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/config/config.go#L64-L126", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/logging/dedupe.go", "func_name": "Dedupe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Dedupe log lines to next, only repeating every repeat duration.", "docstring_tokens": ["Dedupe", "log", "lines", "to", "next", "only", "repeating", "every", "repeat", "duration", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/logging/dedupe.go#L53-L62", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/logging/dedupe.go", "func_name": "Log", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Log implements log.Logger.", "docstring_tokens": ["Log", "implements", "log", ".", "Logger", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/logging/dedupe.go#L91-L112", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/gate/gate.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start blocks until the gate has a free spot or the context is done.", "docstring_tokens": ["Start", "blocks", "until", "the", "gate", "has", "a", "free", "spot", "or", "the", "context", "is", "done", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/gate/gate.go#L32-L39", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/triton/triton.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New returns a new Discovery which periodically refreshes its targets.", "docstring_tokens": ["New", "returns", "a", "new", "Discovery", "which", "periodically", "refreshes", "its", "targets", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/triton/triton.go#L110-L137", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "web/web.go", "func_name": "ApplyConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ApplyConfig updates the config field of the Handler struct", "docstring_tokens": ["ApplyConfig", "updates", "the", "config", "field", "of", "the", "Handler", "struct"], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/web/web.go#L145-L152", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "web/web.go", "func_name": "isReady", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Verifies whether the server is ready or not.", "docstring_tokens": ["Verifies", "whether", "the", "server", "is", "ready", "or", "not", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/web/web.go#L382-L385", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/modtimevfs/modtimevfs.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New returns a file system that returns constant modification time for all files.", "docstring_tokens": ["New", "returns", "a", "file", "system", "that", "returns", "constant", "modification", "time", "for", "all", "files", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/modtimevfs/modtimevfs.go#L30-L32", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "documentation/examples/remote_storage/remote_storage_adapter/opentsdb/tagvalue.go", "func_name": "UnmarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalJSON unmarshals JSON strings coming from OpenTSDB into Go strings\n// by applying the inverse of what is described for the MarshalJSON method.", "docstring_tokens": ["UnmarshalJSON", "unmarshals", "JSON", "strings", "coming", "from", "OpenTSDB", "into", "Go", "strings", "by", "applying", "the", "inverse", "of", "what", "is", "described", "for", "the", "MarshalJSON", "method", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/documentation/examples/remote_storage/remote_storage_adapter/opentsdb/tagvalue.go#L91-L158", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "documentation/examples/remote_storage/remote_storage_adapter/influxdb/client.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write sends a batch of samples to InfluxDB via its HTTP API.", "docstring_tokens": ["Write", "sends", "a", "batch", "of", "samples", "to", "InfluxDB", "via", "its", "HTTP", "API", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/documentation/examples/remote_storage/remote_storage_adapter/influxdb/client.go#L82-L113", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "documentation/examples/remote_storage/remote_storage_adapter/influxdb/client.go", "func_name": "mergeSamples", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// mergeSamples merges two lists of sample pairs and removes duplicate\n// timestamps. It assumes that both lists are sorted by timestamp.", "docstring_tokens": ["mergeSamples", "merges", "two", "lists", "of", "sample", "pairs", "and", "removes", "duplicate", "timestamps", ".", "It", "assumes", "that", "both", "lists", "are", "sorted", "by", "timestamp", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/documentation/examples/remote_storage/remote_storage_adapter/influxdb/client.go#L289-L308", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "documentation/examples/remote_storage/remote_storage_adapter/influxdb/client.go", "func_name": "Describe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Describe implements prometheus.Collector.", "docstring_tokens": ["Describe", "implements", "prometheus", ".", "Collector", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/documentation/examples/remote_storage/remote_storage_adapter/influxdb/client.go#L316-L318", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/marathon/marathon.go", "func_name": "NewDiscovery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDiscovery returns a new Marathon Discovery.", "docstring_tokens": ["NewDiscovery", "returns", "a", "new", "Marathon", "Discovery", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/marathon/marathon.go#L110-L137", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/marathon/marathon.go", "func_name": "newAuthTokenRoundTripper", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newAuthTokenRoundTripper adds the provided auth token to a request.", "docstring_tokens": ["newAuthTokenRoundTripper", "adds", "the", "provided", "auth", "token", "to", "a", "request", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/marathon/marathon.go#L145-L147", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/marathon/marathon.go", "func_name": "newAuthTokenFileRoundTripper", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newAuthTokenFileRoundTripper adds the auth token read from the file to a request.", "docstring_tokens": ["newAuthTokenFileRoundTripper", "adds", "the", "auth", "token", "read", "from", "the", "file", "to", "a", "request", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/marathon/marathon.go#L164-L171", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/marathon/marathon.go", "func_name": "isContainerNet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isContainerNet checks if the app's first network is set to mode 'container'.", "docstring_tokens": ["isContainerNet", "checks", "if", "the", "app", "s", "first", "network", "is", "set", "to", "mode", "container", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/marathon/marathon.go#L286-L288", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/marathon/marathon.go", "func_name": "fetchApps", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// fetchApps requests a list of applications from a marathon server.", "docstring_tokens": ["fetchApps", "requests", "a", "list", "of", "applications", "from", "a", "marathon", "server", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/marathon/marathon.go#L299-L325", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/marathon/marathon.go", "func_name": "randomAppsURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// randomAppsURL randomly selects a server from an array and creates\n// an URL pointing to the app list.", "docstring_tokens": ["randomAppsURL", "randomly", "selects", "a", "server", "from", "an", "array", "and", "creates", "an", "URL", "pointing", "to", "the", "app", "list", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/marathon/marathon.go#L329-L333", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/marathon/marathon.go", "func_name": "appsToTargetGroups", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// appsToTargetGroups takes an array of Marathon apps and converts them into target groups.", "docstring_tokens": ["appsToTargetGroups", "takes", "an", "array", "of", "Marathon", "apps", "and", "converts", "them", "into", "target", "groups", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/marathon/marathon.go#L336-L343", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/marathon/marathon.go", "func_name": "extractPortMapping", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get a list of ports and a list of labels from a PortMapping.", "docstring_tokens": ["Get", "a", "list", "of", "ports", "and", "a", "list", "of", "labels", "from", "a", "PortMapping", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/marathon/marathon.go#L467-L488", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "config/config.go", "func_name": "Load", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Load parses the YAML input s into a Config.", "docstring_tokens": ["Load", "parses", "the", "YAML", "input", "s", "into", "a", "Config", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/config/config.go#L40-L53", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "config/config.go", "func_name": "LoadFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadFile parses the given YAML file into a Config.", "docstring_tokens": ["LoadFile", "parses", "the", "given", "YAML", "file", "into", "a", "Config", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/config/config.go#L56-L67", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "config/config.go", "func_name": "resolveFilepaths", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resolveFilepaths joins all relative paths in a configuration\n// with a given base directory.", "docstring_tokens": ["resolveFilepaths", "joins", "all", "relative", "paths", "in", "a", "configuration", "with", "a", "given", "base", "directory", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/config/config.go#L147-L209", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "config/config.go", "func_name": "isZero", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isZero returns true iff the global config is the zero value.", "docstring_tokens": ["isZero", "returns", "true", "iff", "the", "global", "config", "is", "the", "zero", "value", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/config/config.go#L336-L341", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "config/config.go", "func_name": "CheckTargetAddress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CheckTargetAddress checks if target address is valid.", "docstring_tokens": ["CheckTargetAddress", "checks", "if", "target", "address", "is", "valid", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/config/config.go#L525-L531", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/consul/consul.go", "func_name": "NewDiscovery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDiscovery returns a new Discovery for the given config.", "docstring_tokens": ["NewDiscovery", "returns", "a", "new", "Discovery", "for", "the", "given", "config", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/consul/consul.go#L165-L215", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/consul/consul.go", "func_name": "shouldWatch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// shouldWatch returns whether the service of the given name should be watched.", "docstring_tokens": ["shouldWatch", "returns", "whether", "the", "service", "of", "the", "given", "name", "should", "be", "watched", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/consul/consul.go#L218-L220", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/consul/consul.go", "func_name": "shouldWatchFromName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// shouldWatch returns whether the service of the given name should be watched based on its name.", "docstring_tokens": ["shouldWatch", "returns", "whether", "the", "service", "of", "the", "given", "name", "should", "be", "watched", "based", "on", "its", "name", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/consul/consul.go#L223-L235", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/consul/consul.go", "func_name": "getDatacenter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get the local datacenter if not specified.", "docstring_tokens": ["Get", "the", "local", "datacenter", "if", "not", "specified", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/consul/consul.go#L259-L282", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/consul/consul.go", "func_name": "initialize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Initialize the Discoverer run.", "docstring_tokens": ["Initialize", "the", "Discoverer", "run", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/consul/consul.go#L285-L305", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/consul/consul.go", "func_name": "watchServices", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Watch the catalog for new services we would like to watch. This is called only\n// when we don't know yet the names of the services and need to ask Consul the\n// entire list of services.", "docstring_tokens": ["Watch", "the", "catalog", "for", "new", "services", "we", "would", "like", "to", "watch", ".", "This", "is", "called", "only", "when", "we", "don", "t", "know", "yet", "the", "names", "of", "the", "services", "and", "need", "to", "ask", "Consul", "the", "entire", "list", "of", "services", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/consul/consul.go#L344-L405", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/consul/consul.go", "func_name": "watchService", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start watching a service.", "docstring_tokens": ["Start", "watching", "a", "service", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/consul/consul.go#L419-L448", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/kubernetes/pod.go", "func_name": "NewPod", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPod creates a new pod discovery.", "docstring_tokens": ["NewPod", "creates", "a", "new", "pod", "discovery", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/kubernetes/pod.go#L44-L69", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/labels/matcher.go", "func_name": "NewMatcher", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMatcher returns a matcher object.", "docstring_tokens": ["NewMatcher", "returns", "a", "matcher", "object", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/labels/matcher.go#L55-L69", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/labels/matcher.go", "func_name": "Matches", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Matches returns whether the matcher matches the given string value.", "docstring_tokens": ["Matches", "returns", "whether", "the", "matcher", "matches", "the", "given", "string", "value", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/labels/matcher.go#L76-L88", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "util/stats/query_stats.go", "func_name": "SpanOperation", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return a string representation of a QueryTiming span operation.", "docstring_tokens": ["Return", "a", "string", "representation", "of", "a", "QueryTiming", "span", "operation", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/util/stats/query_stats.go#L58-L75", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "util/stats/query_stats.go", "func_name": "NewQueryStats", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewQueryStats makes a QueryStats struct with all QueryTimings found in the\n// given TimerGroup.", "docstring_tokens": ["NewQueryStats", "makes", "a", "QueryStats", "struct", "with", "all", "QueryTimings", "found", "in", "the", "given", "TimerGroup", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/util/stats/query_stats.go#L94-L116", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/openstack/openstack.go", "func_name": "NewDiscovery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDiscovery returns a new OpenStack Discoverer which periodically refreshes its targets.", "docstring_tokens": ["NewDiscovery", "returns", "a", "new", "OpenStack", "Discoverer", "which", "periodically", "refreshes", "its", "targets", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/openstack/openstack.go#L108-L120", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/labels/labels.go", "func_name": "UnmarshalYAML", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalYAML implements yaml.Unmarshaler.", "docstring_tokens": ["UnmarshalYAML", "implements", "yaml", ".", "Unmarshaler", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/labels/labels.go#L90-L99", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/labels/labels.go", "func_name": "Hash", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Hash returns a hash value for the label set.", "docstring_tokens": ["Hash", "returns", "a", "hash", "value", "for", "the", "label", "set", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/labels/labels.go#L121-L131", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/labels/labels.go", "func_name": "HashForLabels", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HashForLabels returns a hash value for the labels matching the provided names.", "docstring_tokens": ["HashForLabels", "returns", "a", "hash", "value", "for", "the", "labels", "matching", "the", "provided", "names", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/labels/labels.go#L134-L149", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/labels/labels.go", "func_name": "Copy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Copy returns a copy of the labels.", "docstring_tokens": ["Copy", "returns", "a", "copy", "of", "the", "labels", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/labels/labels.go#L175-L179", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/labels/labels.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get returns the value for the label with the given name.\n// Returns an empty string if the label doesn't exist.", "docstring_tokens": ["Get", "returns", "the", "value", "for", "the", "label", "with", "the", "given", "name", ".", "Returns", "an", "empty", "string", "if", "the", "label", "doesn", "t", "exist", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/labels/labels.go#L183-L190", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/labels/labels.go", "func_name": "Has", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Has returns true if the label with the given name is present.", "docstring_tokens": ["Has", "returns", "true", "if", "the", "label", "with", "the", "given", "name", "is", "present", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/labels/labels.go#L193-L200", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/labels/labels.go", "func_name": "Equal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Equal returns whether the two label sets are equal.", "docstring_tokens": ["Equal", "returns", "whether", "the", "two", "label", "sets", "are", "equal", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/labels/labels.go#L203-L213", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/labels/labels.go", "func_name": "Map", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Map returns a string map of the labels.", "docstring_tokens": ["Map", "returns", "a", "string", "map", "of", "the", "labels", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/labels/labels.go#L216-L222", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/labels/labels.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New returns a sorted Labels from the given labels.\n// The caller has to guarantee that all label names are unique.", "docstring_tokens": ["New", "returns", "a", "sorted", "Labels", "from", "the", "given", "labels", ".", "The", "caller", "has", "to", "guarantee", "that", "all", "label", "names", "are", "unique", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/labels/labels.go#L226-L234", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/labels/labels.go", "func_name": "FromStrings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FromStrings creates new labels from pairs of strings.", "docstring_tokens": ["FromStrings", "creates", "new", "labels", "from", "pairs", "of", "strings", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/labels/labels.go#L246-L257", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/labels/labels.go", "func_name": "NewBuilder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewBuilder returns a new LabelsBuilder", "docstring_tokens": ["NewBuilder", "returns", "a", "new", "LabelsBuilder"], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/labels/labels.go#L287-L293", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/labels/labels.go", "func_name": "Del", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Del deletes the label of the given name.", "docstring_tokens": ["Del", "deletes", "the", "label", "of", "the", "given", "name", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/labels/labels.go#L296-L306", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/labels/labels.go", "func_name": "Labels", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Labels returns the labels from the builder. If no modifications\n// were made, the original labels are returned.", "docstring_tokens": ["Labels", "returns", "the", "labels", "from", "the", "builder", ".", "If", "no", "modifications", "were", "made", "the", "original", "labels", "are", "returned", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/labels/labels.go#L323-L349", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/storage.go", "func_name": "NewStorage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewStorage returns a remote.Storage.", "docstring_tokens": ["NewStorage", "returns", "a", "remote", ".", "Storage", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/storage.go#L57-L70", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/storage.go", "func_name": "ApplyConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ApplyConfig updates the state as the new config requires.", "docstring_tokens": ["ApplyConfig", "updates", "the", "state", "as", "the", "new", "config", "requires", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/storage.go#L81-L157", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/storage.go", "func_name": "Querier", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Querier returns a storage.MergeQuerier combining the remote client queriers\n// of each configured remote read endpoint.", "docstring_tokens": ["Querier", "returns", "a", "storage", ".", "MergeQuerier", "combining", "the", "remote", "client", "queriers", "of", "each", "configured", "remote", "read", "endpoint", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/storage.go#L166-L180", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/storage.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close the background processing of the storage queues.", "docstring_tokens": ["Close", "the", "background", "processing", "of", "the", "storage", "queues", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/storage.go#L183-L192", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/logging/ratelimit.go", "func_name": "RateLimit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RateLimit write to a logger.", "docstring_tokens": ["RateLimit", "write", "to", "a", "logger", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/logging/ratelimit.go#L26-L31", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/openstack/hypervisor.go", "func_name": "newHypervisorDiscovery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newHypervisorDiscovery returns a new hypervisor discovery.", "docstring_tokens": ["newHypervisorDiscovery", "returns", "a", "new", "hypervisor", "discovery", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/openstack/hypervisor.go#L50-L54", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "web/api/v2/api.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New returns a new API object.", "docstring_tokens": ["New", "returns", "a", "new", "API", "object", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/web/api/v2/api.go#L47-L55", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "web/api/v2/api.go", "func_name": "RegisterGRPC", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterGRPC registers all API services with the given server.", "docstring_tokens": ["RegisterGRPC", "registers", "all", "API", "services", "with", "the", "given", "server", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/web/api/v2/api.go#L58-L64", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "web/api/v2/api.go", "func_name": "HTTPHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HTTPHandler returns an HTTP handler for a REST API gateway to the given grpc address.", "docstring_tokens": ["HTTPHandler", "returns", "an", "HTTP", "handler", "for", "a", "REST", "API", "gateway", "to", "the", "given", "grpc", "address", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/web/api/v2/api.go#L67-L84", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "web/api/v2/api.go", "func_name": "extractTimeRange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// extractTimeRange returns minimum and maximum timestamp in milliseconds as\n// provided by the time range. It defaults either boundary to the minimum and maximum\n// possible value.", "docstring_tokens": ["extractTimeRange", "returns", "minimum", "and", "maximum", "timestamp", "in", "milliseconds", "as", "provided", "by", "the", "time", "range", ".", "It", "defaults", "either", "boundary", "to", "the", "minimum", "and", "maximum", "possible", "value", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/web/api/v2/api.go#L89-L104", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "util/httputil/compression.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Writes HTTP response content data.", "docstring_tokens": ["Writes", "HTTP", "response", "content", "data", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/util/httputil/compression.go#L39-L41", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "util/httputil/compression.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Closes the compressedResponseWriter and ensures to flush all data before.", "docstring_tokens": ["Closes", "the", "compressedResponseWriter", "and", "ensures", "to", "flush", "all", "data", "before", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/util/httputil/compression.go#L44-L54", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "util/httputil/compression.go", "func_name": "newCompressedResponseWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Constructs a new compressedResponseWriter based on client request headers.", "docstring_tokens": ["Constructs", "a", "new", "compressedResponseWriter", "based", "on", "client", "request", "headers", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/util/httputil/compression.go#L57-L79", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "template/template.go", "func_name": "AlertTemplateData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AlertTemplateData returns the interface to be used in expanding the template.", "docstring_tokens": ["AlertTemplateData", "returns", "the", "interface", "to", "be", "used", "in", "expanding", "the", "template", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/template/template.go#L264-L274", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "template/template.go", "func_name": "Funcs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Funcs adds the functions in fm to the Expander's function map.\n// Existing functions will be overwritten in case of conflict.", "docstring_tokens": ["Funcs", "adds", "the", "functions", "in", "fm", "to", "the", "Expander", "s", "function", "map", ".", "Existing", "functions", "will", "be", "overwritten", "in", "case", "of", "conflict", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/template/template.go#L278-L282", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "template/template.go", "func_name": "ExpandHTML", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ExpandHTML expands a template with HTML escaping, with templates read from the given files.", "docstring_tokens": ["ExpandHTML", "expands", "a", "template", "with", "HTML", "escaping", "with", "templates", "read", "from", "the", "given", "files", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/template/template.go#L316-L352", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "scrape/target.go", "func_name": "NewTarget", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTarget creates a reasonably configured target for querying.", "docstring_tokens": ["NewTarget", "creates", "a", "reasonably", "configured", "target", "for", "querying", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/scrape/target.go#L65-L72", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "scrape/target.go", "func_name": "Metadata", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Metadata returns type and help metadata for the given metric.", "docstring_tokens": ["Metadata", "returns", "type", "and", "help", "metadata", "for", "the", "given", "metric", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/scrape/target.go#L102-L110", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "scrape/target.go", "func_name": "hash", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// hash returns an identifying hash for the target.", "docstring_tokens": ["hash", "returns", "an", "identifying", "hash", "for", "the", "target", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/scrape/target.go#L119-L125", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "scrape/target.go", "func_name": "offset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// offset returns the time until the next scrape cycle for the target.\n// It includes the global server jitterSeed for scrapes from multiple Prometheus to try to be at different times.", "docstring_tokens": ["offset", "returns", "the", "time", "until", "the", "next", "scrape", "cycle", "for", "the", "target", ".", "It", "includes", "the", "global", "server", "jitterSeed", "for", "scrapes", "from", "multiple", "Prometheus", "to", "try", "to", "be", "at", "different", "times", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/scrape/target.go#L129-L143", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "scrape/target.go", "func_name": "Labels", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Labels returns a copy of the set of all public labels of the target.", "docstring_tokens": ["Labels", "returns", "a", "copy", "of", "the", "set", "of", "all", "public", "labels", "of", "the", "target", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/scrape/target.go#L146-L154", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "scrape/target.go", "func_name": "DiscoveredLabels", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DiscoveredLabels returns a copy of the target's labels before any processing.", "docstring_tokens": ["DiscoveredLabels", "returns", "a", "copy", "of", "the", "target", "s", "labels", "before", "any", "processing", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/scrape/target.go#L157-L163", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "scrape/target.go", "func_name": "SetDiscoveredLabels", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetDiscoveredLabels sets new DiscoveredLabels", "docstring_tokens": ["SetDiscoveredLabels", "sets", "new", "DiscoveredLabels"], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/scrape/target.go#L166-L170", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "scrape/target.go", "func_name": "URL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// URL returns a copy of the target's URL.", "docstring_tokens": ["URL", "returns", "a", "copy", "of", "the", "target", "s", "URL", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/scrape/target.go#L173-L199", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "scrape/target.go", "func_name": "LastError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LastError returns the error encountered during the last scrape.", "docstring_tokens": ["LastError", "returns", "the", "error", "encountered", "during", "the", "last", "scrape", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/scrape/target.go#L217-L222", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "scrape/target.go", "func_name": "LastScrape", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LastScrape returns the time of the last scrape.", "docstring_tokens": ["LastScrape", "returns", "the", "time", "of", "the", "last", "scrape", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/scrape/target.go#L225-L230", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "scrape/target.go", "func_name": "LastScrapeDuration", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LastScrapeDuration returns how long the last scrape of the target took.", "docstring_tokens": ["LastScrapeDuration", "returns", "how", "long", "the", "last", "scrape", "of", "the", "target", "took", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/scrape/target.go#L233-L238", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "scrape/target.go", "func_name": "Health", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Health returns the last known health state of the target.", "docstring_tokens": ["Health", "returns", "the", "last", "known", "health", "state", "of", "the", "target", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/scrape/target.go#L241-L246", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "scrape/target.go", "func_name": "targetsFromGroup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// targetsFromGroup builds targets based on the given TargetGroup and config.", "docstring_tokens": ["targetsFromGroup", "builds", "targets", "based", "on", "the", "given", "TargetGroup", "and", "config", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/scrape/target.go#L408-L434", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/timestamp/timestamp.go", "func_name": "FromTime", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FromTime returns a new millisecond timestamp from a time.", "docstring_tokens": ["FromTime", "returns", "a", "new", "millisecond", "timestamp", "from", "a", "time", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/timestamp/timestamp.go#L19-L21", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/timestamp/timestamp.go", "func_name": "Time", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Time returns a new time.Time object from a millisecond timestamp.", "docstring_tokens": ["Time", "returns", "a", "new", "time", ".", "Time", "object", "from", "a", "millisecond", "timestamp", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/timestamp/timestamp.go#L24-L26", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "util/httputil/cors.go", "func_name": "SetCORS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Enables cross-site script calls.", "docstring_tokens": ["Enables", "cross", "-", "site", "script", "calls", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/util/httputil/cors.go#L29-L47", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/client.go", "func_name": "Store", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Store sends a batch of samples to the HTTP endpoint, the request is the proto marshalled\n// and encoded bytes from codec.go.", "docstring_tokens": ["Store", "sends", "a", "batch", "of", "samples", "to", "the", "HTTP", "endpoint", "the", "request", "is", "the", "proto", "marshalled", "and", "encoded", "bytes", "from", "codec", ".", "go", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/client.go#L76-L115", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/client.go", "func_name": "Name", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Name identifies the client.", "docstring_tokens": ["Name", "identifies", "the", "client", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/client.go#L118-L120", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/client.go", "func_name": "Read", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read reads from a remote endpoint.", "docstring_tokens": ["Read", "reads", "from", "a", "remote", "endpoint", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/client.go#L123-L183", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/azure/azure.go", "func_name": "NewDiscovery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDiscovery returns a new AzureDiscovery which periodically refreshes its targets.", "docstring_tokens": ["NewDiscovery", "returns", "a", "new", "AzureDiscovery", "which", "periodically", "refreshes", "its", "targets", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/azure/azure.go#L126-L142", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/azure/azure.go", "func_name": "createAzureClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// createAzureClient is a helper function for creating an Azure compute client to ARM.", "docstring_tokens": ["createAzureClient", "is", "a", "helper", "function", "for", "creating", "an", "Azure", "compute", "client", "to", "ARM", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/azure/azure.go#L153-L204", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/azure/azure.go", "func_name": "newAzureResourceFromID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create a new azureResource object from an ID string.", "docstring_tokens": ["Create", "a", "new", "azureResource", "object", "from", "an", "ID", "string", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/azure/azure.go#L225-L241", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "util/stats/timer.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return a string representation of the Timer.", "docstring_tokens": ["Return", "a", "string", "representation", "of", "the", "Timer", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/util/stats/timer.go#L54-L56", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "util/stats/timer.go", "func_name": "Swap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Swap implements sort.Interface.", "docstring_tokens": ["Swap", "implements", "sort", ".", "Interface", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/util/stats/timer.go#L93-L95", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "util/stats/timer.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return a string representation of a TimerGroup.", "docstring_tokens": ["Return", "a", "string", "representation", "of", "a", "TimerGroup", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/util/stats/timer.go#L102-L113", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "prompb/rpc.pb.gw.go", "func_name": "RegisterAdminHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterAdminHandler registers the http handlers for service Admin to \"mux\".\n// The handlers forward requests to the grpc endpoint over \"conn\".", "docstring_tokens": ["RegisterAdminHandler", "registers", "the", "http", "handlers", "for", "service", "Admin", "to", "mux", ".", "The", "handlers", "forward", "requests", "to", "the", "grpc", "endpoint", "over", "conn", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/prompb/rpc.pb.gw.go#L101-L103", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/parse.go", "func_name": "ParseExpr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseExpr returns the expression parsed from the input.", "docstring_tokens": ["ParseExpr", "returns", "the", "expression", "parsed", "from", "the", "input", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/parse.go#L56-L65", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/parse.go", "func_name": "ParseMetric", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseMetric parses the input into a metric", "docstring_tokens": ["ParseMetric", "parses", "the", "input", "into", "a", "metric"], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/parse.go#L68-L77", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/parse.go", "func_name": "ParseMetricSelector", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseMetricSelector parses the provided textual metric selector into a list of\n// label matchers.", "docstring_tokens": ["ParseMetricSelector", "parses", "the", "provided", "textual", "metric", "selector", "into", "a", "list", "of", "label", "matchers", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/parse.go#L81-L94", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/parse.go", "func_name": "newParser", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newParser returns a new parser.", "docstring_tokens": ["newParser", "returns", "a", "new", "parser", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/parse.go#L97-L102", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/parse.go", "func_name": "parseExpr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseExpr parses a single expression from the input.", "docstring_tokens": ["parseExpr", "parses", "a", "single", "expression", "from", "the", "input", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/parse.go#L105-L122", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/parse.go", "func_name": "parseSeriesDesc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseSeriesDesc parses the description of a time series.", "docstring_tokens": ["parseSeriesDesc", "parses", "the", "description", "of", "a", "time", "series", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/parse.go#L138-L143", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/parse.go", "func_name": "typecheck", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// typecheck checks correct typing of the parsed statements or expression.", "docstring_tokens": ["typecheck", "checks", "correct", "typing", "of", "the", "parsed", "statements", "or", "expression", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/parse.go#L242-L247", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/parse.go", "func_name": "next", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// next returns the next token.", "docstring_tokens": ["next", "returns", "the", "next", "token", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/parse.go#L250-L265", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/parse.go", "func_name": "peek", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// peek returns but does not consume the next token.", "docstring_tokens": ["peek", "returns", "but", "does", "not", "consume", "the", "next", "token", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/parse.go#L268-L281", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/parse.go", "func_name": "errorf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// errorf formats the error and terminates processing.", "docstring_tokens": ["errorf", "formats", "the", "error", "and", "terminates", "processing", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/parse.go#L289-L291", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/parse.go", "func_name": "error", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// error terminates processing.", "docstring_tokens": ["error", "terminates", "processing", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/parse.go#L294-L304", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/parse.go", "func_name": "expect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expect consumes the next token and guarantees it has the required type.", "docstring_tokens": ["expect", "consumes", "the", "next", "token", "and", "guarantees", "it", "has", "the", "required", "type", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/parse.go#L307-L313", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/parse.go", "func_name": "expectOneOf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expectOneOf consumes the next token and guarantees it has one of the required types.", "docstring_tokens": ["expectOneOf", "consumes", "the", "next", "token", "and", "guarantees", "it", "has", "one", "of", "the", "required", "types", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/parse.go#L316-L322", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/parse.go", "func_name": "recover", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// recover is the handler that turns panics into returns from the top level of Parse.", "docstring_tokens": ["recover", "is", "the", "handler", "that", "turns", "panics", "into", "returns", "from", "the", "top", "level", "of", "Parse", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/parse.go#L327-L340", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/parse.go", "func_name": "expr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expr parses any expression.", "docstring_tokens": ["expr", "parses", "any", "expression", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/parse.go#L343-L423", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/parse.go", "func_name": "number", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// number parses a number.", "docstring_tokens": ["number", "parses", "a", "number", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/parse.go#L568-L578", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/parse.go", "func_name": "expectType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expectType checks the type of the node and raises an error if it\n// is not of the expected type.", "docstring_tokens": ["expectType", "checks", "the", "type", "of", "the", "node", "and", "raises", "an", "error", "if", "it", "is", "not", "of", "the", "expected", "type", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/parse.go#L927-L932", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/write.go", "func_name": "Appender", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Appender implements scrape.Appendable.", "docstring_tokens": ["Appender", "implements", "scrape", ".", "Appendable", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/write.go#L41-L45", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/write.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add implements storage.Appender.", "docstring_tokens": ["Add", "implements", "storage", ".", "Appender", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/write.go#L54-L60", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/write.go", "func_name": "AddFast", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddFast implements storage.Appender.", "docstring_tokens": ["AddFast", "implements", "storage", ".", "Appender", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/write.go#L63-L66", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/write.go", "func_name": "Commit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Commit implements storage.Appender.", "docstring_tokens": ["Commit", "implements", "storage", ".", "Appender", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/write.go#L69-L75", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "util/promlint/promlint.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add appends a new Problem to the slice for the specified metric, with\n// the specified issue text.", "docstring_tokens": ["Add", "appends", "a", "new", "Problem", "to", "the", "slice", "for", "the", "specified", "metric", "with", "the", "specified", "issue", "text", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/util/promlint/promlint.go#L48-L53", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "util/promlint/promlint.go", "func_name": "Lint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Lint performs a linting pass, returning a slice of Problems indicating any\n// issues found in the metrics stream. The slice is sorted by metric name\n// and issue description.", "docstring_tokens": ["Lint", "performs", "a", "linting", "pass", "returning", "a", "slice", "of", "Problems", "indicating", "any", "issues", "found", "in", "the", "metrics", "stream", ".", "The", "slice", "is", "sorted", "by", "metric", "name", "and", "issue", "description", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/util/promlint/promlint.go#L66-L95", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "util/promlint/promlint.go", "func_name": "lint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// lint is the entry point for linting a single metric.", "docstring_tokens": ["lint", "is", "the", "entry", "point", "for", "linting", "a", "single", "metric", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/util/promlint/promlint.go#L98-L113", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "util/promlint/promlint.go", "func_name": "lintHelp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// lintHelp detects issues related to the help text for a metric.", "docstring_tokens": ["lintHelp", "detects", "issues", "related", "to", "the", "help", "text", "for", "a", "metric", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/util/promlint/promlint.go#L116-L125", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "util/promlint/promlint.go", "func_name": "lintMetricUnits", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// lintMetricUnits detects issues with metric unit names.", "docstring_tokens": ["lintMetricUnits", "detects", "issues", "with", "metric", "unit", "names", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/util/promlint/promlint.go#L128-L145", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "util/promlint/promlint.go", "func_name": "lintCounter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// lintCounter detects issues specific to counters, as well as patterns that should\n// only be used with counters.", "docstring_tokens": ["lintCounter", "detects", "issues", "specific", "to", "counters", "as", "well", "as", "patterns", "that", "should", "only", "be", "used", "with", "counters", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/util/promlint/promlint.go#L149-L164", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "documentation/examples/remote_storage/remote_storage_adapter/graphite/client.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write sends a batch of samples to Graphite.", "docstring_tokens": ["Write", "sends", "a", "batch", "of", "samples", "to", "Graphite", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/documentation/examples/remote_storage/remote_storage_adapter/graphite/client.go#L83-L104", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/pool/pool.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New returns a new Pool with size buckets for minSize to maxSize\n// increasing by the given factor.", "docstring_tokens": ["New", "returns", "a", "new", "Pool", "with", "size", "buckets", "for", "minSize", "to", "maxSize", "increasing", "by", "the", "given", "factor", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/pool/pool.go#L32-L56", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/pool/pool.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get returns a new byte slices that fits the given size.", "docstring_tokens": ["Get", "returns", "a", "new", "byte", "slices", "that", "fits", "the", "given", "size", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/pool/pool.go#L59-L71", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/pool/pool.go", "func_name": "Put", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Put adds a slice to the right bucket in the pool.", "docstring_tokens": ["Put", "adds", "a", "slice", "to", "the", "right", "bucket", "in", "the", "pool", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/pool/pool.go#L74-L87", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/value.go", "func_name": "TotalSamples", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TotalSamples returns the total number of samples in the series within a matrix.", "docstring_tokens": ["TotalSamples", "returns", "the", "total", "number", "of", "samples", "in", "the", "series", "within", "a", "matrix", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/value.go#L177-L183", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/value.go", "func_name": "Vector", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Vector returns a Vector if the result value is one. An error is returned if\n// the result was an error or the result value is not a Vector.", "docstring_tokens": ["Vector", "returns", "a", "Vector", "if", "the", "result", "value", "is", "one", ".", "An", "error", "is", "returned", "if", "the", "result", "was", "an", "error", "or", "the", "result", "value", "is", "not", "a", "Vector", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/value.go#L214-L223", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/value.go", "func_name": "Scalar", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Scalar returns a Scalar value. An error is returned if\n// the result was an error or the result value is not a Scalar.", "docstring_tokens": ["Scalar", "returns", "a", "Scalar", "value", ".", "An", "error", "is", "returned", "if", "the", "result", "was", "an", "error", "or", "the", "result", "value", "is", "not", "a", "Scalar", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/value.go#L240-L249", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/ec2/ec2.go", "func_name": "NewDiscovery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDiscovery returns a new EC2Discovery which periodically refreshes its targets.", "docstring_tokens": ["NewDiscovery", "returns", "a", "new", "EC2Discovery", "which", "periodically", "refreshes", "its", "targets", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/ec2/ec2.go#L124-L151", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/queue_manager.go", "func_name": "NewQueueManager", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewQueueManager builds a new QueueManager.", "docstring_tokens": ["NewQueueManager", "builds", "a", "new", "QueueManager", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/queue_manager.go#L196-L229", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/queue_manager.go", "func_name": "Append", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Append queues a sample to be sent to the remote storage. Blocks until all samples are\n// enqueued on their shards or a shutdown signal is received.", "docstring_tokens": ["Append", "queues", "a", "sample", "to", "be", "sent", "to", "the", "remote", "storage", ".", "Blocks", "until", "all", "samples", "are", "enqueued", "on", "their", "shards", "or", "a", "shutdown", "signal", "is", "received", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/queue_manager.go#L233-L290", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/queue_manager.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start the queue manager sending samples to the remote storage.\n// Does not block.", "docstring_tokens": ["Start", "the", "queue", "manager", "sending", "samples", "to", "the", "remote", "storage", ".", "Does", "not", "block", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/queue_manager.go#L294-L322", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/queue_manager.go", "func_name": "Stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stop stops sending samples to the remote storage and waits for pending\n// sends to complete.", "docstring_tokens": ["Stop", "stops", "sending", "samples", "to", "the", "remote", "storage", "and", "waits", "for", "pending", "sends", "to", "complete", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/queue_manager.go#L326-L356", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/queue_manager.go", "func_name": "StoreSeries", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoreSeries keeps track of which series we know about for lookups when sending samples to remote.", "docstring_tokens": ["StoreSeries", "keeps", "track", "of", "which", "series", "we", "know", "about", "for", "lookups", "when", "sending", "samples", "to", "remote", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/queue_manager.go#L359-L386", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/queue_manager.go", "func_name": "processExternalLabels", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// processExternalLabels merges externalLabels into ls. If ls contains\n// a label in externalLabels, the value in ls wins.", "docstring_tokens": ["processExternalLabels", "merges", "externalLabels", "into", "ls", ".", "If", "ls", "contains", "a", "label", "in", "externalLabels", "the", "value", "in", "ls", "wins", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/queue_manager.go#L415-L444", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/queue_manager.go", "func_name": "start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// start the shards; must be called before any call to enqueue.", "docstring_tokens": ["start", "the", "shards", ";", "must", "be", "called", "before", "any", "call", "to", "enqueue", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/queue_manager.go#L579-L599", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/queue_manager.go", "func_name": "stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// stop the shards; subsequent call to enqueue will return false.", "docstring_tokens": ["stop", "the", "shards", ";", "subsequent", "call", "to", "enqueue", "will", "return", "false", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/queue_manager.go#L602-L629", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/queue_manager.go", "func_name": "enqueue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// enqueue a sample. If we are currently in the process of shutting down or resharding,\n// will return false; in this case, you should back off and retry.", "docstring_tokens": ["enqueue", "a", "sample", ".", "If", "we", "are", "currently", "in", "the", "process", "of", "shutting", "down", "or", "resharding", "will", "return", "false", ";", "in", "this", "case", "you", "should", "back", "off", "and", "retry", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/queue_manager.go#L633-L650", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/queue_manager.go", "func_name": "sendSamplesWithBackoff", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// sendSamples to the remote storage with backoff for recoverable errors.", "docstring_tokens": ["sendSamples", "to", "the", "remote", "storage", "with", "backoff", "for", "recoverable", "errors", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/queue_manager.go#L737-L775", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/kubernetes/kubernetes.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New creates a new Kubernetes discovery for the given role.", "docstring_tokens": ["New", "creates", "a", "new", "Kubernetes", "discovery", "for", "the", "given", "role", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/kubernetes/kubernetes.go#L177-L217", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "cmd/prometheus/main.go", "func_name": "compileCORSRegexString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// compileCORSRegexString compiles given string and adds anchors", "docstring_tokens": ["compileCORSRegexString", "compiles", "given", "string", "and", "adds", "anchors"], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/cmd/prometheus/main.go#L766-L772", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "cmd/prometheus/main.go", "func_name": "computeExternalURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// computeExternalURL computes a sanitized external URL from a raw input. It infers unset\n// URL parts from the OS and the given listen address.", "docstring_tokens": ["computeExternalURL", "computes", "a", "sanitized", "external", "URL", "from", "a", "raw", "input", ".", "It", "infers", "unset", "URL", "parts", "from", "the", "OS", "and", "the", "given", "listen", "address", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/cmd/prometheus/main.go#L776-L805", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "cmd/prometheus/main.go", "func_name": "sendAlerts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// sendAlerts implements the rules.NotifyFunc for a Notifier.", "docstring_tokens": ["sendAlerts", "implements", "the", "rules", ".", "NotifyFunc", "for", "a", "Notifier", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/cmd/prometheus/main.go#L812-L835", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/rulefmt/rulefmt.go", "func_name": "Validate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Validate validates all rules in the rule groups.", "docstring_tokens": ["Validate", "validates", "all", "rules", "in", "the", "rule", "groups", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/rulefmt/rulefmt.go#L49-L85", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/rulefmt/rulefmt.go", "func_name": "Validate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Validate the rule and return a list of encountered errors.", "docstring_tokens": ["Validate", "the", "rule", "and", "return", "a", "list", "of", "encountered", "errors", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/rulefmt/rulefmt.go#L105-L148", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/rulefmt/rulefmt.go", "func_name": "Parse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Parse parses and validates a set of rules.", "docstring_tokens": ["Parse", "parses", "and", "validates", "a", "set", "of", "rules", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/rulefmt/rulefmt.go#L198-L204", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/rulefmt/rulefmt.go", "func_name": "ParseFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseFile reads and parses rules from a file.", "docstring_tokens": ["ParseFile", "reads", "and", "parses", "rules", "from", "a", "file", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/rulefmt/rulefmt.go#L207-L213", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "util/strutil/strconv.go", "func_name": "TableLinkForExpression", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TableLinkForExpression creates an escaped relative link to the table view of\n// the provided expression.", "docstring_tokens": ["TableLinkForExpression", "creates", "an", "escaped", "relative", "link", "to", "the", "table", "view", "of", "the", "provided", "expression", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/util/strutil/strconv.go#L28-L31", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "util/strutil/strconv.go", "func_name": "GraphLinkForExpression", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GraphLinkForExpression creates an escaped relative link to the graph view of\n// the provided expression.", "docstring_tokens": ["GraphLinkForExpression", "creates", "an", "escaped", "relative", "link", "to", "the", "graph", "view", "of", "the", "provided", "expression", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/util/strutil/strconv.go#L35-L38", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/fanout.go", "func_name": "NewFanout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewFanout returns a new fan-out Storage, which proxies reads and writes\n// through to multiple underlying storages.", "docstring_tokens": ["NewFanout", "returns", "a", "new", "fan", "-", "out", "Storage", "which", "proxies", "reads", "and", "writes", "through", "to", "multiple", "underlying", "storages", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/fanout.go#L38-L44", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/fanout.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close closes the storage and all its underlying resources.", "docstring_tokens": ["Close", "closes", "the", "storage", "and", "all", "its", "underlying", "resources", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/fanout.go#L112-L125", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/fanout.go", "func_name": "NewMergeQuerier", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMergeQuerier returns a new Querier that merges results of input queriers.\n// NB NewMergeQuerier will return NoopQuerier if no queriers are passed to it,\n// and will filter NoopQueriers from its arguments, in order to reduce overhead\n// when only one querier is passed.", "docstring_tokens": ["NewMergeQuerier", "returns", "a", "new", "Querier", "that", "merges", "results", "of", "input", "queriers", ".", "NB", "NewMergeQuerier", "will", "return", "NoopQuerier", "if", "no", "queriers", "are", "passed", "to", "it", "and", "will", "filter", "NoopQueriers", "from", "its", "arguments", "in", "order", "to", "reduce", "overhead", "when", "only", "one", "querier", "is", "passed", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/fanout.go#L204-L228", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/fanout.go", "func_name": "Select", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Select returns a set of series that matches the given label matchers.", "docstring_tokens": ["Select", "returns", "a", "set", "of", "series", "that", "matches", "the", "given", "label", "matchers", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/fanout.go#L231-L253", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/fanout.go", "func_name": "LabelValues", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LabelValues returns all potential values for a label name.", "docstring_tokens": ["LabelValues", "returns", "all", "potential", "values", "for", "a", "label", "name", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/fanout.go#L256-L266", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/fanout.go", "func_name": "LabelNames", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LabelNames returns all the unique label names present in the block in sorted order.", "docstring_tokens": ["LabelNames", "returns", "all", "the", "unique", "label", "names", "present", "in", "the", "block", "in", "sorted", "order", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/fanout.go#L313-L332", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/fanout.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close releases the resources of the Querier.", "docstring_tokens": ["Close", "releases", "the", "resources", "of", "the", "Querier", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/fanout.go#L335-L344", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "rules/alerting.go", "func_name": "NewAlertingRule", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewAlertingRule constructs a new AlertingRule.", "docstring_tokens": ["NewAlertingRule", "constructs", "a", "new", "AlertingRule", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/rules/alerting.go#L146-L168", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "rules/alerting.go", "func_name": "SetLastError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetLastError sets the current error seen by the alerting rule.", "docstring_tokens": ["SetLastError", "sets", "the", "current", "error", "seen", "by", "the", "alerting", "rule", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/rules/alerting.go#L176-L180", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "rules/alerting.go", "func_name": "LastError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LastError returns the last error seen by the alerting rule.", "docstring_tokens": ["LastError", "returns", "the", "last", "error", "seen", "by", "the", "alerting", "rule", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/rules/alerting.go#L183-L187", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "rules/alerting.go", "func_name": "SetHealth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetHealth sets the current health of the alerting rule.", "docstring_tokens": ["SetHealth", "sets", "the", "current", "health", "of", "the", "alerting", "rule", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/rules/alerting.go#L190-L194", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "rules/alerting.go", "func_name": "Health", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Health returns the current health of the alerting rule.", "docstring_tokens": ["Health", "returns", "the", "current", "health", "of", "the", "alerting", "rule", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/rules/alerting.go#L197-L201", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "rules/alerting.go", "func_name": "forStateSample", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// forStateSample returns the sample for ALERTS_FOR_STATE.", "docstring_tokens": ["forStateSample", "returns", "the", "sample", "for", "ALERTS_FOR_STATE", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/rules/alerting.go#L242-L257", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "rules/alerting.go", "func_name": "SetEvaluationDuration", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetEvaluationDuration updates evaluationDuration to the duration it took to evaluate the rule on its last evaluation.", "docstring_tokens": ["SetEvaluationDuration", "updates", "evaluationDuration", "to", "the", "duration", "it", "took", "to", "evaluate", "the", "rule", "on", "its", "last", "evaluation", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/rules/alerting.go#L260-L264", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "rules/alerting.go", "func_name": "GetEvaluationDuration", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetEvaluationDuration returns the time in seconds it took to evaluate the alerting rule.", "docstring_tokens": ["GetEvaluationDuration", "returns", "the", "time", "in", "seconds", "it", "took", "to", "evaluate", "the", "alerting", "rule", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/rules/alerting.go#L267-L271", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "rules/alerting.go", "func_name": "State", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// State returns the maximum state of alert instances for this rule.\n// StateFiring > StatePending > StateInactive", "docstring_tokens": ["State", "returns", "the", "maximum", "state", "of", "alert", "instances", "for", "this", "rule", ".", "StateFiring", ">", "StatePending", ">", "StateInactive"], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/rules/alerting.go#L416-L427", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "rules/alerting.go", "func_name": "ActiveAlerts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ActiveAlerts returns a slice of active alerts.", "docstring_tokens": ["ActiveAlerts", "returns", "a", "slice", "of", "active", "alerts", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/rules/alerting.go#L430-L438", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "rules/alerting.go", "func_name": "currentAlerts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// currentAlerts returns all instances of alerts for this rule. This may include\n// inactive alerts that were previously firing.", "docstring_tokens": ["currentAlerts", "returns", "all", "instances", "of", "alerts", "for", "this", "rule", ".", "This", "may", "include", "inactive", "alerts", "that", "were", "previously", "firing", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/rules/alerting.go#L442-L453", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "documentation/examples/custom-sd/adapter/adapter.go", "func_name": "refreshTargetGroups", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Parses incoming target groups updates. If the update contains changes to the target groups\n// Adapter already knows about, or new target groups, we Marshal to JSON and write to file.", "docstring_tokens": ["Parses", "incoming", "target", "groups", "updates", ".", "If", "the", "update", "contains", "changes", "to", "the", "target", "groups", "Adapter", "already", "knows", "about", "or", "new", "target", "groups", "we", "Marshal", "to", "JSON", "and", "write", "to", "file", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/documentation/examples/custom-sd/adapter/adapter.go#L101-L111", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "documentation/examples/custom-sd/adapter/adapter.go", "func_name": "writeOutput", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Writes JSON formatted targets to output file.", "docstring_tokens": ["Writes", "JSON", "formatted", "targets", "to", "output", "file", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/documentation/examples/custom-sd/adapter/adapter.go#L114-L135", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "documentation/examples/custom-sd/adapter/adapter.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run starts a Discovery Manager and the custom service discovery implementation.", "docstring_tokens": ["Run", "starts", "a", "Discovery", "Manager", "and", "the", "custom", "service", "discovery", "implementation", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/documentation/examples/custom-sd/adapter/adapter.go#L154-L158", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "documentation/examples/custom-sd/adapter/adapter.go", "func_name": "NewAdapter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewAdapter creates a new instance of Adapter.", "docstring_tokens": ["NewAdapter", "creates", "a", "new", "instance", "of", "Adapter", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/documentation/examples/custom-sd/adapter/adapter.go#L161-L171", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "rules/manager.go", "func_name": "NewGroupMetrics", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewGroupMetrics makes a new Metrics and registers them with then provided registerer,\n// if not nil.", "docstring_tokens": ["NewGroupMetrics", "makes", "a", "new", "Metrics", "and", "registers", "them", "with", "then", "provided", "registerer", "if", "not", "nil", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/rules/manager.go#L78-L155", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "rules/manager.go", "func_name": "EngineQueryFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EngineQueryFunc returns a new query function that executes instant queries against\n// the given engine.\n// It converts scalar into vector results.", "docstring_tokens": ["EngineQueryFunc", "returns", "a", "new", "query", "function", "that", "executes", "instant", "queries", "against", "the", "given", "engine", ".", "It", "converts", "scalar", "into", "vector", "results", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/rules/manager.go#L163-L185", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "rules/manager.go", "func_name": "NewGroup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewGroup makes a new Group with the given name, options, and rules.", "docstring_tokens": ["NewGroup", "makes", "a", "new", "Group", "with", "the", "given", "name", "options", "and", "rules", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/rules/manager.go#L241-L264", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "rules/manager.go", "func_name": "GetEvaluationDuration", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetEvaluationDuration returns the time in seconds it took to evaluate the rule group.", "docstring_tokens": ["GetEvaluationDuration", "returns", "the", "time", "in", "seconds", "it", "took", "to", "evaluate", "the", "rule", "group", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/rules/manager.go#L365-L369", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "rules/manager.go", "func_name": "setEvaluationDuration", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setEvaluationDuration sets the time in seconds the last evaluation took.", "docstring_tokens": ["setEvaluationDuration", "sets", "the", "time", "in", "seconds", "the", "last", "evaluation", "took", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/rules/manager.go#L372-L378", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "rules/manager.go", "func_name": "GetEvaluationTimestamp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetEvaluationTimestamp returns the time the last evaluation of the rule group took place.", "docstring_tokens": ["GetEvaluationTimestamp", "returns", "the", "time", "the", "last", "evaluation", "of", "the", "rule", "group", "took", "place", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/rules/manager.go#L381-L385", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "rules/manager.go", "func_name": "setEvaluationTimestamp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setEvaluationTimestamp updates evaluationTimestamp to the timestamp of when the rule group was last evaluated.", "docstring_tokens": ["setEvaluationTimestamp", "updates", "evaluationTimestamp", "to", "the", "timestamp", "of", "when", "the", "rule", "group", "was", "last", "evaluated", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/rules/manager.go#L388-L394", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "rules/manager.go", "func_name": "evalTimestamp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// evalTimestamp returns the immediately preceding consistently slotted evaluation time.", "docstring_tokens": ["evalTimestamp", "returns", "the", "immediately", "preceding", "consistently", "slotted", "evaluation", "time", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/rules/manager.go#L397-L406", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "rules/manager.go", "func_name": "CopyState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CopyState copies the alerting rule and staleness related state from the given group.\n//\n// Rules are matched based on their name and labels. If there are duplicates, the\n// first is matched with the first, second with the second etc.", "docstring_tokens": ["CopyState", "copies", "the", "alerting", "rule", "and", "staleness", "related", "state", "from", "the", "given", "group", ".", "Rules", "are", "matched", "based", "on", "their", "name", "and", "labels", ".", "If", "there", "are", "duplicates", "the", "first", "is", "matched", "with", "the", "first", "second", "with", "the", "second", "etc", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/rules/manager.go#L416-L450", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "rules/manager.go", "func_name": "NewManager", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewManager returns an implementation of Manager, ready to be started\n// by calling the Run method.", "docstring_tokens": ["NewManager", "returns", "an", "implementation", "of", "Manager", "ready", "to", "be", "started", "by", "calling", "the", "Run", "method", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/rules/manager.go#L713-L731", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "rules/manager.go", "func_name": "Stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stop the rule manager's rule evaluation cycles.", "docstring_tokens": ["Stop", "the", "rule", "manager", "s", "rule", "evaluation", "cycles", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/rules/manager.go#L739-L750", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "rules/manager.go", "func_name": "Update", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Update the rule manager's state as the config requires. If\n// loading the new rules failed the old rule set is restored.", "docstring_tokens": ["Update", "the", "rule", "manager", "s", "state", "as", "the", "config", "requires", ".", "If", "loading", "the", "new", "rules", "failed", "the", "old", "rule", "set", "is", "restored", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/rules/manager.go#L754-L803", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "rules/manager.go", "func_name": "LoadGroups", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadGroups reads groups from a list of files.", "docstring_tokens": ["LoadGroups", "reads", "groups", "from", "a", "list", "of", "files", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/rules/manager.go#L806-L857", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "rules/manager.go", "func_name": "RuleGroups", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RuleGroups returns the list of manager's rule groups.", "docstring_tokens": ["RuleGroups", "returns", "the", "list", "of", "manager", "s", "rule", "groups", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/rules/manager.go#L865-L883", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "rules/manager.go", "func_name": "Rules", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Rules returns the list of the manager's rules.", "docstring_tokens": ["Rules", "returns", "the", "list", "of", "the", "manager", "s", "rules", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/rules/manager.go#L886-L896", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "rules/manager.go", "func_name": "AlertingRules", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AlertingRules returns the list of the manager's alerting rules.", "docstring_tokens": ["AlertingRules", "returns", "the", "list", "of", "the", "manager", "s", "alerting", "rules", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/rules/manager.go#L899-L910", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "rules/manager.go", "func_name": "Collect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Collect implements prometheus.Collector.", "docstring_tokens": ["Collect", "implements", "prometheus", ".", "Collector", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/rules/manager.go#L918-L925", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/wal_watcher.go", "func_name": "NewWALWatcher", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewWALWatcher creates a new WAL watcher for a given WriteTo.", "docstring_tokens": ["NewWALWatcher", "creates", "a", "new", "WAL", "watcher", "for", "a", "given", "WriteTo", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/wal_watcher.go#L119-L133", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/wal_watcher.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start the WALWatcher.", "docstring_tokens": ["Start", "the", "WALWatcher", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/wal_watcher.go#L146-L151", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/wal_watcher.go", "func_name": "Stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stop the WALWatcher.", "docstring_tokens": ["Stop", "the", "WALWatcher", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/wal_watcher.go#L154-L166", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/wal_watcher.go", "func_name": "findSegmentForIndex", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// findSegmentForIndex finds the first segment greater than or equal to index.", "docstring_tokens": ["findSegmentForIndex", "finds", "the", "first", "segment", "greater", "than", "or", "equal", "to", "index", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/wal_watcher.go#L233-L246", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/wal_watcher.go", "func_name": "watch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Use tail true to indicate that the reader is currently on a segment that is\n// actively being written to. If false, assume it's a full segment and we're\n// replaying it on start to cache the series records.", "docstring_tokens": ["Use", "tail", "true", "to", "indicate", "that", "the", "reader", "is", "currently", "on", "a", "segment", "that", "is", "actively", "being", "written", "to", ".", "If", "false", "assume", "it", "s", "a", "full", "segment", "and", "we", "re", "replaying", "it", "on", "start", "to", "cache", "the", "series", "records", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/wal_watcher.go#L289-L382", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/wal_watcher.go", "func_name": "readCheckpoint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read all the series records from a Checkpoint directory.", "docstring_tokens": ["Read", "all", "the", "series", "records", "from", "a", "Checkpoint", "directory", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/wal_watcher.go#L487-L523", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/wal_watcher.go", "func_name": "getSegmentSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get size of segment.", "docstring_tokens": ["Get", "size", "of", "segment", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/wal_watcher.go#L541-L548", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "util/treecache/treecache.go", "func_name": "Printf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Printf implements zk.Logger.", "docstring_tokens": ["Printf", "implements", "zk", ".", "Logger", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/util/treecache/treecache.go#L60-L62", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "util/treecache/treecache.go", "func_name": "NewZookeeperTreeCache", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewZookeeperTreeCache creates a new ZookeeperTreeCache for a given path.", "docstring_tokens": ["NewZookeeperTreeCache", "creates", "a", "new", "ZookeeperTreeCache", "for", "a", "given", "path", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/util/treecache/treecache.go#L91-L107", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/manager.go", "func_name": "NewManager", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewManager is the Discovery Manager constructor.", "docstring_tokens": ["NewManager", "is", "the", "Discovery", "Manager", "constructor", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/manager.go#L115-L132", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/manager.go", "func_name": "Name", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Name sets the name of the manager.", "docstring_tokens": ["Name", "sets", "the", "name", "of", "the", "manager", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/manager.go#L135-L141", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/manager.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run starts the background processing", "docstring_tokens": ["Run", "starts", "the", "background", "processing"], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/manager.go#L169-L176", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/manager.go", "func_name": "ApplyConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ApplyConfig removes all running discovery providers and starts new ones using the provided config.", "docstring_tokens": ["ApplyConfig", "removes", "all", "running", "discovery", "providers", "and", "starts", "new", "ones", "using", "the", "provided", "config", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/manager.go#L184-L203", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/manager.go", "func_name": "StartCustomProvider", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StartCustomProvider is used for sdtool. Only use this if you know what you're doing.", "docstring_tokens": ["StartCustomProvider", "is", "used", "for", "sdtool", ".", "Only", "use", "this", "if", "you", "know", "what", "you", "re", "doing", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/manager.go#L206-L214", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/manager.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run implements the Worker interface.", "docstring_tokens": ["Run", "implements", "the", "Worker", "interface", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/manager.go#L432-L440", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/zookeeper/zookeeper.go", "func_name": "NewNerveDiscovery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewNerveDiscovery returns a new Discovery for the given Nerve config.", "docstring_tokens": ["NewNerveDiscovery", "returns", "a", "new", "Discovery", "for", "the", "given", "Nerve", "config", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/zookeeper/zookeeper.go#L119-L121", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/zookeeper/zookeeper.go", "func_name": "NewServersetDiscovery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewServersetDiscovery returns a new Discovery for the given serverset config.", "docstring_tokens": ["NewServersetDiscovery", "returns", "a", "new", "Discovery", "for", "the", "given", "serverset", "config", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/zookeeper/zookeeper.go#L124-L126", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/zookeeper/zookeeper.go", "func_name": "NewDiscovery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDiscovery returns a new discovery along Zookeeper parses with\n// the given parse function.", "docstring_tokens": ["NewDiscovery", "returns", "a", "new", "discovery", "along", "Zookeeper", "parses", "with", "the", "given", "parse", "function", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/zookeeper/zookeeper.go#L130-L161", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/fuzz.go", "func_name": "FuzzParseMetricSelector", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fuzz the metric selector parser.", "docstring_tokens": ["Fuzz", "the", "metric", "selector", "parser", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/fuzz.go#L65-L72", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/fuzz.go", "func_name": "FuzzParseExpr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fuzz the expression parser.", "docstring_tokens": ["Fuzz", "the", "expression", "parser", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/fuzz.go#L75-L82", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/fuzz.go", "func_name": "FuzzParseStmts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fuzz the parser.", "docstring_tokens": ["Fuzz", "the", "parser", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/fuzz.go#L85-L92", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "scrape/manager.go", "func_name": "NewManager", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewManager is the Manager constructor", "docstring_tokens": ["NewManager", "is", "the", "Manager", "constructor"], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/scrape/manager.go#L42-L54", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "scrape/manager.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run receives and saves target set updates and triggers the scraping loops reloading.\n// Reloading happens in the background so that it doesn't block receiving targets updates.", "docstring_tokens": ["Run", "receives", "and", "saves", "target", "set", "updates", "and", "triggers", "the", "scraping", "loops", "reloading", ".", "Reloading", "happens", "in", "the", "background", "so", "that", "it", "doesn", "t", "block", "receiving", "targets", "updates", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/scrape/manager.go#L74-L90", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "scrape/manager.go", "func_name": "setJitterSeed", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setJitterSeed calculates a global jitterSeed per server relying on extra label set.", "docstring_tokens": ["setJitterSeed", "calculates", "a", "global", "jitterSeed", "per", "server", "relying", "on", "extra", "label", "set", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/scrape/manager.go#L142-L153", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "scrape/manager.go", "func_name": "Stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stop cancels all running scrape pools and blocks until all have exited.", "docstring_tokens": ["Stop", "cancels", "all", "running", "scrape", "pools", "and", "blocks", "until", "all", "have", "exited", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/scrape/manager.go#L156-L164", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "scrape/manager.go", "func_name": "ApplyConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ApplyConfig resets the manager's target providers and job configurations as defined by the new cfg.", "docstring_tokens": ["ApplyConfig", "resets", "the", "manager", "s", "target", "providers", "and", "job", "configurations", "as", "defined", "by", "the", "new", "cfg", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/scrape/manager.go#L173-L206", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "scrape/manager.go", "func_name": "TargetsAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TargetsAll returns active and dropped targets grouped by job_name.", "docstring_tokens": ["TargetsAll", "returns", "active", "and", "dropped", "targets", "grouped", "by", "job_name", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/scrape/manager.go#L209-L219", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "scrape/manager.go", "func_name": "TargetsActive", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TargetsActive returns the active targets currently being scraped.", "docstring_tokens": ["TargetsActive", "returns", "the", "active", "targets", "currently", "being", "scraped", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/scrape/manager.go#L222-L231", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "scrape/manager.go", "func_name": "TargetsDropped", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TargetsDropped returns the dropped targets during relabelling.", "docstring_tokens": ["TargetsDropped", "returns", "the", "dropped", "targets", "during", "relabelling", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/scrape/manager.go#L234-L243", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "scrape/manager.go", "func_name": "getFqdn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getFqdn returns a FQDN if it's possible, otherwise falls back to hostname.", "docstring_tokens": ["getFqdn", "returns", "a", "FQDN", "if", "it", "s", "possible", "otherwise", "falls", "back", "to", "hostname", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/scrape/manager.go#L246-L286", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "documentation/examples/remote_storage/remote_storage_adapter/opentsdb/client.go", "func_name": "tagsFromMetric", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// tagsFromMetric translates Prometheus metric into OpenTSDB tags.", "docstring_tokens": ["tagsFromMetric", "translates", "Prometheus", "metric", "into", "OpenTSDB", "tags", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/documentation/examples/remote_storage/remote_storage_adapter/opentsdb/client.go#L65-L74", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "documentation/examples/remote_storage/remote_storage_adapter/opentsdb/client.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write sends a batch of samples to OpenTSDB via its HTTP API.", "docstring_tokens": ["Write", "sends", "a", "batch", "of", "samples", "to", "OpenTSDB", "via", "its", "HTTP", "API", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/documentation/examples/remote_storage/remote_storage_adapter/opentsdb/client.go#L77-L141", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/read.go", "func_name": "QueryableClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// QueryableClient returns a storage.Queryable which queries the given\n// Client to select series sets.", "docstring_tokens": ["QueryableClient", "returns", "a", "storage", ".", "Queryable", "which", "queries", "the", "given", "Client", "to", "select", "series", "sets", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/read.go#L40-L50", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/read.go", "func_name": "Select", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Select implements storage.Querier and uses the given matchers to read series\n// sets from the Client.", "docstring_tokens": ["Select", "implements", "storage", ".", "Querier", "and", "uses", "the", "given", "matchers", "to", "read", "series", "sets", "from", "the", "Client", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/read.go#L61-L77", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/read.go", "func_name": "ExternalLabelsHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ExternalLabelsHandler returns a storage.Queryable which creates a\n// externalLabelsQuerier.", "docstring_tokens": ["ExternalLabelsHandler", "returns", "a", "storage", ".", "Queryable", "which", "creates", "a", "externalLabelsQuerier", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/read.go#L98-L106", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/read.go", "func_name": "Select", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Select adds equality matchers for all external labels to the list of matchers\n// before calling the wrapped storage.Queryable. The added external labels are\n// removed from the returned series sets.", "docstring_tokens": ["Select", "adds", "equality", "matchers", "for", "all", "external", "labels", "to", "the", "list", "of", "matchers", "before", "calling", "the", "wrapped", "storage", ".", "Queryable", ".", "The", "added", "external", "labels", "are", "removed", "from", "the", "returned", "series", "sets", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/read.go#L119-L126", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/read.go", "func_name": "PreferLocalStorageFilter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PreferLocalStorageFilter returns a QueryableFunc which creates a NoopQuerier\n// if requested timeframe can be answered completely by the local TSDB, and\n// reduces maxt if the timeframe can be partially answered by TSDB.", "docstring_tokens": ["PreferLocalStorageFilter", "returns", "a", "QueryableFunc", "which", "creates", "a", "NoopQuerier", "if", "requested", "timeframe", "can", "be", "answered", "completely", "by", "the", "local", "TSDB", "and", "reduces", "maxt", "if", "the", "timeframe", "can", "be", "partially", "answered", "by", "TSDB", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/read.go#L131-L148", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/read.go", "func_name": "RequiredMatchersFilter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RequiredMatchersFilter returns a storage.Queryable which creates a\n// requiredMatchersQuerier.", "docstring_tokens": ["RequiredMatchersFilter", "returns", "a", "storage", ".", "Queryable", "which", "creates", "a", "requiredMatchersQuerier", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/read.go#L152-L160", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/read.go", "func_name": "Select", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Select returns a NoopSeriesSet if the given matchers don't match the label\n// set of the requiredMatchersQuerier. Otherwise it'll call the wrapped querier.", "docstring_tokens": ["Select", "returns", "a", "NoopSeriesSet", "if", "the", "given", "matchers", "don", "t", "match", "the", "label", "set", "of", "the", "requiredMatchersQuerier", ".", "Otherwise", "it", "ll", "call", "the", "wrapped", "querier", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/read.go#L172-L189", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/read.go", "func_name": "addExternalLabels", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// addExternalLabels adds matchers for each external label. External labels\n// that already have a corresponding user-supplied matcher are skipped, as we\n// assume that the user explicitly wants to select a different value for them.\n// We return the new set of matchers, along with a map of labels for which\n// matchers were added, so that these can later be removed from the result\n// time series again.", "docstring_tokens": ["addExternalLabels", "adds", "matchers", "for", "each", "external", "label", ".", "External", "labels", "that", "already", "have", "a", "corresponding", "user", "-", "supplied", "matcher", "are", "skipped", "as", "we", "assume", "that", "the", "user", "explicitly", "wants", "to", "select", "a", "different", "value", "for", "them", ".", "We", "return", "the", "new", "set", "of", "matchers", "along", "with", "a", "map", "of", "labels", "for", "which", "matchers", "were", "added", "so", "that", "these", "can", "later", "be", "removed", "from", "the", "result", "time", "series", "again", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/read.go#L197-L220", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/openstack/instance.go", "func_name": "newInstanceDiscovery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewInstanceDiscovery returns a new instance discovery.", "docstring_tokens": ["NewInstanceDiscovery", "returns", "a", "new", "instance", "discovery", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/openstack/instance.go#L59-L66", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "notifier/notifier.go", "func_name": "ResolvedAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ResolvedAt returns true iff the activity interval ended before\n// the given timestamp.", "docstring_tokens": ["ResolvedAt", "returns", "true", "iff", "the", "activity", "interval", "ended", "before", "the", "given", "timestamp", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/notifier/notifier.go#L101-L106", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "notifier/notifier.go", "func_name": "NewManager", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewManager is the manager constructor.", "docstring_tokens": ["NewManager", "is", "the", "manager", "constructor", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/notifier/notifier.go#L221-L251", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "notifier/notifier.go", "func_name": "ApplyConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ApplyConfig updates the status state as the new config requires.", "docstring_tokens": ["ApplyConfig", "updates", "the", "status", "state", "as", "the", "new", "config", "requires", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/notifier/notifier.go#L254-L282", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "notifier/notifier.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run dispatches notifications continuously.", "docstring_tokens": ["Run", "dispatches", "notifications", "continuously", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/notifier/notifier.go#L311-L331", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "notifier/notifier.go", "func_name": "Send", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Send queues the given notification requests for processing.\n// Panics if called on a handler that is not running.", "docstring_tokens": ["Send", "queues", "the", "given", "notification", "requests", "for", "processing", ".", "Panics", "if", "called", "on", "a", "handler", "that", "is", "not", "running", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/notifier/notifier.go#L349-L389", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "notifier/notifier.go", "func_name": "Alertmanagers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Alertmanagers returns a slice of Alertmanager URLs.", "docstring_tokens": ["Alertmanagers", "returns", "a", "slice", "of", "Alertmanager", "URLs", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/notifier/notifier.go#L415-L431", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "notifier/notifier.go", "func_name": "DroppedAlertmanagers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DroppedAlertmanagers returns a slice of Alertmanager URLs.", "docstring_tokens": ["DroppedAlertmanagers", "returns", "a", "slice", "of", "Alertmanager", "URLs", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/notifier/notifier.go#L434-L450", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "notifier/notifier.go", "func_name": "sendAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// sendAll sends the alerts to all configured Alertmanagers concurrently.\n// It returns true if the alerts could be sent successfully to at least one Alertmanager.", "docstring_tokens": ["sendAll", "sends", "the", "alerts", "to", "all", "configured", "Alertmanagers", "concurrently", ".", "It", "returns", "true", "if", "the", "alerts", "could", "be", "sent", "successfully", "to", "at", "least", "one", "Alertmanager", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/notifier/notifier.go#L454-L500", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "notifier/notifier.go", "func_name": "Stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stop shuts down the notification handler.", "docstring_tokens": ["Stop", "shuts", "down", "the", "notification", "handler", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/notifier/notifier.go#L526-L529", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "notifier/notifier.go", "func_name": "sync", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// sync extracts a deduplicated set of Alertmanager endpoints from a list\n// of target groups definitions.", "docstring_tokens": ["sync", "extracts", "a", "deduplicated", "set", "of", "Alertmanager", "endpoints", "from", "a", "list", "of", "target", "groups", "definitions", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/notifier/notifier.go#L577-L612", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "notifier/notifier.go", "func_name": "alertmanagerFromGroup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// alertmanagersFromGroup extracts a list of alertmanagers from a target group\n// and an associated AlertmanagerConfig.", "docstring_tokens": ["alertmanagersFromGroup", "extracts", "a", "list", "of", "alertmanagers", "from", "a", "target", "group", "and", "an", "associated", "AlertmanagerConfig", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/notifier/notifier.go#L620-L691", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/lex.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns a descriptive string for the item.", "docstring_tokens": ["String", "returns", "a", "descriptive", "string", "for", "the", "item", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/lex.go#L31-L49", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/lex.go", "func_name": "isAggregatorWithParam", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isAggregator returns true if the item is an aggregator that takes a parameter.\n// Returns false otherwise", "docstring_tokens": ["isAggregator", "returns", "true", "if", "the", "item", "is", "an", "aggregator", "that", "takes", "a", "parameter", ".", "Returns", "false", "otherwise"], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/lex.go#L61-L63", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/lex.go", "func_name": "isComparisonOperator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isCompairsonOperator returns true if the item corresponds to a comparison operator.\n// Returns false otherwise.", "docstring_tokens": ["isCompairsonOperator", "returns", "true", "if", "the", "item", "corresponds", "to", "a", "comparison", "operator", ".", "Returns", "false", "otherwise", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/lex.go#L71-L78", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/lex.go", "func_name": "isSetOperator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isSetOperator returns whether the item corresponds to a set operator.", "docstring_tokens": ["isSetOperator", "returns", "whether", "the", "item", "corresponds", "to", "a", "set", "operator", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/lex.go#L81-L87", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/lex.go", "func_name": "precedence", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Precedence returns the operator precedence of the binary\n// operator op. If op is not a binary operator, the result\n// is LowestPrec.", "docstring_tokens": ["Precedence", "returns", "the", "operator", "precedence", "of", "the", "binary", "operator", "op", ".", "If", "op", "is", "not", "a", "binary", "operator", "the", "result", "is", "LowestPrec", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/lex.go#L95-L112", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/lex.go", "func_name": "next", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// next returns the next rune in the input.", "docstring_tokens": ["next", "returns", "the", "next", "rune", "in", "the", "input", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/lex.go#L340-L349", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/lex.go", "func_name": "peek", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// peek returns but does not consume the next rune in the input.", "docstring_tokens": ["peek", "returns", "but", "does", "not", "consume", "the", "next", "rune", "in", "the", "input", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/lex.go#L352-L356", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/lex.go", "func_name": "emit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// emit passes an item back to the client.", "docstring_tokens": ["emit", "passes", "an", "item", "back", "to", "the", "client", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/lex.go#L364-L367", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/lex.go", "func_name": "linePosition", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// linePosition reports at which character in the current line\n// we are on.", "docstring_tokens": ["linePosition", "reports", "at", "which", "character", "in", "the", "current", "line", "we", "are", "on", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/lex.go#L400-L406", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/lex.go", "func_name": "nextItem", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// nextItem returns the next item from the input.", "docstring_tokens": ["nextItem", "returns", "the", "next", "item", "from", "the", "input", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/lex.go#L416-L420", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/lex.go", "func_name": "lex", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// lex creates a new scanner for the input string.", "docstring_tokens": ["lex", "creates", "a", "new", "scanner", "for", "the", "input", "string", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/lex.go#L423-L430", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/lex.go", "func_name": "lexInsideBraces", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// lexInsideBraces scans the inside of a vector selector. Keywords are ignored and\n// scanned as identifiers.", "docstring_tokens": ["lexInsideBraces", "scans", "the", "inside", "of", "a", "vector", "selector", ".", "Keywords", "are", "ignored", "and", "scanned", "as", "identifiers", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/lex.go#L570-L621", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/lex.go", "func_name": "lexValueSequence", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// lexValueSequence scans a value sequence of a series description.", "docstring_tokens": ["lexValueSequence", "scans", "a", "value", "sequence", "of", "a", "series", "description", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/lex.go#L624-L650", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/lex.go", "func_name": "digitVal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// digitVal returns the digit value of a rune or 16 in case the rune does not\n// represent a valid digit.", "docstring_tokens": ["digitVal", "returns", "the", "digit", "value", "of", "a", "rune", "or", "16", "in", "case", "the", "rune", "does", "not", "represent", "a", "valid", "digit", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/lex.go#L706-L716", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/lex.go", "func_name": "lexString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// lexString scans a quoted string. The initial quote has already been seen.", "docstring_tokens": ["lexString", "scans", "a", "quoted", "string", ".", "The", "initial", "quote", "has", "already", "been", "seen", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/lex.go#L719-L735", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/lex.go", "func_name": "lexSpace", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// lexSpace scans a run of space characters. One space has already been seen.", "docstring_tokens": ["lexSpace", "scans", "a", "run", "of", "space", "characters", ".", "One", "space", "has", "already", "been", "seen", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/lex.go#L755-L761", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/lex.go", "func_name": "lexLineComment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// lexLineComment scans a line comment. Left comment marker is known to be present.", "docstring_tokens": ["lexLineComment", "scans", "a", "line", "comment", ".", "Left", "comment", "marker", "is", "known", "to", "be", "present", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/lex.go#L764-L772", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/lex.go", "func_name": "lexNumberOrDuration", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// lexNumberOrDuration scans a number or a duration item.", "docstring_tokens": ["lexNumberOrDuration", "scans", "a", "number", "or", "a", "duration", "item", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/lex.go#L800-L815", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/lex.go", "func_name": "scanNumber", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// scanNumber scans numbers of different formats. The scanned item is\n// not necessarily a valid number. This case is caught by the parser.", "docstring_tokens": ["scanNumber", "scans", "numbers", "of", "different", "formats", ".", "The", "scanned", "item", "is", "not", "necessarily", "a", "valid", "number", ".", "This", "case", "is", "caught", "by", "the", "parser", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/lex.go#L819-L839", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/lex.go", "func_name": "lexIdentifier", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// lexIdentifier scans an alphanumeric identifier. The next character\n// is known to be a letter.", "docstring_tokens": ["lexIdentifier", "scans", "an", "alphanumeric", "identifier", ".", "The", "next", "character", "is", "known", "to", "be", "a", "letter", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/lex.go#L843-L850", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/lex.go", "func_name": "lexKeywordOrIdentifier", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// lexKeywordOrIdentifier scans an alphanumeric identifier which may contain\n// a colon rune. If the identifier is a keyword the respective keyword item\n// is scanned.", "docstring_tokens": ["lexKeywordOrIdentifier", "scans", "an", "alphanumeric", "identifier", "which", "may", "contain", "a", "colon", "rune", ".", "If", "the", "identifier", "is", "a", "keyword", "the", "respective", "keyword", "item", "is", "scanned", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/lex.go#L855-L878", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/lex.go", "func_name": "isLabel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isLabel reports whether the string can be used as label.", "docstring_tokens": ["isLabel", "reports", "whether", "the", "string", "can", "be", "used", "as", "label", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/lex.go#L907-L917", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/textparse/promparse.go", "func_name": "Series", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Series returns the bytes of the series, the timestamp if set, and the value\n// of the current sample.", "docstring_tokens": ["Series", "returns", "the", "bytes", "of", "the", "series", "the", "timestamp", "if", "set", "and", "the", "value", "of", "the", "current", "sample", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/textparse/promparse.go#L163-L168", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/textparse/promparse.go", "func_name": "Type", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Type returns the metric name and type in the current entry.\n// Must only be called after Next returned a type entry.\n// The returned byte slices become invalid after the next call to Next.", "docstring_tokens": ["Type", "returns", "the", "metric", "name", "and", "type", "in", "the", "current", "entry", ".", "Must", "only", "be", "called", "after", "Next", "returned", "a", "type", "entry", ".", "The", "returned", "byte", "slices", "become", "invalid", "after", "the", "next", "call", "to", "Next", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/textparse/promparse.go#L186-L188", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/textparse/promparse.go", "func_name": "nextToken", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// nextToken returns the next token from the promlexer. It skips over tabs\n// and spaces.", "docstring_tokens": ["nextToken", "returns", "the", "next", "token", "from", "the", "promlexer", ".", "It", "skips", "over", "tabs", "and", "spaces", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/textparse/promparse.go#L239-L245", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "web/api/v1/api.go", "func_name": "NewAPI", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewAPI returns an initialized API type.", "docstring_tokens": ["NewAPI", "returns", "an", "initialized", "API", "type", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/web/api/v1/api.go#L164-L198", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "web/api/v1/api.go", "func_name": "mergeLabels", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// mergeLabels merges two sets of sorted proto labels, preferring those in\n// primary to those in secondary when there is an overlap.", "docstring_tokens": ["mergeLabels", "merges", "two", "sets", "of", "sorted", "proto", "labels", "preferring", "those", "in", "primary", "to", "those", "in", "secondary", "when", "there", "is", "an", "overlap", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/web/api/v1/api.go#L1066-L1089", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/tsdb/tsdb.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set the storage.", "docstring_tokens": ["Set", "the", "storage", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/tsdb/tsdb.go#L44-L49", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/tsdb/tsdb.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get the storage.", "docstring_tokens": ["Get", "the", "storage", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/tsdb/tsdb.go#L52-L57", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/tsdb/tsdb.go", "func_name": "Querier", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Querier implements the Storage interface.", "docstring_tokens": ["Querier", "implements", "the", "Storage", "interface", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/tsdb/tsdb.go#L75-L80", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/tsdb/tsdb.go", "func_name": "Appender", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Appender implements the Storage interface.", "docstring_tokens": ["Appender", "implements", "the", "Storage", "interface", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/tsdb/tsdb.go#L83-L88", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/tsdb/tsdb.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close implements the Storage interface.", "docstring_tokens": ["Close", "implements", "the", "Storage", "interface", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/tsdb/tsdb.go#L91-L96", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/tsdb/tsdb.go", "func_name": "Adapter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Adapter return an adapter as storage.Storage.", "docstring_tokens": ["Adapter", "return", "an", "adapter", "as", "storage", ".", "Storage", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/tsdb/tsdb.go#L99-L101", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/tsdb/tsdb.go", "func_name": "Open", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Open returns a new storage backed by a TSDB database that is configured for Prometheus.", "docstring_tokens": ["Open", "returns", "a", "new", "storage", "backed", "by", "a", "TSDB", "database", "that", "is", "configured", "for", "Prometheus", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/tsdb/tsdb.go#L176-L205", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/tsdb/tsdb.go", "func_name": "Appender", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Appender returns a new appender against the storage.", "docstring_tokens": ["Appender", "returns", "a", "new", "appender", "against", "the", "storage", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/tsdb/tsdb.go#L230-L232", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/relabel/relabel.go", "func_name": "NewRegexp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRegexp creates a new anchored Regexp and returns an error if the\n// passed-in regular expression does not compile.", "docstring_tokens": ["NewRegexp", "creates", "a", "new", "anchored", "Regexp", "and", "returns", "an", "error", "if", "the", "passed", "-", "in", "regular", "expression", "does", "not", "compile", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/relabel/relabel.go#L140-L146", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/relabel/relabel.go", "func_name": "MustNewRegexp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustNewRegexp works like NewRegexp, but panics if the regular expression does not compile.", "docstring_tokens": ["MustNewRegexp", "works", "like", "NewRegexp", "but", "panics", "if", "the", "regular", "expression", "does", "not", "compile", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/relabel/relabel.go#L149-L155", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/relabel/relabel.go", "func_name": "Process", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Process returns a relabeled copy of the given label set. The relabel configurations\n// are applied in order of input.\n// If a label set is dropped, nil is returned.\n// May return the input labelSet modified.", "docstring_tokens": ["Process", "returns", "a", "relabeled", "copy", "of", "the", "given", "label", "set", ".", "The", "relabel", "configurations", "are", "applied", "in", "order", "of", "input", ".", "If", "a", "label", "set", "is", "dropped", "nil", "is", "returned", ".", "May", "return", "the", "input", "labelSet", "modified", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/relabel/relabel.go#L183-L191", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/relabel/relabel.go", "func_name": "sum64", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// sum64 sums the md5 hash to an uint64.", "docstring_tokens": ["sum64", "sums", "the", "md5", "hash", "to", "an", "uint64", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/relabel/relabel.go#L258-L267", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "scrape/scrape.go", "func_name": "stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// stop terminates all scrape loops and returns after they all terminated.", "docstring_tokens": ["stop", "terminates", "all", "scrape", "loops", "and", "returns", "after", "they", "all", "terminated", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/scrape/scrape.go#L257-L277", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "scrape/scrape.go", "func_name": "reload", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// reload the scrape pool with the given scrape configuration. The target state is preserved\n// but all scrape loops are restarted with the new scrape configuration.\n// This method returns after all scrape loops that were stopped have stopped scraping.", "docstring_tokens": ["reload", "the", "scrape", "pool", "with", "the", "given", "scrape", "configuration", ".", "The", "target", "state", "is", "preserved", "but", "all", "scrape", "loops", "are", "restarted", "with", "the", "new", "scrape", "configuration", ".", "This", "method", "returns", "after", "all", "scrape", "loops", "that", "were", "stopped", "have", "stopped", "scraping", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/scrape/scrape.go#L282-L339", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "scrape/scrape.go", "func_name": "Sync", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sync converts target groups into actual scrape targets and synchronizes\n// the currently running scraper with the resulting set and returns all scraped and dropped targets.", "docstring_tokens": ["Sync", "converts", "target", "groups", "into", "actual", "scrape", "targets", "and", "synchronizes", "the", "currently", "running", "scraper", "with", "the", "resulting", "set", "and", "returns", "all", "scraped", "and", "dropped", "targets", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/scrape/scrape.go#L343-L370", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "scrape/scrape.go", "func_name": "sync", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// sync takes a list of potentially duplicated targets, deduplicates them, starts\n// scrape loops for new targets, and stops scrape loops for disappeared targets.\n// It returns after all stopped scrape loops terminated.", "docstring_tokens": ["sync", "takes", "a", "list", "of", "potentially", "duplicated", "targets", "deduplicates", "them", "starts", "scrape", "loops", "for", "new", "targets", "and", "stops", "scrape", "loops", "for", "disappeared", "targets", ".", "It", "returns", "after", "all", "stopped", "scrape", "loops", "terminated", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/scrape/scrape.go#L375-L439", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "scrape/scrape.go", "func_name": "appender", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// appender returns an appender for ingested samples from the target.", "docstring_tokens": ["appender", "returns", "an", "appender", "for", "ingested", "samples", "from", "the", "target", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/scrape/scrape.go#L490-L504", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/runtime/uname_linux.go", "func_name": "Uname", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Uname returns the uname of the host machine.", "docstring_tokens": ["Uname", "returns", "the", "uname", "of", "the", "host", "machine", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/runtime/uname_linux.go#L21-L35", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/codec.go", "func_name": "DecodeReadRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DecodeReadRequest reads a remote.Request from a http.Request.", "docstring_tokens": ["DecodeReadRequest", "reads", "a", "remote", ".", "Request", "from", "a", "http", ".", "Request", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/codec.go#L50-L67", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/codec.go", "func_name": "EncodeReadResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EncodeReadResponse writes a remote.Response to a http.ResponseWriter.", "docstring_tokens": ["EncodeReadResponse", "writes", "a", "remote", ".", "Response", "to", "a", "http", ".", "ResponseWriter", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/codec.go#L70-L82", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/codec.go", "func_name": "ToQuery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToQuery builds a Query proto.", "docstring_tokens": ["ToQuery", "builds", "a", "Query", "proto", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/codec.go#L85-L107", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/codec.go", "func_name": "FromQuery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FromQuery unpacks a Query proto.", "docstring_tokens": ["FromQuery", "unpacks", "a", "Query", "proto", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/codec.go#L110-L126", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/codec.go", "func_name": "ToQueryResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToQueryResult builds a QueryResult proto.", "docstring_tokens": ["ToQueryResult", "builds", "a", "QueryResult", "proto", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/codec.go#L129-L164", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/codec.go", "func_name": "FromQueryResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FromQueryResult unpacks a QueryResult proto.", "docstring_tokens": ["FromQueryResult", "unpacks", "a", "QueryResult", "proto", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/codec.go#L167-L184", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/codec.go", "func_name": "Seek", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Seek implements storage.SeriesIterator.", "docstring_tokens": ["Seek", "implements", "storage", ".", "SeriesIterator", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/codec.go#L256-L261", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/codec.go", "func_name": "At", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// At implements storage.SeriesIterator.", "docstring_tokens": ["At", "implements", "storage", ".", "SeriesIterator", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/codec.go#L264-L267", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/codec.go", "func_name": "Next", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Next implements storage.SeriesIterator.", "docstring_tokens": ["Next", "implements", "storage", ".", "SeriesIterator", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/codec.go#L270-L273", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/buffer.go", "func_name": "NewBufferIterator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewBufferIterator returns a new iterator that buffers the values within the\n// time range of the current element and the duration of delta before.", "docstring_tokens": ["NewBufferIterator", "returns", "a", "new", "iterator", "that", "buffers", "the", "values", "within", "the", "time", "range", "of", "the", "current", "element", "and", "the", "duration", "of", "delta", "before", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/buffer.go#L39-L47", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/buffer.go", "func_name": "Reset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reset re-uses the buffer with a new iterator, resetting the buffered time\n// delta to its original value.", "docstring_tokens": ["Reset", "re", "-", "uses", "the", "buffer", "with", "a", "new", "iterator", "resetting", "the", "buffered", "time", "delta", "to", "its", "original", "value", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/buffer.go#L51-L58", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/buffer.go", "func_name": "ReduceDelta", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReduceDelta lowers the buffered time delta, for the current SeriesIterator only.", "docstring_tokens": ["ReduceDelta", "lowers", "the", "buffered", "time", "delta", "for", "the", "current", "SeriesIterator", "only", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/buffer.go#L61-L63", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/buffer.go", "func_name": "PeekBack", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PeekBack returns the nth previous element of the iterator. If there is none buffered,\n// ok is false.", "docstring_tokens": ["PeekBack", "returns", "the", "nth", "previous", "element", "of", "the", "iterator", ".", "If", "there", "is", "none", "buffered", "ok", "is", "false", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/buffer.go#L67-L69", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/buffer.go", "func_name": "Seek", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Seek advances the iterator to the element at time t or greater.", "docstring_tokens": ["Seek", "advances", "the", "iterator", "to", "the", "element", "at", "time", "t", "or", "greater", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/buffer.go#L78-L103", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/buffer.go", "func_name": "Next", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Next advances the iterator to the next element.", "docstring_tokens": ["Next", "advances", "the", "iterator", "to", "the", "next", "element", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/buffer.go#L106-L120", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/buffer.go", "func_name": "iterator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns the current iterator. Invalidates previously returned iterators.", "docstring_tokens": ["Returns", "the", "current", "iterator", ".", "Invalidates", "previously", "returned", "iterators", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/buffer.go#L162-L166", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/buffer.go", "func_name": "reduceDelta", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// reduceDelta lowers the buffered time delta, dropping any samples that are\n// out of the new delta range.", "docstring_tokens": ["reduceDelta", "lowers", "the", "buffered", "time", "delta", "dropping", "any", "samples", "that", "are", "out", "of", "the", "new", "delta", "range", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/buffer.go#L233-L254", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/buffer.go", "func_name": "nthLast", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// nthLast returns the nth most recent element added to the ring.", "docstring_tokens": ["nthLast", "returns", "the", "nth", "most", "recent", "element", "added", "to", "the", "ring", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/buffer.go#L257-L263", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/textparse/openmetricsparse.go", "func_name": "next", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// next advances the openMetricsLexer to the next character.", "docstring_tokens": ["next", "advances", "the", "openMetricsLexer", "to", "the", "next", "character", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/textparse/openmetricsparse.go#L51-L67", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/textparse/openmetricsparse.go", "func_name": "Unit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Unit returns the metric name and unit in the current entry.\n// Must only be called after Next returned a unit entry.\n// The returned byte slices become invalid after the next call to Next.", "docstring_tokens": ["Unit", "returns", "the", "metric", "name", "and", "unit", "in", "the", "current", "entry", ".", "Must", "only", "be", "called", "after", "Next", "returned", "a", "unit", "entry", ".", "The", "returned", "byte", "slices", "become", "invalid", "after", "the", "next", "call", "to", "Next", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/textparse/openmetricsparse.go#L126-L129", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "pkg/textparse/openmetricsparse.go", "func_name": "Metric", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Metric writes the labels of the current sample into the passed labels.\n// It returns the string from which the metric was parsed.", "docstring_tokens": ["Metric", "writes", "the", "labels", "of", "the", "current", "sample", "into", "the", "passed", "labels", ".", "It", "returns", "the", "string", "from", "which", "the", "metric", "was", "parsed", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/pkg/textparse/openmetricsparse.go#L140-L169", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "promql/quantile.go", "func_name": "coalesceBuckets", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// coalesceBuckets merges buckets with the same upper bound.\n//\n// The input buckets must be sorted.", "docstring_tokens": ["coalesceBuckets", "merges", "buckets", "with", "the", "same", "upper", "bound", ".", "The", "input", "buckets", "must", "be", "sorted", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/promql/quantile.go#L115-L129", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/file/file.go", "func_name": "Collect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Collect creates constant metrics for each file with last modified time of the file.", "docstring_tokens": ["Collect", "creates", "constant", "metrics", "for", "each", "file", "with", "last", "modified", "time", "of", "the", "file", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/file/file.go#L88-L108", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/file/file.go", "func_name": "NewTimestampCollector", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTimestampCollector creates a TimestampCollector.", "docstring_tokens": ["NewTimestampCollector", "creates", "a", "TimestampCollector", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/file/file.go#L123-L133", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/file/file.go", "func_name": "NewDiscovery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDiscovery returns a new file discovery for the given paths.", "docstring_tokens": ["NewDiscovery", "returns", "a", "new", "file", "discovery", "for", "the", "given", "paths", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/file/file.go#L173-L186", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/file/file.go", "func_name": "listFiles", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// listFiles returns a list of all files that match the configured patterns.", "docstring_tokens": ["listFiles", "returns", "a", "list", "of", "all", "files", "that", "match", "the", "configured", "patterns", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/file/file.go#L189-L200", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/file/file.go", "func_name": "watchFiles", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// watchFiles sets watches on all full paths or directories that were configured for\n// this file discovery.", "docstring_tokens": ["watchFiles", "sets", "watches", "on", "all", "full", "paths", "or", "directories", "that", "were", "configured", "for", "this", "file", "discovery", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/file/file.go#L204-L218", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/file/file.go", "func_name": "stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// stop shuts down the file watcher.", "docstring_tokens": ["stop", "shuts", "down", "the", "file", "watcher", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/file/file.go#L282-L307", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/file/file.go", "func_name": "refresh", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// refresh reads all files matching the discovery's patterns and sends the respective\n// updated target groups through the channel.", "docstring_tokens": ["refresh", "reads", "all", "files", "matching", "the", "discovery", "s", "patterns", "and", "sends", "the", "respective", "updated", "target", "groups", "through", "the", "channel", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/file/file.go#L311-L353", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/file/file.go", "func_name": "readFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// readFile reads a JSON or YAML list of targets groups from the file, depending on its\n// file extension. It returns full configuration target groups.", "docstring_tokens": ["readFile", "reads", "a", "JSON", "or", "YAML", "list", "of", "targets", "groups", "from", "the", "file", "depending", "on", "its", "file", "extension", ".", "It", "returns", "full", "configuration", "target", "groups", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/file/file.go#L357-L405", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/file/file.go", "func_name": "fileSource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// fileSource returns a source ID for the i-th target group in the file.", "docstring_tokens": ["fileSource", "returns", "a", "source", "ID", "for", "the", "i", "-", "th", "target", "group", "in", "the", "file", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/file/file.go#L408-L410", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "rules/recording.go", "func_name": "NewRecordingRule", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRecordingRule returns a new recording rule.", "docstring_tokens": ["NewRecordingRule", "returns", "a", "new", "recording", "rule", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/rules/recording.go#L50-L57", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "rules/recording.go", "func_name": "Eval", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Eval evaluates the rule and then overrides the metric names and labels accordingly.", "docstring_tokens": ["Eval", "evaluates", "the", "rule", "and", "then", "overrides", "the", "metric", "names", "and", "labels", "accordingly", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/rules/recording.go#L75-L103", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "rules/recording.go", "func_name": "SetEvaluationDuration", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetEvaluationDuration updates evaluationDuration to the time in seconds it took to evaluate the rule on its last evaluation.", "docstring_tokens": ["SetEvaluationDuration", "updates", "evaluationDuration", "to", "the", "time", "in", "seconds", "it", "took", "to", "evaluate", "the", "rule", "on", "its", "last", "evaluation", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/rules/recording.go#L121-L125", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "rules/recording.go", "func_name": "SetLastError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetLastError sets the current error seen by the recording rule.", "docstring_tokens": ["SetLastError", "sets", "the", "current", "error", "seen", "by", "the", "recording", "rule", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/rules/recording.go#L128-L132", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "rules/recording.go", "func_name": "LastError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LastError returns the last error seen by the recording rule.", "docstring_tokens": ["LastError", "returns", "the", "last", "error", "seen", "by", "the", "recording", "rule", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/rules/recording.go#L135-L139", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "rules/recording.go", "func_name": "SetHealth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetHealth sets the current health of the recording rule.", "docstring_tokens": ["SetHealth", "sets", "the", "current", "health", "of", "the", "recording", "rule", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/rules/recording.go#L142-L146", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "rules/recording.go", "func_name": "Health", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Health returns the current health of the recording rule.", "docstring_tokens": ["Health", "returns", "the", "current", "health", "of", "the", "recording", "rule", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/rules/recording.go#L149-L153", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "rules/recording.go", "func_name": "GetEvaluationDuration", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetEvaluationDuration returns the time in seconds it took to evaluate the recording rule.", "docstring_tokens": ["GetEvaluationDuration", "returns", "the", "time", "in", "seconds", "it", "took", "to", "evaluate", "the", "recording", "rule", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/rules/recording.go#L156-L160", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "rules/recording.go", "func_name": "HTMLSnippet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HTMLSnippet returns an HTML snippet representing this rule.", "docstring_tokens": ["HTMLSnippet", "returns", "an", "HTML", "snippet", "representing", "this", "rule", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/rules/recording.go#L177-L196", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/ewma.go", "func_name": "rate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// rate returns the per-second rate.", "docstring_tokens": ["rate", "returns", "the", "per", "-", "second", "rate", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/ewma.go#L42-L46", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/ewma.go", "func_name": "tick", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// tick assumes to be called every r.interval.", "docstring_tokens": ["tick", "assumes", "to", "be", "called", "every", "r", ".", "interval", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/ewma.go#L49-L63", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "storage/remote/ewma.go", "func_name": "incr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// inc counts one event.", "docstring_tokens": ["inc", "counts", "one", "event", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/storage/remote/ewma.go#L66-L68", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/kubernetes/node.go", "func_name": "NewNode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewNode returns a new node discovery.", "docstring_tokens": ["NewNode", "returns", "a", "new", "node", "discovery", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/kubernetes/node.go#L46-L66", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "cmd/promtool/main.go", "func_name": "CheckConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CheckConfig validates configuration files.", "docstring_tokens": ["CheckConfig", "validates", "configuration", "files", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/cmd/promtool/main.go#L150-L177", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "cmd/promtool/main.go", "func_name": "CheckRules", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CheckRules validates rule files.", "docstring_tokens": ["CheckRules", "validates", "rule", "files", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/cmd/promtool/main.go#L267-L286", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "cmd/promtool/main.go", "func_name": "CheckMetrics", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CheckMetrics performs a linting pass on input metrics.", "docstring_tokens": ["CheckMetrics", "performs", "a", "linting", "pass", "on", "input", "metrics", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/cmd/promtool/main.go#L315-L332", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "cmd/promtool/main.go", "func_name": "QueryInstant", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// QueryInstant performs an instant query against a Prometheus server.", "docstring_tokens": ["QueryInstant", "performs", "an", "instant", "query", "against", "a", "Prometheus", "server", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/cmd/promtool/main.go#L335-L361", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "cmd/promtool/main.go", "func_name": "QueryRange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// QueryRange performs a range query against a Prometheus server.", "docstring_tokens": ["QueryRange", "performs", "a", "range", "query", "against", "a", "Prometheus", "server", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/cmd/promtool/main.go#L364-L421", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "cmd/promtool/main.go", "func_name": "QuerySeries", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// QuerySeries queries for a series against a Prometheus server.", "docstring_tokens": ["QuerySeries", "queries", "for", "a", "series", "against", "a", "Prometheus", "server", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/cmd/promtool/main.go#L424-L475", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "cmd/promtool/main.go", "func_name": "QueryLabels", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// QueryLabels queries for label values against a Prometheus server.", "docstring_tokens": ["QueryLabels", "queries", "for", "label", "values", "against", "a", "Prometheus", "server", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/cmd/promtool/main.go#L478-L503", "partition": "valid"} +{"repo": "prometheus/prometheus", "path": "discovery/targetgroup/targetgroup.go", "func_name": "UnmarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalJSON implements the json.Unmarshaler interface.", "docstring_tokens": ["UnmarshalJSON", "implements", "the", "json", ".", "Unmarshaler", "interface", "."], "sha": "03b90b464572174a64b6ee2cb0b097eda489ba47", "url": "https://github.com/prometheus/prometheus/blob/03b90b464572174a64b6ee2cb0b097eda489ba47/discovery/targetgroup/targetgroup.go#L74-L93", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "stream.go", "func_name": "NewStreamReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewStreamReader returns a reader, which replays all the data generated by sw.\n//\n// The returned reader may be passed to Response.SetBodyStream.\n//\n// Close must be called on the returned reader after all the required data\n// has been read. Otherwise goroutine leak may occur.\n//\n// See also Response.SetBodyStreamWriter.", "docstring_tokens": ["NewStreamReader", "returns", "a", "reader", "which", "replays", "all", "the", "data", "generated", "by", "sw", ".", "The", "returned", "reader", "may", "be", "passed", "to", "Response", ".", "SetBodyStream", ".", "Close", "must", "be", "called", "on", "the", "returned", "reader", "after", "all", "the", "required", "data", "has", "been", "read", ".", "Otherwise", "goroutine", "leak", "may", "occur", ".", "See", "also", "Response", ".", "SetBodyStreamWriter", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/stream.go#L29-L52", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "status.go", "func_name": "StatusMessage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StatusMessage returns HTTP status message for the given status code.", "docstring_tokens": ["StatusMessage", "returns", "HTTP", "status", "message", "for", "the", "given", "status", "code", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/status.go#L147-L153", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "args.go", "func_name": "CopyTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CopyTo copies all args to dst.", "docstring_tokens": ["CopyTo", "copies", "all", "args", "to", "dst", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/args.go#L65-L68", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "args.go", "func_name": "Parse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Parse parses the given string containing query args.", "docstring_tokens": ["Parse", "parses", "the", "given", "string", "containing", "query", "args", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/args.go#L84-L87", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "args.go", "func_name": "ParseBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseBytes parses the given b containing query args.", "docstring_tokens": ["ParseBytes", "parses", "the", "given", "b", "containing", "query", "args", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/args.go#L90-L104", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "args.go", "func_name": "QueryString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// QueryString returns query string for the args.\n//\n// The returned value is valid until the next call to Args methods.", "docstring_tokens": ["QueryString", "returns", "query", "string", "for", "the", "args", ".", "The", "returned", "value", "is", "valid", "until", "the", "next", "call", "to", "Args", "methods", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/args.go#L114-L117", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "args.go", "func_name": "AppendBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AppendBytes appends query string to dst and returns the extended dst.", "docstring_tokens": ["AppendBytes", "appends", "query", "string", "to", "dst", "and", "returns", "the", "extended", "dst", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/args.go#L133-L148", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "args.go", "func_name": "WriteTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteTo writes query string to w.\n//\n// WriteTo implements io.WriterTo interface.", "docstring_tokens": ["WriteTo", "writes", "query", "string", "to", "w", ".", "WriteTo", "implements", "io", ".", "WriterTo", "interface", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/args.go#L153-L156", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "args.go", "func_name": "Del", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Del deletes argument with the given key from query args.", "docstring_tokens": ["Del", "deletes", "argument", "with", "the", "given", "key", "from", "query", "args", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/args.go#L159-L161", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "args.go", "func_name": "DelBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DelBytes deletes argument with the given key from query args.", "docstring_tokens": ["DelBytes", "deletes", "argument", "with", "the", "given", "key", "from", "query", "args", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/args.go#L164-L166", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "args.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add adds 'key=value' argument.\n//\n// Multiple values for the same key may be added.", "docstring_tokens": ["Add", "adds", "key", "=", "value", "argument", ".", "Multiple", "values", "for", "the", "same", "key", "may", "be", "added", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/args.go#L171-L173", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "args.go", "func_name": "AddBytesK", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddBytesK adds 'key=value' argument.\n//\n// Multiple values for the same key may be added.", "docstring_tokens": ["AddBytesK", "adds", "key", "=", "value", "argument", ".", "Multiple", "values", "for", "the", "same", "key", "may", "be", "added", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/args.go#L178-L180", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "args.go", "func_name": "AddBytesKV", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddBytesKV adds 'key=value' argument.\n//\n// Multiple values for the same key may be added.", "docstring_tokens": ["AddBytesKV", "adds", "key", "=", "value", "argument", ".", "Multiple", "values", "for", "the", "same", "key", "may", "be", "added", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/args.go#L192-L194", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "args.go", "func_name": "AddNoValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddNoValue adds only 'key' as argument without the '='.\n//\n// Multiple values for the same key may be added.", "docstring_tokens": ["AddNoValue", "adds", "only", "key", "as", "argument", "without", "the", "=", ".", "Multiple", "values", "for", "the", "same", "key", "may", "be", "added", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/args.go#L199-L201", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "args.go", "func_name": "AddBytesKNoValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddBytesKNoValue adds only 'key' as argument without the '='.\n//\n// Multiple values for the same key may be added.", "docstring_tokens": ["AddBytesKNoValue", "adds", "only", "key", "as", "argument", "without", "the", "=", ".", "Multiple", "values", "for", "the", "same", "key", "may", "be", "added", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/args.go#L206-L208", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "args.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set sets 'key=value' argument.", "docstring_tokens": ["Set", "sets", "key", "=", "value", "argument", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/args.go#L211-L213", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "args.go", "func_name": "SetBytesV", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetBytesV sets 'key=value' argument.", "docstring_tokens": ["SetBytesV", "sets", "key", "=", "value", "argument", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/args.go#L221-L223", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "args.go", "func_name": "SetBytesKV", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetBytesKV sets 'key=value' argument.", "docstring_tokens": ["SetBytesKV", "sets", "key", "=", "value", "argument", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/args.go#L226-L228", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "args.go", "func_name": "SetNoValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetNoValue sets only 'key' as argument without the '='.\n//\n// Only key in argumemt, like key1&key2", "docstring_tokens": ["SetNoValue", "sets", "only", "key", "as", "argument", "without", "the", "=", ".", "Only", "key", "in", "argumemt", "like", "key1&key2"], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/args.go#L233-L235", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "args.go", "func_name": "SetBytesKNoValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetBytesKNoValue sets 'key' argument.", "docstring_tokens": ["SetBytesKNoValue", "sets", "key", "argument", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/args.go#L238-L240", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "args.go", "func_name": "Peek", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Peek returns query arg value for the given key.\n//\n// Returned value is valid until the next Args call.", "docstring_tokens": ["Peek", "returns", "query", "arg", "value", "for", "the", "given", "key", ".", "Returned", "value", "is", "valid", "until", "the", "next", "Args", "call", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/args.go#L245-L247", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "args.go", "func_name": "PeekBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PeekBytes returns query arg value for the given key.\n//\n// Returned value is valid until the next Args call.", "docstring_tokens": ["PeekBytes", "returns", "query", "arg", "value", "for", "the", "given", "key", ".", "Returned", "value", "is", "valid", "until", "the", "next", "Args", "call", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/args.go#L252-L254", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "args.go", "func_name": "PeekMulti", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PeekMulti returns all the arg values for the given key.", "docstring_tokens": ["PeekMulti", "returns", "all", "the", "arg", "values", "for", "the", "given", "key", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/args.go#L257-L265", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "args.go", "func_name": "PeekMultiBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PeekMultiBytes returns all the arg values for the given key.", "docstring_tokens": ["PeekMultiBytes", "returns", "all", "the", "arg", "values", "for", "the", "given", "key", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/args.go#L268-L270", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "args.go", "func_name": "Has", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Has returns true if the given key exists in Args.", "docstring_tokens": ["Has", "returns", "true", "if", "the", "given", "key", "exists", "in", "Args", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/args.go#L273-L275", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "args.go", "func_name": "HasBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasBytes returns true if the given key exists in Args.", "docstring_tokens": ["HasBytes", "returns", "true", "if", "the", "given", "key", "exists", "in", "Args", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/args.go#L278-L280", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "args.go", "func_name": "GetUint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetUint returns uint value for the given key.", "docstring_tokens": ["GetUint", "returns", "uint", "value", "for", "the", "given", "key", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/args.go#L286-L292", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "args.go", "func_name": "SetUint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetUint sets uint value for the given key.", "docstring_tokens": ["SetUint", "sets", "uint", "value", "for", "the", "given", "key", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/args.go#L295-L300", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "args.go", "func_name": "SetUintBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetUintBytes sets uint value for the given key.", "docstring_tokens": ["SetUintBytes", "sets", "uint", "value", "for", "the", "given", "key", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/args.go#L303-L305", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "args.go", "func_name": "GetUfloat", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetUfloat returns ufloat value for the given key.", "docstring_tokens": ["GetUfloat", "returns", "ufloat", "value", "for", "the", "given", "key", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/args.go#L319-L325", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "args.go", "func_name": "GetBool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetBool returns boolean value for the given key.\n//\n// true is returned for \"1\", \"t\", \"T\", \"true\", \"TRUE\", \"True\", \"y\", \"yes\", \"Y\", \"YES\", \"Yes\",\n// otherwise false is returned.", "docstring_tokens": ["GetBool", "returns", "boolean", "value", "for", "the", "given", "key", ".", "true", "is", "returned", "for", "1", "t", "T", "true", "TRUE", "True", "y", "yes", "Y", "YES", "Yes", "otherwise", "false", "is", "returned", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/args.go#L342-L352", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "args.go", "func_name": "decodeArgAppendNoPlus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// decodeArgAppendNoPlus is almost identical to decodeArgAppend, but it doesn't\n// substitute '+' with ' '.\n//\n// The function is copy-pasted from decodeArgAppend due to the performance\n// reasons only.", "docstring_tokens": ["decodeArgAppendNoPlus", "is", "almost", "identical", "to", "decodeArgAppend", "but", "it", "doesn", "t", "substitute", "+", "with", ".", "The", "function", "is", "copy", "-", "pasted", "from", "decodeArgAppend", "due", "to", "the", "performance", "reasons", "only", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/args.go#L562-L588", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "bytesconv.go", "func_name": "AppendHTMLEscape", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AppendHTMLEscape appends html-escaped s to dst and returns the extended dst.", "docstring_tokens": ["AppendHTMLEscape", "appends", "html", "-", "escaped", "s", "to", "dst", "and", "returns", "the", "extended", "dst", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/bytesconv.go#L19-L51", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "bytesconv.go", "func_name": "AppendIPv4", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AppendIPv4 appends string representation of the given ip v4 to dst\n// and returns the extended dst.", "docstring_tokens": ["AppendIPv4", "appends", "string", "representation", "of", "the", "given", "ip", "v4", "to", "dst", "and", "returns", "the", "extended", "dst", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/bytesconv.go#L61-L73", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "bytesconv.go", "func_name": "ParseIPv4", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseIPv4 parses ip address from ipStr into dst and returns the extended dst.", "docstring_tokens": ["ParseIPv4", "parses", "ip", "address", "from", "ipStr", "into", "dst", "and", "returns", "the", "extended", "dst", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/bytesconv.go#L78-L117", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "bytesconv.go", "func_name": "ParseUint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseUint parses uint from buf.", "docstring_tokens": ["ParseUint", "parses", "uint", "from", "buf", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/bytesconv.go#L156-L162", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "bytesconv.go", "func_name": "ParseUfloat", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseUfloat parses unsigned float from buf.", "docstring_tokens": ["ParseUfloat", "parses", "unsigned", "float", "from", "buf", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/bytesconv.go#L204-L250", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "bytesconv.go", "func_name": "AppendQuotedArg", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AppendQuotedArg appends url-encoded src to dst and returns appended dst.", "docstring_tokens": ["AppendQuotedArg", "appends", "url", "-", "encoded", "src", "to", "dst", "and", "returns", "appended", "dst", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/bytesconv.go#L405-L416", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "uri.go", "func_name": "CopyTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CopyTo copies uri contents to dst.", "docstring_tokens": ["CopyTo", "copies", "uri", "contents", "to", "dst", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/uri.go#L58-L73", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "uri.go", "func_name": "SetHash", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetHash sets URI hash.", "docstring_tokens": ["SetHash", "sets", "URI", "hash", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/uri.go#L83-L85", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "uri.go", "func_name": "SetHashBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetHashBytes sets URI hash.", "docstring_tokens": ["SetHashBytes", "sets", "URI", "hash", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/uri.go#L88-L90", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "uri.go", "func_name": "SetQueryString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetQueryString sets URI query string.", "docstring_tokens": ["SetQueryString", "sets", "URI", "query", "string", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/uri.go#L101-L104", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "uri.go", "func_name": "SetQueryStringBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetQueryStringBytes sets URI query string.", "docstring_tokens": ["SetQueryStringBytes", "sets", "URI", "query", "string", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/uri.go#L107-L110", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "uri.go", "func_name": "SetPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetPath sets URI path.", "docstring_tokens": ["SetPath", "sets", "URI", "path", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/uri.go#L127-L130", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "uri.go", "func_name": "SetPathBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetPathBytes sets URI path.", "docstring_tokens": ["SetPathBytes", "sets", "URI", "path", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/uri.go#L133-L136", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "uri.go", "func_name": "SetScheme", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetScheme sets URI scheme, i.e. http, https, ftp, etc.", "docstring_tokens": ["SetScheme", "sets", "URI", "scheme", "i", ".", "e", ".", "http", "https", "ftp", "etc", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/uri.go#L159-L162", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "uri.go", "func_name": "SetSchemeBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetSchemeBytes sets URI scheme, i.e. http, https, ftp, etc.", "docstring_tokens": ["SetSchemeBytes", "sets", "URI", "scheme", "i", ".", "e", ".", "http", "https", "ftp", "etc", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/uri.go#L165-L168", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "uri.go", "func_name": "Reset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reset clears uri.", "docstring_tokens": ["Reset", "clears", "uri", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/uri.go#L171-L189", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "uri.go", "func_name": "SetHost", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetHost sets host for the uri.", "docstring_tokens": ["SetHost", "sets", "host", "for", "the", "uri", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/uri.go#L204-L207", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "uri.go", "func_name": "SetHostBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetHostBytes sets host for the uri.", "docstring_tokens": ["SetHostBytes", "sets", "host", "for", "the", "uri", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/uri.go#L210-L213", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "uri.go", "func_name": "RequestURI", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RequestURI returns RequestURI - i.e. URI without Scheme and Host.", "docstring_tokens": ["RequestURI", "returns", "RequestURI", "-", "i", ".", "e", ".", "URI", "without", "Scheme", "and", "Host", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/uri.go#L338-L353", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "uri.go", "func_name": "AppendBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AppendBytes appends full uri to dst and returns the extended dst.", "docstring_tokens": ["AppendBytes", "appends", "full", "uri", "to", "dst", "and", "returns", "the", "extended", "dst", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/uri.go#L463-L466", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "uri.go", "func_name": "WriteTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteTo writes full uri to w.\n//\n// WriteTo implements io.WriterTo interface.", "docstring_tokens": ["WriteTo", "writes", "full", "uri", "to", "w", ".", "WriteTo", "implements", "io", ".", "WriterTo", "interface", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/uri.go#L477-L480", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "stackless/writer.go", "func_name": "NewWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewWriter creates a stackless writer around a writer returned\n// from newWriter.\n//\n// The returned writer writes data to dstW.\n//\n// Writers that use a lot of stack space may be wrapped into stackless writer,\n// thus saving stack space for high number of concurrently running goroutines.", "docstring_tokens": ["NewWriter", "creates", "a", "stackless", "writer", "around", "a", "writer", "returned", "from", "newWriter", ".", "The", "returned", "writer", "writes", "data", "to", "dstW", ".", "Writers", "that", "use", "a", "lot", "of", "stack", "space", "may", "be", "wrapped", "into", "stackless", "writer", "thus", "saving", "stack", "space", "for", "high", "number", "of", "concurrently", "running", "goroutines", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/stackless/writer.go#L32-L38", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "fasthttputil/pipeconns.go", "func_name": "NewPipeConns", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPipeConns returns new bi-directional connection pipe.", "docstring_tokens": ["NewPipeConns", "returns", "new", "bi", "-", "directional", "connection", "pipe", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/fasthttputil/pipeconns.go#L12-L26", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "fasthttputil/pipeconns.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close closes pipe connections.", "docstring_tokens": ["Close", "closes", "pipe", "connections", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/fasthttputil/pipeconns.go#L65-L75", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "client.go", "func_name": "LastUseTime", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LastUseTime returns time the client was last used", "docstring_tokens": ["LastUseTime", "returns", "time", "the", "client", "was", "last", "used"], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/client.go#L648-L651", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "client.go", "func_name": "AcquireRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AcquireRequest returns an empty Request instance from request pool.\n//\n// The returned Request instance may be passed to ReleaseRequest when it is\n// no longer needed. This allows Request recycling, reduces GC pressure\n// and usually improves performance.", "docstring_tokens": ["AcquireRequest", "returns", "an", "empty", "Request", "instance", "from", "request", "pool", ".", "The", "returned", "Request", "instance", "may", "be", "passed", "to", "ReleaseRequest", "when", "it", "is", "no", "longer", "needed", ".", "This", "allows", "Request", "recycling", "reduces", "GC", "pressure", "and", "usually", "improves", "performance", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/client.go#L876-L882", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "client.go", "func_name": "AcquireResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AcquireResponse returns an empty Response instance from response pool.\n//\n// The returned Response instance may be passed to ReleaseResponse when it is\n// no longer needed. This allows Response recycling, reduces GC pressure\n// and usually improves performance.", "docstring_tokens": ["AcquireResponse", "returns", "an", "empty", "Response", "instance", "from", "response", "pool", ".", "The", "returned", "Response", "instance", "may", "be", "passed", "to", "ReleaseResponse", "when", "it", "is", "no", "longer", "needed", ".", "This", "allows", "Response", "recycling", "reduces", "GC", "pressure", "and", "usually", "improves", "performance", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/client.go#L898-L904", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "lbclient.go", "func_name": "DoDeadline", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DoDeadline calls DoDeadline on the least loaded client", "docstring_tokens": ["DoDeadline", "calls", "DoDeadline", "on", "the", "least", "loaded", "client"], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/lbclient.go#L66-L68", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "lbclient.go", "func_name": "DoTimeout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DoTimeout calculates deadline and calls DoDeadline on the least loaded client", "docstring_tokens": ["DoTimeout", "calculates", "deadline", "and", "calls", "DoDeadline", "on", "the", "least", "loaded", "client"], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/lbclient.go#L71-L74", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "lbclient.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do calls calculates deadline using LBClient.Timeout and calls DoDeadline\n// on the least loaded client.", "docstring_tokens": ["Do", "calls", "calculates", "deadline", "using", "LBClient", ".", "Timeout", "and", "calls", "DoDeadline", "on", "the", "least", "loaded", "client", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/lbclient.go#L78-L84", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "server.go", "func_name": "Serve", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Serve serves incoming connections from the given listener\n// using the given handler.\n//\n// Serve blocks until the given listener returns permanent error.", "docstring_tokens": ["Serve", "serves", "incoming", "connections", "from", "the", "given", "listener", "using", "the", "given", "handler", ".", "Serve", "blocks", "until", "the", "given", "listener", "returns", "permanent", "error", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/server.go#L57-L62", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "server.go", "func_name": "ServeTLS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServeTLS serves HTTPS requests from the given net.Listener\n// using the given handler.\n//\n// certFile and keyFile are paths to TLS certificate and key files.", "docstring_tokens": ["ServeTLS", "serves", "HTTPS", "requests", "from", "the", "given", "net", ".", "Listener", "using", "the", "given", "handler", ".", "certFile", "and", "keyFile", "are", "paths", "to", "TLS", "certificate", "and", "key", "files", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/server.go#L68-L73", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "server.go", "func_name": "ServeTLSEmbed", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServeTLSEmbed serves HTTPS requests from the given net.Listener\n// using the given handler.\n//\n// certData and keyData must contain valid TLS certificate and key data.", "docstring_tokens": ["ServeTLSEmbed", "serves", "HTTPS", "requests", "from", "the", "given", "net", ".", "Listener", "using", "the", "given", "handler", ".", "certData", "and", "keyData", "must", "contain", "valid", "TLS", "certificate", "and", "key", "data", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/server.go#L79-L84", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "server.go", "func_name": "ListenAndServe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListenAndServe serves HTTP requests from the given TCP addr\n// using the given handler.", "docstring_tokens": ["ListenAndServe", "serves", "HTTP", "requests", "from", "the", "given", "TCP", "addr", "using", "the", "given", "handler", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/server.go#L88-L93", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "server.go", "func_name": "ListenAndServeUNIX", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListenAndServeUNIX serves HTTP requests from the given UNIX addr\n// using the given handler.\n//\n// The function deletes existing file at addr before starting serving.\n//\n// The server sets the given file mode for the UNIX addr.", "docstring_tokens": ["ListenAndServeUNIX", "serves", "HTTP", "requests", "from", "the", "given", "UNIX", "addr", "using", "the", "given", "handler", ".", "The", "function", "deletes", "existing", "file", "at", "addr", "before", "starting", "serving", ".", "The", "server", "sets", "the", "given", "file", "mode", "for", "the", "UNIX", "addr", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/server.go#L101-L106", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "server.go", "func_name": "ListenAndServeTLS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListenAndServeTLS serves HTTPS requests from the given TCP addr\n// using the given handler.\n//\n// certFile and keyFile are paths to TLS certificate and key files.", "docstring_tokens": ["ListenAndServeTLS", "serves", "HTTPS", "requests", "from", "the", "given", "TCP", "addr", "using", "the", "given", "handler", ".", "certFile", "and", "keyFile", "are", "paths", "to", "TLS", "certificate", "and", "key", "files", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/server.go#L112-L117", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "server.go", "func_name": "ListenAndServeTLSEmbed", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListenAndServeTLSEmbed serves HTTPS requests from the given TCP addr\n// using the given handler.\n//\n// certData and keyData must contain valid TLS certificate and key data.", "docstring_tokens": ["ListenAndServeTLSEmbed", "serves", "HTTPS", "requests", "from", "the", "given", "TCP", "addr", "using", "the", "given", "handler", ".", "certData", "and", "keyData", "must", "contain", "valid", "TLS", "certificate", "and", "key", "data", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/server.go#L123-L128", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "server.go", "func_name": "TimeoutHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TimeoutHandler creates RequestHandler, which returns StatusRequestTimeout\n// error with the given msg to the client if h didn't return during\n// the given duration.\n//\n// The returned handler may return StatusTooManyRequests error with the given\n// msg to the client if there are more than Server.Concurrency concurrent\n// handlers h are running at the moment.", "docstring_tokens": ["TimeoutHandler", "creates", "RequestHandler", "which", "returns", "StatusRequestTimeout", "error", "with", "the", "given", "msg", "to", "the", "client", "if", "h", "didn", "t", "return", "during", "the", "given", "duration", ".", "The", "returned", "handler", "may", "return", "StatusTooManyRequests", "error", "with", "the", "given", "msg", "to", "the", "client", "if", "there", "are", "more", "than", "Server", ".", "Concurrency", "concurrent", "handlers", "h", "are", "running", "at", "the", "moment", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/server.go#L373-L405", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "server.go", "func_name": "TLSConnectionState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TLSConnectionState returns TLS connection state.\n//\n// The function returns nil if the underlying connection isn't tls.Conn.\n//\n// The returned state may be used for verifying TLS version, client certificates,\n// etc.", "docstring_tokens": ["TLSConnectionState", "returns", "TLS", "connection", "state", ".", "The", "function", "returns", "nil", "if", "the", "underlying", "connection", "isn", "t", "tls", ".", "Conn", ".", "The", "returned", "state", "may", "be", "used", "for", "verifying", "TLS", "version", "client", "certificates", "etc", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/server.go#L604-L611", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "server.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns unique string representation of the ctx.\n//\n// The returned value may be useful for logging.", "docstring_tokens": ["String", "returns", "unique", "string", "representation", "of", "the", "ctx", ".", "The", "returned", "value", "may", "be", "useful", "for", "logging", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/server.go#L670-L672", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "server.go", "func_name": "SetContentType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetContentType sets response Content-Type.", "docstring_tokens": ["SetContentType", "sets", "response", "Content", "-", "Type", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/server.go#L718-L720", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "server.go", "func_name": "SetContentTypeBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetContentTypeBytes sets response Content-Type.\n//\n// It is safe modifying contentType buffer after function return.", "docstring_tokens": ["SetContentTypeBytes", "sets", "response", "Content", "-", "Type", ".", "It", "is", "safe", "modifying", "contentType", "buffer", "after", "function", "return", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/server.go#L725-L727", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "server.go", "func_name": "FormFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FormFile returns uploaded file associated with the given multipart form key.\n//\n// The file is automatically deleted after returning from RequestHandler,\n// so either move or copy uploaded file into new place if you want retaining it.\n//\n// Use SaveMultipartFile function for permanently saving uploaded file.\n//\n// The returned file header is valid until returning from RequestHandler.", "docstring_tokens": ["FormFile", "returns", "uploaded", "file", "associated", "with", "the", "given", "multipart", "form", "key", ".", "The", "file", "is", "automatically", "deleted", "after", "returning", "from", "RequestHandler", "so", "either", "move", "or", "copy", "uploaded", "file", "into", "new", "place", "if", "you", "want", "retaining", "it", ".", "Use", "SaveMultipartFile", "function", "for", "permanently", "saving", "uploaded", "file", ".", "The", "returned", "file", "header", "is", "valid", "until", "returning", "from", "RequestHandler", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/server.go#L817-L830", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "server.go", "func_name": "SaveMultipartFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SaveMultipartFile saves multipart file fh under the given filename path.", "docstring_tokens": ["SaveMultipartFile", "saves", "multipart", "file", "fh", "under", "the", "given", "filename", "path", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/server.go#L837-L871", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "server.go", "func_name": "RemoteAddr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoteAddr returns client address for the given request.\n//\n// Always returns non-nil result.", "docstring_tokens": ["RemoteAddr", "returns", "client", "address", "for", "the", "given", "request", ".", "Always", "returns", "non", "-", "nil", "result", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/server.go#L962-L971", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "server.go", "func_name": "Error", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Error sets response status code to the given value and sets response body\n// to the given message.", "docstring_tokens": ["Error", "sets", "response", "status", "code", "to", "the", "given", "value", "and", "sets", "response", "body", "to", "the", "given", "message", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/server.go#L1011-L1016", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "server.go", "func_name": "Success", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Success sets response Content-Type and body to the given values.", "docstring_tokens": ["Success", "sets", "response", "Content", "-", "Type", "and", "body", "to", "the", "given", "values", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/server.go#L1019-L1022", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "server.go", "func_name": "SuccessString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SuccessString sets response Content-Type and body to the given values.", "docstring_tokens": ["SuccessString", "sets", "response", "Content", "-", "Type", "and", "body", "to", "the", "given", "values", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/server.go#L1025-L1028", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "server.go", "func_name": "IfModifiedSince", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IfModifiedSince returns true if lastModified exceeds 'If-Modified-Since'\n// value from the request header.\n//\n// The function returns true also 'If-Modified-Since' request header is missing.", "docstring_tokens": ["IfModifiedSince", "returns", "true", "if", "lastModified", "exceeds", "If", "-", "Modified", "-", "Since", "value", "from", "the", "request", "header", ".", "The", "function", "returns", "true", "also", "If", "-", "Modified", "-", "Since", "request", "header", "is", "missing", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/server.go#L1142-L1153", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "server.go", "func_name": "NotFound", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NotFound resets response and sets '404 Not Found' response status code.", "docstring_tokens": ["NotFound", "resets", "response", "and", "sets", "404", "Not", "Found", "response", "status", "code", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/server.go#L1162-L1166", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "server.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write writes p into response body.", "docstring_tokens": ["Write", "writes", "p", "into", "response", "body", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/server.go#L1169-L1172", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "server.go", "func_name": "WriteString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteString appends s to response body.", "docstring_tokens": ["WriteString", "appends", "s", "to", "response", "body", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/server.go#L1175-L1178", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "server.go", "func_name": "Logger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Logger returns logger, which may be used for logging arbitrary\n// request-specific messages inside RequestHandler.\n//\n// Each message logged via returned logger contains request-specific information\n// such as request id, request duration, local address, remote address,\n// request method and request url.\n//\n// It is safe re-using returned logger for logging multiple messages\n// for the current request.\n//\n// The returned logger is valid until returning from RequestHandler.", "docstring_tokens": ["Logger", "returns", "logger", "which", "may", "be", "used", "for", "logging", "arbitrary", "request", "-", "specific", "messages", "inside", "RequestHandler", ".", "Each", "message", "logged", "via", "returned", "logger", "contains", "request", "-", "specific", "information", "such", "as", "request", "id", "request", "duration", "local", "address", "remote", "address", "request", "method", "and", "request", "url", ".", "It", "is", "safe", "re", "-", "using", "returned", "logger", "for", "logging", "multiple", "messages", "for", "the", "current", "request", ".", "The", "returned", "logger", "is", "valid", "until", "returning", "from", "RequestHandler", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/server.go#L1233-L1241", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "server.go", "func_name": "NextProto", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NextProto adds nph to be processed when key is negotiated when TLS\n// connection is established.\n//\n// This function can only be called before the server is started.", "docstring_tokens": ["NextProto", "adds", "nph", "to", "be", "processed", "when", "key", "is", "negotiated", "when", "TLS", "connection", "is", "established", ".", "This", "function", "can", "only", "be", "called", "before", "the", "server", "is", "started", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/server.go#L1294-L1301", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "server.go", "func_name": "ListenAndServe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListenAndServe serves HTTP requests from the given TCP4 addr.\n//\n// Pass custom listener to Serve if you need listening on non-TCP4 media\n// such as IPv6.\n//\n// Accepted connections are configured to enable TCP keep-alives.", "docstring_tokens": ["ListenAndServe", "serves", "HTTP", "requests", "from", "the", "given", "TCP4", "addr", ".", "Pass", "custom", "listener", "to", "Serve", "if", "you", "need", "listening", "on", "non", "-", "TCP4", "media", "such", "as", "IPv6", ".", "Accepted", "connections", "are", "configured", "to", "enable", "TCP", "keep", "-", "alives", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/server.go#L1340-L1354", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "server.go", "func_name": "ListenAndServeUNIX", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListenAndServeUNIX serves HTTP requests from the given UNIX addr.\n//\n// The function deletes existing file at addr before starting serving.\n//\n// The server sets the given file mode for the UNIX addr.", "docstring_tokens": ["ListenAndServeUNIX", "serves", "HTTP", "requests", "from", "the", "given", "UNIX", "addr", ".", "The", "function", "deletes", "existing", "file", "at", "addr", "before", "starting", "serving", ".", "The", "server", "sets", "the", "given", "file", "mode", "for", "the", "UNIX", "addr", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/server.go#L1361-L1373", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "server.go", "func_name": "ListenAndServeTLS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListenAndServeTLS serves HTTPS requests from the given TCP4 addr.\n//\n// certFile and keyFile are paths to TLS certificate and key files.\n//\n// Pass custom listener to Serve if you need listening on non-TCP4 media\n// such as IPv6.\n//\n// If the certFile or keyFile has not been provided to the server structure,\n// the function will use the previously added TLS configuration.\n//\n// Accepted connections are configured to enable TCP keep-alives.", "docstring_tokens": ["ListenAndServeTLS", "serves", "HTTPS", "requests", "from", "the", "given", "TCP4", "addr", ".", "certFile", "and", "keyFile", "are", "paths", "to", "TLS", "certificate", "and", "key", "files", ".", "Pass", "custom", "listener", "to", "Serve", "if", "you", "need", "listening", "on", "non", "-", "TCP4", "media", "such", "as", "IPv6", ".", "If", "the", "certFile", "or", "keyFile", "has", "not", "been", "provided", "to", "the", "server", "structure", "the", "function", "will", "use", "the", "previously", "added", "TLS", "configuration", ".", "Accepted", "connections", "are", "configured", "to", "enable", "TCP", "keep", "-", "alives", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/server.go#L1386-L1400", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "server.go", "func_name": "ListenAndServeTLSEmbed", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListenAndServeTLSEmbed serves HTTPS requests from the given TCP4 addr.\n//\n// certData and keyData must contain valid TLS certificate and key data.\n//\n// Pass custom listener to Serve if you need listening on arbitrary media\n// such as IPv6.\n//\n// If the certFile or keyFile has not been provided the server structure,\n// the function will use previously added TLS configuration.\n//\n// Accepted connections are configured to enable TCP keep-alives.", "docstring_tokens": ["ListenAndServeTLSEmbed", "serves", "HTTPS", "requests", "from", "the", "given", "TCP4", "addr", ".", "certData", "and", "keyData", "must", "contain", "valid", "TLS", "certificate", "and", "key", "data", ".", "Pass", "custom", "listener", "to", "Serve", "if", "you", "need", "listening", "on", "arbitrary", "media", "such", "as", "IPv6", ".", "If", "the", "certFile", "or", "keyFile", "has", "not", "been", "provided", "the", "server", "structure", "the", "function", "will", "use", "previously", "added", "TLS", "configuration", ".", "Accepted", "connections", "are", "configured", "to", "enable", "TCP", "keep", "-", "alives", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/server.go#L1413-L1427", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "server.go", "func_name": "ServeTLS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServeTLS serves HTTPS requests from the given listener.\n//\n// certFile and keyFile are paths to TLS certificate and key files.\n//\n// If the certFile or keyFile has not been provided the server structure,\n// the function will use previously added TLS configuration.", "docstring_tokens": ["ServeTLS", "serves", "HTTPS", "requests", "from", "the", "given", "listener", ".", "certFile", "and", "keyFile", "are", "paths", "to", "TLS", "certificate", "and", "key", "files", ".", "If", "the", "certFile", "or", "keyFile", "has", "not", "been", "provided", "the", "server", "structure", "the", "function", "will", "use", "previously", "added", "TLS", "configuration", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/server.go#L1435-L1448", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "server.go", "func_name": "ServeTLSEmbed", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServeTLSEmbed serves HTTPS requests from the given listener.\n//\n// certData and keyData must contain valid TLS certificate and key data.\n//\n// If the certFile or keyFile has not been provided the server structure,\n// the function will use previously added TLS configuration.", "docstring_tokens": ["ServeTLSEmbed", "serves", "HTTPS", "requests", "from", "the", "given", "listener", ".", "certData", "and", "keyData", "must", "contain", "valid", "TLS", "certificate", "and", "key", "data", ".", "If", "the", "certFile", "or", "keyFile", "has", "not", "been", "provided", "the", "server", "structure", "the", "function", "will", "use", "previously", "added", "TLS", "configuration", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/server.go#L1456-L1469", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "server.go", "func_name": "AppendCertEmbed", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AppendCertEmbed does the same as AppendCert but using in-memory data.", "docstring_tokens": ["AppendCertEmbed", "does", "the", "same", "as", "AppendCert", "but", "using", "in", "-", "memory", "data", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/server.go#L1492-L1507", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "server.go", "func_name": "Serve", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Serve serves incoming connections from the given listener.\n//\n// Serve blocks until the given listener returns permanent error.", "docstring_tokens": ["Serve", "serves", "incoming", "connections", "from", "the", "given", "listener", ".", "Serve", "blocks", "until", "the", "given", "listener", "returns", "permanent", "error", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/server.go#L1524-L1596", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "server.go", "func_name": "Shutdown", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Shutdown gracefully shuts down the server without interrupting any active connections.\n// Shutdown works by first closing all open listeners and then waiting indefinitely for all connections to return to idle and then shut down.\n//\n// When Shutdown is called, Serve, ListenAndServe, and ListenAndServeTLS immediately return nil.\n// Make sure the program doesn't exit and waits instead for Shutdown to return.\n//\n// Shutdown does not close keepalive connections so its recommended to set ReadTimeout to something else than 0.", "docstring_tokens": ["Shutdown", "gracefully", "shuts", "down", "the", "server", "without", "interrupting", "any", "active", "connections", ".", "Shutdown", "works", "by", "first", "closing", "all", "open", "listeners", "and", "then", "waiting", "indefinitely", "for", "all", "connections", "to", "return", "to", "idle", "and", "then", "shut", "down", ".", "When", "Shutdown", "is", "called", "Serve", "ListenAndServe", "and", "ListenAndServeTLS", "immediately", "return", "nil", ".", "Make", "sure", "the", "program", "doesn", "t", "exit", "and", "waits", "instead", "for", "Shutdown", "to", "return", ".", "Shutdown", "does", "not", "close", "keepalive", "connections", "so", "its", "recommended", "to", "set", "ReadTimeout", "to", "something", "else", "than", "0", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/server.go#L1605-L1639", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "compress.go", "func_name": "WriteGzip", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteGzip writes gzipped p to w and returns the number of compressed\n// bytes written to w.", "docstring_tokens": ["WriteGzip", "writes", "gzipped", "p", "to", "w", "and", "returns", "the", "number", "of", "compressed", "bytes", "written", "to", "w", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/compress.go#L188-L190", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "compress.go", "func_name": "WriteGunzip", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteGunzip writes ungzipped p to w and returns the number of uncompressed\n// bytes written to w.", "docstring_tokens": ["WriteGunzip", "writes", "ungzipped", "p", "to", "w", "and", "returns", "the", "number", "of", "uncompressed", "bytes", "written", "to", "w", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/compress.go#L199-L212", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "compress.go", "func_name": "AppendGunzipBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AppendGunzipBytes appends gunzipped src to dst and returns the resulting dst.", "docstring_tokens": ["AppendGunzipBytes", "appends", "gunzipped", "src", "to", "dst", "and", "returns", "the", "resulting", "dst", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/compress.go#L215-L219", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "compress.go", "func_name": "WriteDeflate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteDeflate writes deflated p to w and returns the number of compressed\n// bytes written to w.", "docstring_tokens": ["WriteDeflate", "writes", "deflated", "p", "to", "w", "and", "returns", "the", "number", "of", "compressed", "bytes", "written", "to", "w", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/compress.go#L290-L292", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "compress.go", "func_name": "WriteInflate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteInflate writes inflated p to w and returns the number of uncompressed\n// bytes written to w.", "docstring_tokens": ["WriteInflate", "writes", "inflated", "p", "to", "w", "and", "returns", "the", "number", "of", "uncompressed", "bytes", "written", "to", "w", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/compress.go#L301-L314", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "compress.go", "func_name": "AppendInflateBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AppendInflateBytes appends inflated src to dst and returns the resulting dst.", "docstring_tokens": ["AppendInflateBytes", "appends", "inflated", "src", "to", "dst", "and", "returns", "the", "resulting", "dst", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/compress.go#L317-L321", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "http.go", "func_name": "SetRequestURI", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetRequestURI sets RequestURI.", "docstring_tokens": ["SetRequestURI", "sets", "RequestURI", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/http.go#L103-L106", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "http.go", "func_name": "SetRequestURIBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetRequestURIBytes sets RequestURI.", "docstring_tokens": ["SetRequestURIBytes", "sets", "RequestURI", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/http.go#L109-L112", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "http.go", "func_name": "RequestURI", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RequestURI returns request's URI.", "docstring_tokens": ["RequestURI", "returns", "request", "s", "URI", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/http.go#L115-L121", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "http.go", "func_name": "SendFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SendFile registers file on the given path to be used as response body\n// when Write is called.\n//\n// Note that SendFile doesn't set Content-Type, so set it yourself\n// with Header.SetContentType.", "docstring_tokens": ["SendFile", "registers", "file", "on", "the", "given", "path", "to", "be", "used", "as", "response", "body", "when", "Write", "is", "called", ".", "Note", "that", "SendFile", "doesn", "t", "set", "Content", "-", "Type", "so", "set", "it", "yourself", "with", "Header", ".", "SetContentType", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/http.go#L158-L177", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "http.go", "func_name": "BodyWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BodyWriter returns writer for populating response body.\n//\n// If used inside RequestHandler, the returned writer must not be used\n// after returning from RequestHandler. Use RequestCtx.Write\n// or SetBodyStreamWriter in this case.", "docstring_tokens": ["BodyWriter", "returns", "writer", "for", "populating", "response", "body", ".", "If", "used", "inside", "RequestHandler", "the", "returned", "writer", "must", "not", "be", "used", "after", "returning", "from", "RequestHandler", ".", "Use", "RequestCtx", ".", "Write", "or", "SetBodyStreamWriter", "in", "this", "case", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/http.go#L262-L265", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "http.go", "func_name": "BodyWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BodyWriter returns writer for populating request body.", "docstring_tokens": ["BodyWriter", "returns", "writer", "for", "populating", "request", "body", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/http.go#L268-L271", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "http.go", "func_name": "Body", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Body returns response body.\n//\n// The returned body is valid until the response modification.", "docstring_tokens": ["Body", "returns", "response", "body", ".", "The", "returned", "body", "is", "valid", "until", "the", "response", "modification", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/http.go#L311-L322", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "http.go", "func_name": "BodyWriteTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BodyWriteTo writes request body to w.", "docstring_tokens": ["BodyWriteTo", "writes", "request", "body", "to", "w", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/http.go#L416-L427", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "http.go", "func_name": "BodyWriteTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BodyWriteTo writes response body to w.", "docstring_tokens": ["BodyWriteTo", "writes", "response", "body", "to", "w", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/http.go#L430-L438", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "http.go", "func_name": "AppendBodyString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AppendBodyString appends s to response body.", "docstring_tokens": ["AppendBodyString", "appends", "s", "to", "response", "body", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/http.go#L448-L451", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "http.go", "func_name": "SetBodyString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetBodyString sets response body.", "docstring_tokens": ["SetBodyString", "sets", "response", "body", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/http.go#L461-L466", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "http.go", "func_name": "ResetBody", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ResetBody resets response body.", "docstring_tokens": ["ResetBody", "resets", "response", "body", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/http.go#L469-L480", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "http.go", "func_name": "SetBodyRaw", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetBodyRaw sets response body, but without copying it.\n//\n// From this point onward the body argument must not be changed.", "docstring_tokens": ["SetBodyRaw", "sets", "response", "body", "but", "without", "copying", "it", ".", "From", "this", "point", "onward", "the", "body", "argument", "must", "not", "be", "changed", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/http.go#L485-L488", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "http.go", "func_name": "ReleaseBody", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReleaseBody retires the response body if it is greater than \"size\" bytes.\n//\n// This permits GC to reclaim the large buffer. If used, must be before\n// ReleaseResponse.\n//\n// Use this method only if you really understand how it works.\n// The majority of workloads don't need this method.", "docstring_tokens": ["ReleaseBody", "retires", "the", "response", "body", "if", "it", "is", "greater", "than", "size", "bytes", ".", "This", "permits", "GC", "to", "reclaim", "the", "large", "buffer", ".", "If", "used", "must", "be", "before", "ReleaseResponse", ".", "Use", "this", "method", "only", "if", "you", "really", "understand", "how", "it", "works", ".", "The", "majority", "of", "workloads", "don", "t", "need", "this", "method", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/http.go#L497-L503", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "http.go", "func_name": "ReleaseBody", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReleaseBody retires the request body if it is greater than \"size\" bytes.\n//\n// This permits GC to reclaim the large buffer. If used, must be before\n// ReleaseRequest.\n//\n// Use this method only if you really understand how it works.\n// The majority of workloads don't need this method.", "docstring_tokens": ["ReleaseBody", "retires", "the", "request", "body", "if", "it", "is", "greater", "than", "size", "bytes", ".", "This", "permits", "GC", "to", "reclaim", "the", "large", "buffer", ".", "If", "used", "must", "be", "before", "ReleaseRequest", ".", "Use", "this", "method", "only", "if", "you", "really", "understand", "how", "it", "works", ".", "The", "majority", "of", "workloads", "don", "t", "need", "this", "method", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/http.go#L512-L517", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "http.go", "func_name": "SwapBody", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SwapBody swaps response body with the given body and returns\n// the previous response body.\n//\n// It is forbidden to use the body passed to SwapBody after\n// the function returns.", "docstring_tokens": ["SwapBody", "swaps", "response", "body", "with", "the", "given", "body", "and", "returns", "the", "previous", "response", "body", ".", "It", "is", "forbidden", "to", "use", "the", "body", "passed", "to", "SwapBody", "after", "the", "function", "returns", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/http.go#L524-L542", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "http.go", "func_name": "SwapBody", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SwapBody swaps request body with the given body and returns\n// the previous request body.\n//\n// It is forbidden to use the body passed to SwapBody after\n// the function returns.", "docstring_tokens": ["SwapBody", "swaps", "request", "body", "with", "the", "given", "body", "and", "returns", "the", "previous", "request", "body", ".", "It", "is", "forbidden", "to", "use", "the", "body", "passed", "to", "SwapBody", "after", "the", "function", "returns", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/http.go#L549-L565", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "http.go", "func_name": "Body", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Body returns request body.\n//\n// The returned body is valid until the request modification.", "docstring_tokens": ["Body", "returns", "request", "body", ".", "The", "returned", "body", "is", "valid", "until", "the", "request", "modification", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/http.go#L570-L587", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "http.go", "func_name": "AppendBodyString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AppendBodyString appends s to request body.", "docstring_tokens": ["AppendBodyString", "appends", "s", "to", "request", "body", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/http.go#L597-L601", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "http.go", "func_name": "SetBodyString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetBodyString sets request body.", "docstring_tokens": ["SetBodyString", "sets", "request", "body", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/http.go#L611-L615", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "http.go", "func_name": "ResetBody", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ResetBody resets request body.", "docstring_tokens": ["ResetBody", "resets", "request", "body", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/http.go#L618-L629", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "http.go", "func_name": "CopyTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CopyTo copies req contents to dst except of body stream.", "docstring_tokens": ["CopyTo", "copies", "req", "contents", "to", "dst", "except", "of", "body", "stream", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/http.go#L632-L639", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "http.go", "func_name": "CopyTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CopyTo copies resp contents to dst except of body stream.", "docstring_tokens": ["CopyTo", "copies", "resp", "contents", "to", "dst", "except", "of", "body", "stream", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/http.go#L657-L669", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "http.go", "func_name": "WriteMultipartForm", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteMultipartForm writes the given multipart form f with the given\n// boundary to w.", "docstring_tokens": ["WriteMultipartForm", "writes", "the", "given", "multipart", "form", "f", "with", "the", "given", "boundary", "to", "w", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/http.go#L774-L820", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "http.go", "func_name": "Reset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reset clears response contents.", "docstring_tokens": ["Reset", "clears", "response", "contents", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/http.go#L867-L873", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "http.go", "func_name": "ReadLimitBody", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadLimitBody reads response from the given r, limiting the body size.\n//\n// If maxBodySize > 0 and the body size exceeds maxBodySize,\n// then ErrBodyTooLarge is returned.\n//\n// io.EOF is returned if r is closed before reading the first header byte.", "docstring_tokens": ["ReadLimitBody", "reads", "response", "from", "the", "given", "r", "limiting", "the", "body", "size", ".", "If", "maxBodySize", ">", "0", "and", "the", "body", "size", "exceeds", "maxBodySize", "then", "ErrBodyTooLarge", "is", "returned", ".", "io", ".", "EOF", "is", "returned", "if", "r", "is", "closed", "before", "reading", "the", "first", "header", "byte", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/http.go#L1024-L1047", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "http.go", "func_name": "WriteTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteTo writes request to w. It implements io.WriterTo.", "docstring_tokens": ["WriteTo", "writes", "request", "to", "w", ".", "It", "implements", "io", ".", "WriterTo", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/http.go#L1056-L1058", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "http.go", "func_name": "WriteTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteTo writes response to w. It implements io.WriterTo.", "docstring_tokens": ["WriteTo", "writes", "response", "to", "w", ".", "It", "implements", "io", ".", "WriterTo", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/http.go#L1061-L1063", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "http.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write writes request to w.\n//\n// Write doesn't flush request to w for performance reasons.\n//\n// See also WriteTo.", "docstring_tokens": ["Write", "writes", "request", "to", "w", ".", "Write", "doesn", "t", "flush", "request", "to", "w", "for", "performance", "reasons", ".", "See", "also", "WriteTo", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/http.go#L1137-L1178", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "http.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write writes response to w.\n//\n// Write doesn't flush response to w for performance reasons.\n//\n// See also WriteTo.", "docstring_tokens": ["Write", "writes", "response", "to", "w", ".", "Write", "doesn", "t", "flush", "response", "to", "w", "for", "performance", "reasons", ".", "See", "also", "WriteTo", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/http.go#L1384-L1405", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "header.go", "func_name": "SetLastModified", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetLastModified sets 'Last-Modified' header to the given value.", "docstring_tokens": ["SetLastModified", "sets", "Last", "-", "Modified", "header", "to", "the", "given", "value", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/header.go#L135-L138", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "header.go", "func_name": "PeekCookie", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PeekCookie is able to returns cookie by a given key from response.", "docstring_tokens": ["PeekCookie", "is", "able", "to", "returns", "cookie", "by", "a", "given", "key", "from", "response", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/header.go#L191-L193", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "header.go", "func_name": "ContentType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContentType returns Content-Type header value.", "docstring_tokens": ["ContentType", "returns", "Content", "-", "Type", "header", "value", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/header.go#L282-L288", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "header.go", "func_name": "SetServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetServer sets Server header value.", "docstring_tokens": ["SetServer", "sets", "Server", "header", "value", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/header.go#L306-L308", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "header.go", "func_name": "SetServerBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetServerBytes sets Server header value.", "docstring_tokens": ["SetServerBytes", "sets", "Server", "header", "value", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/header.go#L311-L313", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "header.go", "func_name": "Host", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Host returns Host header value.", "docstring_tokens": ["Host", "returns", "Host", "header", "value", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/header.go#L410-L426", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "header.go", "func_name": "SetHost", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetHost sets Host header value.", "docstring_tokens": ["SetHost", "sets", "Host", "header", "value", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/header.go#L429-L432", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "header.go", "func_name": "SetHostBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetHostBytes sets Host header value.", "docstring_tokens": ["SetHostBytes", "sets", "Host", "header", "value", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/header.go#L435-L438", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "header.go", "func_name": "SetUserAgent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetUserAgent sets User-Agent header value.", "docstring_tokens": ["SetUserAgent", "sets", "User", "-", "Agent", "header", "value", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/header.go#L447-L450", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "header.go", "func_name": "SetUserAgentBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetUserAgentBytes sets User-Agent header value.", "docstring_tokens": ["SetUserAgentBytes", "sets", "User", "-", "Agent", "header", "value", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/header.go#L453-L456", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "header.go", "func_name": "Method", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Method returns HTTP request method.", "docstring_tokens": ["Method", "returns", "HTTP", "request", "method", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/header.go#L474-L479", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "header.go", "func_name": "SetMethod", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetMethod sets HTTP request method.", "docstring_tokens": ["SetMethod", "sets", "HTTP", "request", "method", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/header.go#L482-L484", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "header.go", "func_name": "SetMethodBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetMethodBytes sets HTTP request method.", "docstring_tokens": ["SetMethodBytes", "sets", "HTTP", "request", "method", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/header.go#L487-L489", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "header.go", "func_name": "RequestURI", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RequestURI returns RequestURI from the first HTTP request line.", "docstring_tokens": ["RequestURI", "returns", "RequestURI", "from", "the", "first", "HTTP", "request", "line", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/header.go#L492-L498", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "header.go", "func_name": "SetRequestURI", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetRequestURI sets RequestURI for the first HTTP request line.\n// RequestURI must be properly encoded.\n// Use URI.RequestURI for constructing proper RequestURI if unsure.", "docstring_tokens": ["SetRequestURI", "sets", "RequestURI", "for", "the", "first", "HTTP", "request", "line", ".", "RequestURI", "must", "be", "properly", "encoded", ".", "Use", "URI", ".", "RequestURI", "for", "constructing", "proper", "RequestURI", "if", "unsure", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/header.go#L503-L505", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "header.go", "func_name": "SetRequestURIBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetRequestURIBytes sets RequestURI for the first HTTP request line.\n// RequestURI must be properly encoded.\n// Use URI.RequestURI for constructing proper RequestURI if unsure.", "docstring_tokens": ["SetRequestURIBytes", "sets", "RequestURI", "for", "the", "first", "HTTP", "request", "line", ".", "RequestURI", "must", "be", "properly", "encoded", ".", "Use", "URI", ".", "RequestURI", "for", "constructing", "proper", "RequestURI", "if", "unsure", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/header.go#L510-L512", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "header.go", "func_name": "HasAcceptEncoding", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasAcceptEncoding returns true if the header contains\n// the given Accept-Encoding value.", "docstring_tokens": ["HasAcceptEncoding", "returns", "true", "if", "the", "header", "contains", "the", "given", "Accept", "-", "Encoding", "value", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/header.go#L571-L574", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "header.go", "func_name": "HasAcceptEncodingBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasAcceptEncodingBytes returns true if the header contains\n// the given Accept-Encoding value.", "docstring_tokens": ["HasAcceptEncodingBytes", "returns", "true", "if", "the", "header", "contains", "the", "given", "Accept", "-", "Encoding", "value", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/header.go#L578-L592", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "header.go", "func_name": "Len", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Len returns the number of headers set,\n// i.e. the number of times f is called in VisitAll.", "docstring_tokens": ["Len", "returns", "the", "number", "of", "headers", "set", "i", ".", "e", ".", "the", "number", "of", "times", "f", "is", "called", "in", "VisitAll", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/header.go#L596-L600", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "header.go", "func_name": "Reset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reset clears response header.", "docstring_tokens": ["Reset", "clears", "response", "header", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/header.go#L643-L647", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "header.go", "func_name": "SetCookie", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetCookie sets the given response cookie.\n//\n// It is save re-using the cookie after the function returns.", "docstring_tokens": ["SetCookie", "sets", "the", "given", "response", "cookie", ".", "It", "is", "save", "re", "-", "using", "the", "cookie", "after", "the", "function", "returns", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/header.go#L1000-L1002", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "header.go", "func_name": "DelClientCookie", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DelClientCookie instructs the client to remove the given cookie.\n//\n// Use DelCookie if you want just removing the cookie from response header.", "docstring_tokens": ["DelClientCookie", "instructs", "the", "client", "to", "remove", "the", "given", "cookie", ".", "Use", "DelCookie", "if", "you", "want", "just", "removing", "the", "cookie", "from", "response", "header", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/header.go#L1024-L1032", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "header.go", "func_name": "DelCookie", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DelCookie removes cookie under the given key from response header.\n//\n// Note that DelCookie doesn't remove the cookie from the client.\n// Use DelClientCookie instead.", "docstring_tokens": ["DelCookie", "removes", "cookie", "under", "the", "given", "key", "from", "response", "header", ".", "Note", "that", "DelCookie", "doesn", "t", "remove", "the", "cookie", "from", "the", "client", ".", "Use", "DelClientCookie", "instead", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/header.go#L1045-L1047", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "header.go", "func_name": "DelCookie", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DelCookie removes cookie under the given key.", "docstring_tokens": ["DelCookie", "removes", "cookie", "under", "the", "given", "key", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/header.go#L1058-L1062", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "header.go", "func_name": "DelAllCookies", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DelAllCookies removes all the cookies from request headers.", "docstring_tokens": ["DelAllCookies", "removes", "all", "the", "cookies", "from", "request", "headers", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/header.go#L1075-L1079", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "header.go", "func_name": "Peek", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Peek returns header value for the given key.\n//\n// Returned value is valid until the next call to ResponseHeader.\n// Do not store references to returned value. Make copies instead.", "docstring_tokens": ["Peek", "returns", "header", "value", "for", "the", "given", "key", ".", "Returned", "value", "is", "valid", "until", "the", "next", "call", "to", "ResponseHeader", ".", "Do", "not", "store", "references", "to", "returned", "value", ".", "Make", "copies", "instead", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/header.go#L1184-L1187", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "header.go", "func_name": "PeekBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PeekBytes returns header value for the given key.\n//\n// Returned value is valid until the next call to ResponseHeader.\n// Do not store references to returned value. Make copies instead.", "docstring_tokens": ["PeekBytes", "returns", "header", "value", "for", "the", "given", "key", ".", "Returned", "value", "is", "valid", "until", "the", "next", "call", "to", "ResponseHeader", ".", "Do", "not", "store", "references", "to", "returned", "value", ".", "Make", "copies", "instead", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/header.go#L1193-L1197", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "header.go", "func_name": "Cookie", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Cookie returns cookie for the given key.", "docstring_tokens": ["Cookie", "returns", "cookie", "for", "the", "given", "key", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/header.go#L1266-L1270", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "header.go", "func_name": "CookieBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CookieBytes returns cookie for the given key.", "docstring_tokens": ["CookieBytes", "returns", "cookie", "for", "the", "given", "key", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/header.go#L1273-L1277", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "header.go", "func_name": "Cookie", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Cookie fills cookie for the given cookie.Key.\n//\n// Returns false if cookie with the given cookie.Key is missing.", "docstring_tokens": ["Cookie", "fills", "cookie", "for", "the", "given", "cookie", ".", "Key", ".", "Returns", "false", "if", "cookie", "with", "the", "given", "cookie", ".", "Key", "is", "missing", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/header.go#L1282-L1289", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "header.go", "func_name": "Read", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read reads request header from r.\n//\n// io.EOF is returned if r is closed before reading the first header byte.", "docstring_tokens": ["Read", "reads", "request", "header", "from", "r", ".", "io", ".", "EOF", "is", "returned", "if", "r", "is", "closed", "before", "reading", "the", "first", "header", "byte", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/header.go#L1365-L1378", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "header.go", "func_name": "Header", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Header returns response header representation.\n//\n// The returned value is valid until the next call to ResponseHeader methods.", "docstring_tokens": ["Header", "returns", "response", "header", "representation", ".", "The", "returned", "value", "is", "valid", "until", "the", "next", "call", "to", "ResponseHeader", "methods", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/header.go#L1473-L1476", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "header.go", "func_name": "AppendBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AppendBytes appends response header representation to dst and returns\n// the extended dst.", "docstring_tokens": ["AppendBytes", "appends", "response", "header", "representation", "to", "dst", "and", "returns", "the", "extended", "dst", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/header.go#L1485-L1529", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "header.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write writes request header to w.", "docstring_tokens": ["Write", "writes", "request", "header", "to", "w", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/header.go#L1532-L1535", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "header.go", "func_name": "WriteTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteTo writes request header to w.\n//\n// WriteTo implements io.WriterTo interface.", "docstring_tokens": ["WriteTo", "writes", "request", "header", "to", "w", ".", "WriteTo", "implements", "io", ".", "WriterTo", "interface", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/header.go#L1540-L1543", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "header.go", "func_name": "Header", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Header returns request header representation.\n//\n// The returned representation is valid until the next call to RequestHeader methods.", "docstring_tokens": ["Header", "returns", "request", "header", "representation", ".", "The", "returned", "representation", "is", "valid", "until", "the", "next", "call", "to", "RequestHeader", "methods", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/header.go#L1548-L1551", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "header.go", "func_name": "AppendBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AppendBytes appends request header representation to dst and returns\n// the extended dst.", "docstring_tokens": ["AppendBytes", "appends", "request", "header", "representation", "to", "dst", "and", "returns", "the", "extended", "dst", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/header.go#L1574-L1631", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "fs.go", "func_name": "ServeFileUncompressed", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServeFileUncompressed returns HTTP response containing file contents\n// from the given path.\n//\n// Directory contents is returned if path points to directory.\n//\n// ServeFile may be used for saving network traffic when serving files\n// with good compression ratio.\n//\n// See also RequestCtx.SendFile.", "docstring_tokens": ["ServeFileUncompressed", "returns", "HTTP", "response", "containing", "file", "contents", "from", "the", "given", "path", ".", "Directory", "contents", "is", "returned", "if", "path", "points", "to", "directory", ".", "ServeFile", "may", "be", "used", "for", "saving", "network", "traffic", "when", "serving", "files", "with", "good", "compression", "ratio", ".", "See", "also", "RequestCtx", ".", "SendFile", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/fs.go#L45-L48", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "fs.go", "func_name": "NewRequestHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRequestHandler returns new request handler with the given FS settings.\n//\n// The returned handler caches requested file handles\n// for FS.CacheDuration.\n// Make sure your program has enough 'max open files' limit aka\n// 'ulimit -n' if FS.Root folder contains many files.\n//\n// Do not create multiple request handlers from a single FS instance -\n// just reuse a single request handler.", "docstring_tokens": ["NewRequestHandler", "returns", "new", "request", "handler", "with", "the", "given", "FS", "settings", ".", "The", "returned", "handler", "caches", "requested", "file", "handles", "for", "FS", ".", "CacheDuration", ".", "Make", "sure", "your", "program", "has", "enough", "max", "open", "files", "limit", "aka", "ulimit", "-", "n", "if", "FS", ".", "Root", "folder", "contains", "many", "files", ".", "Do", "not", "create", "multiple", "request", "handlers", "from", "a", "single", "FS", "instance", "-", "just", "reuse", "a", "single", "request", "handler", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/fs.go#L322-L325", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "fs.go", "func_name": "FileLastModified", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FileLastModified returns last modified time for the file.", "docstring_tokens": ["FileLastModified", "returns", "last", "modified", "time", "for", "the", "file", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/fs.go#L1240-L1251", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "cookie.go", "func_name": "CopyTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CopyTo copies src cookie to c.", "docstring_tokens": ["CopyTo", "copies", "src", "cookie", "to", "c", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/cookie.go#L83-L94", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "cookie.go", "func_name": "SetPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetPath sets cookie path.", "docstring_tokens": ["SetPath", "sets", "cookie", "path", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/cookie.go#L132-L135", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "cookie.go", "func_name": "SetPathBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetPathBytes sets cookie path.", "docstring_tokens": ["SetPathBytes", "sets", "cookie", "path", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/cookie.go#L138-L141", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "cookie.go", "func_name": "SetDomain", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetDomain sets cookie domain.", "docstring_tokens": ["SetDomain", "sets", "cookie", "domain", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/cookie.go#L151-L153", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "cookie.go", "func_name": "SetDomainBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetDomainBytes sets cookie domain.", "docstring_tokens": ["SetDomainBytes", "sets", "cookie", "domain", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/cookie.go#L156-L158", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "cookie.go", "func_name": "Expire", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Expire returns cookie expiration time.\n//\n// CookieExpireUnlimited is returned if cookie doesn't expire", "docstring_tokens": ["Expire", "returns", "cookie", "expiration", "time", ".", "CookieExpireUnlimited", "is", "returned", "if", "cookie", "doesn", "t", "expire"], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/cookie.go#L177-L183", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "cookie.go", "func_name": "SetValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetValue sets cookie value.", "docstring_tokens": ["SetValue", "sets", "cookie", "value", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/cookie.go#L203-L205", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "cookie.go", "func_name": "SetValueBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetValueBytes sets cookie value.", "docstring_tokens": ["SetValueBytes", "sets", "cookie", "value", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/cookie.go#L208-L210", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "cookie.go", "func_name": "SetKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetKey sets cookie name.", "docstring_tokens": ["SetKey", "sets", "cookie", "name", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/cookie.go#L220-L222", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "cookie.go", "func_name": "SetKeyBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetKeyBytes sets cookie name.", "docstring_tokens": ["SetKeyBytes", "sets", "cookie", "name", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/cookie.go#L225-L227", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "cookie.go", "func_name": "Reset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reset clears the cookie.", "docstring_tokens": ["Reset", "clears", "the", "cookie", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/cookie.go#L230-L240", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "cookie.go", "func_name": "AppendBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AppendBytes appends cookie representation to dst and returns\n// the extended dst.", "docstring_tokens": ["AppendBytes", "appends", "cookie", "representation", "to", "dst", "and", "returns", "the", "extended", "dst", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/cookie.go#L244-L293", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "cookie.go", "func_name": "Cookie", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Cookie returns cookie representation.\n//\n// The returned value is valid until the next call to Cookie methods.", "docstring_tokens": ["Cookie", "returns", "cookie", "representation", ".", "The", "returned", "value", "is", "valid", "until", "the", "next", "call", "to", "Cookie", "methods", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/cookie.go#L298-L301", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "cookie.go", "func_name": "WriteTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteTo writes cookie representation to w.\n//\n// WriteTo implements io.WriterTo interface.", "docstring_tokens": ["WriteTo", "writes", "cookie", "representation", "to", "w", ".", "WriteTo", "implements", "io", ".", "WriterTo", "interface", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/cookie.go#L311-L314", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "cookie.go", "func_name": "Parse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Parse parses Set-Cookie header.", "docstring_tokens": ["Parse", "parses", "Set", "-", "Cookie", "header", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/cookie.go#L319-L322", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "cookie.go", "func_name": "ParseBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseBytes parses Set-Cookie header.", "docstring_tokens": ["ParseBytes", "parses", "Set", "-", "Cookie", "header", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/cookie.go#L325-L411", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "cookie.go", "func_name": "appendResponseCookieBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// For Response we can not use the above function as response cookies\n// already contain the key= in the value.", "docstring_tokens": ["For", "Response", "we", "can", "not", "use", "the", "above", "function", "as", "response", "cookies", "already", "contain", "the", "key", "=", "in", "the", "value", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/cookie.go#L445-L454", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "timer.go", "func_name": "AcquireTimer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AcquireTimer returns a time.Timer from the pool and updates it to\n// send the current time on its channel after at least timeout.\n//\n// The returned Timer may be returned to the pool with ReleaseTimer\n// when no longer needed. This allows reducing GC load.", "docstring_tokens": ["AcquireTimer", "returns", "a", "time", ".", "Timer", "from", "the", "pool", "and", "updates", "it", "to", "send", "the", "current", "time", "on", "its", "channel", "after", "at", "least", "timeout", ".", "The", "returned", "Timer", "may", "be", "returned", "to", "the", "pool", "with", "ReleaseTimer", "when", "no", "longer", "needed", ".", "This", "allows", "reducing", "GC", "load", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/timer.go#L34-L42", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "fasthttputil/inmemory_listener.go", "func_name": "Accept", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Accept implements net.Listener's Accept.\n//\n// It is safe calling Accept from concurrently running goroutines.\n//\n// Accept returns new connection per each Dial call.", "docstring_tokens": ["Accept", "implements", "net", ".", "Listener", "s", "Accept", ".", "It", "is", "safe", "calling", "Accept", "from", "concurrently", "running", "goroutines", ".", "Accept", "returns", "new", "connection", "per", "each", "Dial", "call", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/fasthttputil/inmemory_listener.go#L36-L43", "partition": "valid"} +{"repo": "valyala/fasthttp", "path": "fasthttputil/inmemory_listener.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close implements net.Listener's Close.", "docstring_tokens": ["Close", "implements", "net", ".", "Listener", "s", "Close", "."], "sha": "15dbe35bb591e48819071bec8a6d1779c8334cfe", "url": "https://github.com/valyala/fasthttp/blob/15dbe35bb591e48819071bec8a6d1779c8334cfe/fasthttputil/inmemory_listener.go#L46-L58", "partition": "valid"} +{"repo": "go-chi/chi", "path": "_examples/fileserver/main.go", "func_name": "FileServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FileServer conveniently sets up a http.FileServer handler to serve\n// static files from a http.FileSystem.", "docstring_tokens": ["FileServer", "conveniently", "sets", "up", "a", "http", ".", "FileServer", "handler", "to", "serve", "static", "files", "from", "a", "http", ".", "FileSystem", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/_examples/fileserver/main.go#L28-L44", "partition": "valid"} +{"repo": "go-chi/chi", "path": "context.go", "func_name": "Reset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reset a routing context to its initial state.", "docstring_tokens": ["Reset", "a", "routing", "context", "to", "its", "initial", "state", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/context.go#L55-L67", "partition": "valid"} +{"repo": "go-chi/chi", "path": "context.go", "func_name": "URLParam", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// URLParam returns the corresponding URL parameter value from the request\n// routing context.", "docstring_tokens": ["URLParam", "returns", "the", "corresponding", "URL", "parameter", "value", "from", "the", "request", "routing", "context", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/context.go#L71-L78", "partition": "valid"} +{"repo": "go-chi/chi", "path": "context.go", "func_name": "URLParam", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// URLParam returns the url parameter from a http.Request object.", "docstring_tokens": ["URLParam", "returns", "the", "url", "parameter", "from", "a", "http", ".", "Request", "object", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/context.go#L106-L111", "partition": "valid"} +{"repo": "go-chi/chi", "path": "context.go", "func_name": "URLParamFromCtx", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// URLParamFromCtx returns the url parameter from a http.Request Context.", "docstring_tokens": ["URLParamFromCtx", "returns", "the", "url", "parameter", "from", "a", "http", ".", "Request", "Context", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/context.go#L114-L119", "partition": "valid"} +{"repo": "go-chi/chi", "path": "context.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add will append a URL parameter to the end of the route param", "docstring_tokens": ["Add", "will", "append", "a", "URL", "parameter", "to", "the", "end", "of", "the", "route", "param"], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/context.go#L127-L130", "partition": "valid"} +{"repo": "go-chi/chi", "path": "context.go", "func_name": "ServerBaseContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServerBaseContext wraps an http.Handler to set the request context to the\n// `baseCtx`.", "docstring_tokens": ["ServerBaseContext", "wraps", "an", "http", ".", "Handler", "to", "set", "the", "request", "context", "to", "the", "baseCtx", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/context.go#L134-L150", "partition": "valid"} +{"repo": "go-chi/chi", "path": "middleware/get_head.go", "func_name": "GetHead", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetHead automatically route undefined HEAD requests to GET handlers.", "docstring_tokens": ["GetHead", "automatically", "route", "undefined", "HEAD", "requests", "to", "GET", "handlers", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/middleware/get_head.go#L10-L39", "partition": "valid"} +{"repo": "go-chi/chi", "path": "_examples/router-walk/main.go", "func_name": "Ping", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Ping returns pong", "docstring_tokens": ["Ping", "returns", "pong"], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/_examples/router-walk/main.go#L40-L42", "partition": "valid"} +{"repo": "go-chi/chi", "path": "middleware/strip.go", "func_name": "StripSlashes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StripSlashes is a middleware that will match request paths with a trailing\n// slash, strip it from the path and continue routing through the mux, if a route\n// matches, then it will serve the handler.", "docstring_tokens": ["StripSlashes", "is", "a", "middleware", "that", "will", "match", "request", "paths", "with", "a", "trailing", "slash", "strip", "it", "from", "the", "path", "and", "continue", "routing", "through", "the", "mux", "if", "a", "route", "matches", "then", "it", "will", "serve", "the", "handler", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/middleware/strip.go#L13-L28", "partition": "valid"} +{"repo": "go-chi/chi", "path": "middleware/content_type.go", "func_name": "AllowContentType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AllowContentType enforces a whitelist of request Content-Types otherwise responds\n// with a 415 Unsupported Media Type status.", "docstring_tokens": ["AllowContentType", "enforces", "a", "whitelist", "of", "request", "Content", "-", "Types", "otherwise", "responds", "with", "a", "415", "Unsupported", "Media", "Type", "status", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/middleware/content_type.go#L21-L51", "partition": "valid"} +{"repo": "go-chi/chi", "path": "middleware/request_id.go", "func_name": "GetReqID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetReqID returns a request ID from the given context if one is present.\n// Returns the empty string if a request ID cannot be found.", "docstring_tokens": ["GetReqID", "returns", "a", "request", "ID", "from", "the", "given", "context", "if", "one", "is", "present", ".", "Returns", "the", "empty", "string", "if", "a", "request", "ID", "cannot", "be", "found", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/middleware/request_id.go#L79-L87", "partition": "valid"} +{"repo": "go-chi/chi", "path": "chain.go", "func_name": "HandlerFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HandlerFunc builds and returns a http.Handler from the chain of middlewares,\n// with `h http.Handler` as the final handler.", "docstring_tokens": ["HandlerFunc", "builds", "and", "returns", "a", "http", ".", "Handler", "from", "the", "chain", "of", "middlewares", "with", "h", "http", ".", "Handler", "as", "the", "final", "handler", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/chain.go#L18-L20", "partition": "valid"} +{"repo": "go-chi/chi", "path": "chain.go", "func_name": "chain", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// chain builds a http.Handler composed of an inline middleware stack and endpoint\n// handler in the order they are passed.", "docstring_tokens": ["chain", "builds", "a", "http", ".", "Handler", "composed", "of", "an", "inline", "middleware", "stack", "and", "endpoint", "handler", "in", "the", "order", "they", "are", "passed", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/chain.go#L36-L49", "partition": "valid"} +{"repo": "go-chi/chi", "path": "mux.go", "func_name": "NewMux", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMux returns a newly initialized Mux object that implements the Router\n// interface.", "docstring_tokens": ["NewMux", "returns", "a", "newly", "initialized", "Mux", "object", "that", "implements", "the", "Router", "interface", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/mux.go#L49-L55", "partition": "valid"} +{"repo": "go-chi/chi", "path": "mux.go", "func_name": "ServeHTTP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServeHTTP is the single method of the http.Handler interface that makes\n// Mux interoperable with the standard library. It uses a sync.Pool to get and\n// reuse routing contexts for each request.", "docstring_tokens": ["ServeHTTP", "is", "the", "single", "method", "of", "the", "http", ".", "Handler", "interface", "that", "makes", "Mux", "interoperable", "with", "the", "standard", "library", ".", "It", "uses", "a", "sync", ".", "Pool", "to", "get", "and", "reuse", "routing", "contexts", "for", "each", "request", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/mux.go#L60-L84", "partition": "valid"} +{"repo": "go-chi/chi", "path": "mux.go", "func_name": "Use", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Use appends a middleware handler to the Mux middleware stack.\n//\n// The middleware stack for any Mux will execute before searching for a matching\n// route to a specific handler, which provides opportunity to respond early,\n// change the course of the request execution, or set request-scoped values for\n// the next http.Handler.", "docstring_tokens": ["Use", "appends", "a", "middleware", "handler", "to", "the", "Mux", "middleware", "stack", ".", "The", "middleware", "stack", "for", "any", "Mux", "will", "execute", "before", "searching", "for", "a", "matching", "route", "to", "a", "specific", "handler", "which", "provides", "opportunity", "to", "respond", "early", "change", "the", "course", "of", "the", "request", "execution", "or", "set", "request", "-", "scoped", "values", "for", "the", "next", "http", ".", "Handler", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/mux.go#L92-L97", "partition": "valid"} +{"repo": "go-chi/chi", "path": "mux.go", "func_name": "Handle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Handle adds the route `pattern` that matches any http method to\n// execute the `handler` http.Handler.", "docstring_tokens": ["Handle", "adds", "the", "route", "pattern", "that", "matches", "any", "http", "method", "to", "execute", "the", "handler", "http", ".", "Handler", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/mux.go#L101-L103", "partition": "valid"} +{"repo": "go-chi/chi", "path": "mux.go", "func_name": "HandleFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HandleFunc adds the route `pattern` that matches any http method to\n// execute the `handlerFn` http.HandlerFunc.", "docstring_tokens": ["HandleFunc", "adds", "the", "route", "pattern", "that", "matches", "any", "http", "method", "to", "execute", "the", "handlerFn", "http", ".", "HandlerFunc", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/mux.go#L107-L109", "partition": "valid"} +{"repo": "go-chi/chi", "path": "mux.go", "func_name": "Method", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Method adds the route `pattern` that matches `method` http method to\n// execute the `handler` http.Handler.", "docstring_tokens": ["Method", "adds", "the", "route", "pattern", "that", "matches", "method", "http", "method", "to", "execute", "the", "handler", "http", ".", "Handler", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/mux.go#L113-L119", "partition": "valid"} +{"repo": "go-chi/chi", "path": "mux.go", "func_name": "MethodFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MethodFunc adds the route `pattern` that matches `method` http method to\n// execute the `handlerFn` http.HandlerFunc.", "docstring_tokens": ["MethodFunc", "adds", "the", "route", "pattern", "that", "matches", "method", "http", "method", "to", "execute", "the", "handlerFn", "http", ".", "HandlerFunc", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/mux.go#L123-L125", "partition": "valid"} +{"repo": "go-chi/chi", "path": "mux.go", "func_name": "Connect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Connect adds the route `pattern` that matches a CONNECT http method to\n// execute the `handlerFn` http.HandlerFunc.", "docstring_tokens": ["Connect", "adds", "the", "route", "pattern", "that", "matches", "a", "CONNECT", "http", "method", "to", "execute", "the", "handlerFn", "http", ".", "HandlerFunc", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/mux.go#L129-L131", "partition": "valid"} +{"repo": "go-chi/chi", "path": "mux.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete adds the route `pattern` that matches a DELETE http method to\n// execute the `handlerFn` http.HandlerFunc.", "docstring_tokens": ["Delete", "adds", "the", "route", "pattern", "that", "matches", "a", "DELETE", "http", "method", "to", "execute", "the", "handlerFn", "http", ".", "HandlerFunc", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/mux.go#L135-L137", "partition": "valid"} +{"repo": "go-chi/chi", "path": "mux.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get adds the route `pattern` that matches a GET http method to\n// execute the `handlerFn` http.HandlerFunc.", "docstring_tokens": ["Get", "adds", "the", "route", "pattern", "that", "matches", "a", "GET", "http", "method", "to", "execute", "the", "handlerFn", "http", ".", "HandlerFunc", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/mux.go#L141-L143", "partition": "valid"} +{"repo": "go-chi/chi", "path": "mux.go", "func_name": "Head", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Head adds the route `pattern` that matches a HEAD http method to\n// execute the `handlerFn` http.HandlerFunc.", "docstring_tokens": ["Head", "adds", "the", "route", "pattern", "that", "matches", "a", "HEAD", "http", "method", "to", "execute", "the", "handlerFn", "http", ".", "HandlerFunc", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/mux.go#L147-L149", "partition": "valid"} +{"repo": "go-chi/chi", "path": "mux.go", "func_name": "Options", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Options adds the route `pattern` that matches a OPTIONS http method to\n// execute the `handlerFn` http.HandlerFunc.", "docstring_tokens": ["Options", "adds", "the", "route", "pattern", "that", "matches", "a", "OPTIONS", "http", "method", "to", "execute", "the", "handlerFn", "http", ".", "HandlerFunc", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/mux.go#L153-L155", "partition": "valid"} +{"repo": "go-chi/chi", "path": "mux.go", "func_name": "Patch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Patch adds the route `pattern` that matches a PATCH http method to\n// execute the `handlerFn` http.HandlerFunc.", "docstring_tokens": ["Patch", "adds", "the", "route", "pattern", "that", "matches", "a", "PATCH", "http", "method", "to", "execute", "the", "handlerFn", "http", ".", "HandlerFunc", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/mux.go#L159-L161", "partition": "valid"} +{"repo": "go-chi/chi", "path": "mux.go", "func_name": "Post", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Post adds the route `pattern` that matches a POST http method to\n// execute the `handlerFn` http.HandlerFunc.", "docstring_tokens": ["Post", "adds", "the", "route", "pattern", "that", "matches", "a", "POST", "http", "method", "to", "execute", "the", "handlerFn", "http", ".", "HandlerFunc", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/mux.go#L165-L167", "partition": "valid"} +{"repo": "go-chi/chi", "path": "mux.go", "func_name": "Put", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Put adds the route `pattern` that matches a PUT http method to\n// execute the `handlerFn` http.HandlerFunc.", "docstring_tokens": ["Put", "adds", "the", "route", "pattern", "that", "matches", "a", "PUT", "http", "method", "to", "execute", "the", "handlerFn", "http", ".", "HandlerFunc", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/mux.go#L171-L173", "partition": "valid"} +{"repo": "go-chi/chi", "path": "mux.go", "func_name": "Trace", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Trace adds the route `pattern` that matches a TRACE http method to\n// execute the `handlerFn` http.HandlerFunc.", "docstring_tokens": ["Trace", "adds", "the", "route", "pattern", "that", "matches", "a", "TRACE", "http", "method", "to", "execute", "the", "handlerFn", "http", ".", "HandlerFunc", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/mux.go#L177-L179", "partition": "valid"} +{"repo": "go-chi/chi", "path": "mux.go", "func_name": "NotFound", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NotFound sets a custom http.HandlerFunc for routing paths that could\n// not be found. The default 404 handler is `http.NotFound`.", "docstring_tokens": ["NotFound", "sets", "a", "custom", "http", ".", "HandlerFunc", "for", "routing", "paths", "that", "could", "not", "be", "found", ".", "The", "default", "404", "handler", "is", "http", ".", "NotFound", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/mux.go#L183-L199", "partition": "valid"} +{"repo": "go-chi/chi", "path": "mux.go", "func_name": "MethodNotAllowed", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MethodNotAllowed sets a custom http.HandlerFunc for routing paths where the\n// method is unresolved. The default handler returns a 405 with an empty body.", "docstring_tokens": ["MethodNotAllowed", "sets", "a", "custom", "http", ".", "HandlerFunc", "for", "routing", "paths", "where", "the", "method", "is", "unresolved", ".", "The", "default", "handler", "returns", "a", "405", "with", "an", "empty", "body", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/mux.go#L203-L219", "partition": "valid"} +{"repo": "go-chi/chi", "path": "mux.go", "func_name": "With", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// With adds inline middlewares for an endpoint handler.", "docstring_tokens": ["With", "adds", "inline", "middlewares", "for", "an", "endpoint", "handler", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/mux.go#L222-L240", "partition": "valid"} +{"repo": "go-chi/chi", "path": "mux.go", "func_name": "NotFoundHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NotFoundHandler returns the default Mux 404 responder whenever a route\n// cannot be found.", "docstring_tokens": ["NotFoundHandler", "returns", "the", "default", "Mux", "404", "responder", "whenever", "a", "route", "cannot", "be", "found", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/mux.go#L348-L353", "partition": "valid"} +{"repo": "go-chi/chi", "path": "mux.go", "func_name": "MethodNotAllowedHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MethodNotAllowedHandler returns the default Mux 405 responder whenever\n// a method cannot be resolved for a route.", "docstring_tokens": ["MethodNotAllowedHandler", "returns", "the", "default", "Mux", "405", "responder", "whenever", "a", "method", "cannot", "be", "resolved", "for", "a", "route", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/mux.go#L357-L362", "partition": "valid"} +{"repo": "go-chi/chi", "path": "mux.go", "func_name": "handle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handle registers a http.Handler in the routing tree for a particular http method\n// and routing pattern.", "docstring_tokens": ["handle", "registers", "a", "http", ".", "Handler", "in", "the", "routing", "tree", "for", "a", "particular", "http", "method", "and", "routing", "pattern", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/mux.go#L374-L395", "partition": "valid"} +{"repo": "go-chi/chi", "path": "mux.go", "func_name": "routeHTTP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// routeHTTP routes a http.Request through the Mux routing tree to serve\n// the matching handler for a particular http method.", "docstring_tokens": ["routeHTTP", "routes", "a", "http", ".", "Request", "through", "the", "Mux", "routing", "tree", "to", "serve", "the", "matching", "handler", "for", "a", "particular", "http", "method", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/mux.go#L399-L433", "partition": "valid"} +{"repo": "go-chi/chi", "path": "mux.go", "func_name": "updateSubRoutes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Recursively update data on child routers.", "docstring_tokens": ["Recursively", "update", "data", "on", "child", "routers", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/mux.go#L445-L453", "partition": "valid"} +{"repo": "go-chi/chi", "path": "mux.go", "func_name": "methodNotAllowedHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// methodNotAllowedHandler is a helper function to respond with a 405,\n// method not allowed.", "docstring_tokens": ["methodNotAllowedHandler", "is", "a", "helper", "function", "to", "respond", "with", "a", "405", "method", "not", "allowed", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/mux.go#L457-L460", "partition": "valid"} +{"repo": "go-chi/chi", "path": "middleware/logger.go", "func_name": "RequestLogger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RequestLogger returns a logger handler using a custom LogFormatter.", "docstring_tokens": ["RequestLogger", "returns", "a", "logger", "handler", "using", "a", "custom", "LogFormatter", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/middleware/logger.go#L35-L50", "partition": "valid"} +{"repo": "go-chi/chi", "path": "middleware/logger.go", "func_name": "GetLogEntry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLogEntry returns the in-context LogEntry for a request.", "docstring_tokens": ["GetLogEntry", "returns", "the", "in", "-", "context", "LogEntry", "for", "a", "request", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/middleware/logger.go#L66-L69", "partition": "valid"} +{"repo": "go-chi/chi", "path": "middleware/logger.go", "func_name": "WithLogEntry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithLogEntry sets the in-context LogEntry for a request.", "docstring_tokens": ["WithLogEntry", "sets", "the", "in", "-", "context", "LogEntry", "for", "a", "request", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/middleware/logger.go#L72-L75", "partition": "valid"} +{"repo": "go-chi/chi", "path": "middleware/logger.go", "func_name": "NewLogEntry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLogEntry creates a new LogEntry for the request.", "docstring_tokens": ["NewLogEntry", "creates", "a", "new", "LogEntry", "for", "the", "request", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/middleware/logger.go#L89-L116", "partition": "valid"} +{"repo": "go-chi/chi", "path": "middleware/content_charset.go", "func_name": "ContentCharset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContentCharset generates a handler that writes a 415 Unsupported Media Type response if none of the charsets match.\n// An empty charset will allow requests with no Content-Type header or no specified charset.", "docstring_tokens": ["ContentCharset", "generates", "a", "handler", "that", "writes", "a", "415", "Unsupported", "Media", "Type", "response", "if", "none", "of", "the", "charsets", "match", ".", "An", "empty", "charset", "will", "allow", "requests", "with", "no", "Content", "-", "Type", "header", "or", "no", "specified", "charset", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/middleware/content_charset.go#L10-L25", "partition": "valid"} +{"repo": "go-chi/chi", "path": "middleware/content_charset.go", "func_name": "contentEncoding", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Check the content encoding against a list of acceptable values.", "docstring_tokens": ["Check", "the", "content", "encoding", "against", "a", "list", "of", "acceptable", "values", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/middleware/content_charset.go#L28-L39", "partition": "valid"} +{"repo": "go-chi/chi", "path": "middleware/content_charset.go", "func_name": "split", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Split a string in two parts, cleaning any whitespace.", "docstring_tokens": ["Split", "a", "string", "in", "two", "parts", "cleaning", "any", "whitespace", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/middleware/content_charset.go#L42-L51", "partition": "valid"} +{"repo": "go-chi/chi", "path": "tree.go", "func_name": "addChild", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// addChild appends the new `child` node to the tree using the `pattern` as the trie key.\n// For a URL router like chi's, we split the static, param, regexp and wildcard segments\n// into different nodes. In addition, addChild will recursively call itself until every\n// pattern segment is added to the url pattern tree as individual nodes, depending on type.", "docstring_tokens": ["addChild", "appends", "the", "new", "child", "node", "to", "the", "tree", "using", "the", "pattern", "as", "the", "trie", "key", ".", "For", "a", "URL", "router", "like", "chi", "s", "we", "split", "the", "static", "param", "regexp", "and", "wildcard", "segments", "into", "different", "nodes", ".", "In", "addition", "addChild", "will", "recursively", "call", "itself", "until", "every", "pattern", "segment", "is", "added", "to", "the", "url", "pattern", "tree", "as", "individual", "nodes", "depending", "on", "type", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/tree.go#L222-L304", "partition": "valid"} +{"repo": "go-chi/chi", "path": "tree.go", "func_name": "findRoute", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Recursive edge traversal by checking all nodeTyp groups along the way.\n// It's like searching through a multi-dimensional radix trie.", "docstring_tokens": ["Recursive", "edge", "traversal", "by", "checking", "all", "nodeTyp", "groups", "along", "the", "way", ".", "It", "s", "like", "searching", "through", "a", "multi", "-", "dimensional", "radix", "trie", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/tree.go#L388-L491", "partition": "valid"} +{"repo": "go-chi/chi", "path": "_examples/rest/main.go", "func_name": "ArticleCtx", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ArticleCtx middleware is used to load an Article object from\n// the URL parameters passed through as the request. In case\n// the Article could not be found, we stop here and return a 404.", "docstring_tokens": ["ArticleCtx", "middleware", "is", "used", "to", "load", "an", "Article", "object", "from", "the", "URL", "parameters", "passed", "through", "as", "the", "request", ".", "In", "case", "the", "Article", "could", "not", "be", "found", "we", "stop", "here", "and", "return", "a", "404", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/_examples/rest/main.go#L127-L148", "partition": "valid"} +{"repo": "go-chi/chi", "path": "_examples/rest/main.go", "func_name": "SearchArticles", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SearchArticles searches the Articles data for a matching article.\n// It's just a stub, but you get the idea.", "docstring_tokens": ["SearchArticles", "searches", "the", "Articles", "data", "for", "a", "matching", "article", ".", "It", "s", "just", "a", "stub", "but", "you", "get", "the", "idea", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/_examples/rest/main.go#L152-L154", "partition": "valid"} +{"repo": "go-chi/chi", "path": "_examples/rest/main.go", "func_name": "CreateArticle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateArticle persists the posted Article and returns it\n// back to the client as an acknowledgement.", "docstring_tokens": ["CreateArticle", "persists", "the", "posted", "Article", "and", "returns", "it", "back", "to", "the", "client", "as", "an", "acknowledgement", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/_examples/rest/main.go#L158-L170", "partition": "valid"} +{"repo": "go-chi/chi", "path": "_examples/rest/main.go", "func_name": "GetArticle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetArticle returns the specific Article. You'll notice it just\n// fetches the Article right off the context, as its understood that\n// if we made it this far, the Article must be on the context. In case\n// its not due to a bug, then it will panic, and our Recoverer will save us.", "docstring_tokens": ["GetArticle", "returns", "the", "specific", "Article", ".", "You", "ll", "notice", "it", "just", "fetches", "the", "Article", "right", "off", "the", "context", "as", "its", "understood", "that", "if", "we", "made", "it", "this", "far", "the", "Article", "must", "be", "on", "the", "context", ".", "In", "case", "its", "not", "due", "to", "a", "bug", "then", "it", "will", "panic", "and", "our", "Recoverer", "will", "save", "us", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/_examples/rest/main.go#L176-L186", "partition": "valid"} +{"repo": "go-chi/chi", "path": "_examples/rest/main.go", "func_name": "UpdateArticle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateArticle updates an existing Article in our persistent store.", "docstring_tokens": ["UpdateArticle", "updates", "an", "existing", "Article", "in", "our", "persistent", "store", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/_examples/rest/main.go#L189-L201", "partition": "valid"} +{"repo": "go-chi/chi", "path": "_examples/rest/main.go", "func_name": "DeleteArticle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteArticle removes an existing Article from our persistent store.", "docstring_tokens": ["DeleteArticle", "removes", "an", "existing", "Article", "from", "our", "persistent", "store", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/_examples/rest/main.go#L204-L219", "partition": "valid"} +{"repo": "go-chi/chi", "path": "_examples/rest/main.go", "func_name": "adminRouter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// A completely separate router for administrator routes", "docstring_tokens": ["A", "completely", "separate", "router", "for", "administrator", "routes"], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/_examples/rest/main.go#L222-L235", "partition": "valid"} +{"repo": "go-chi/chi", "path": "_examples/rest/main.go", "func_name": "AdminOnly", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AdminOnly middleware restricts access to just administrators.", "docstring_tokens": ["AdminOnly", "middleware", "restricts", "access", "to", "just", "administrators", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/_examples/rest/main.go#L238-L247", "partition": "valid"} +{"repo": "go-chi/chi", "path": "_examples/rest/main.go", "func_name": "paginate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// paginate is a stub, but very possible to implement middleware logic\n// to handle the request params for handling a paginated request.", "docstring_tokens": ["paginate", "is", "a", "stub", "but", "very", "possible", "to", "implement", "middleware", "logic", "to", "handle", "the", "request", "params", "for", "handling", "a", "paginated", "request", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/_examples/rest/main.go#L251-L257", "partition": "valid"} +{"repo": "go-chi/chi", "path": "_examples/rest/main.go", "func_name": "init", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// This is entirely optional, but I wanted to demonstrate how you could easily\n// add your own logic to the render.Respond method.", "docstring_tokens": ["This", "is", "entirely", "optional", "but", "I", "wanted", "to", "demonstrate", "how", "you", "could", "easily", "add", "your", "own", "logic", "to", "the", "render", ".", "Respond", "method", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/_examples/rest/main.go#L261-L282", "partition": "valid"} +{"repo": "go-chi/chi", "path": "middleware/compress.go", "func_name": "NewCompressor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCompressor creates a new Compressor that will handle encoding responses.\n//\n// The level should be one of the ones defined in the flate package.\n// The types are the content types that are allowed to be compressed.", "docstring_tokens": ["NewCompressor", "creates", "a", "new", "Compressor", "that", "will", "handle", "encoding", "responses", ".", "The", "level", "should", "be", "one", "of", "the", "ones", "defined", "in", "the", "flate", "package", ".", "The", "types", "are", "the", "content", "types", "that", "are", "allowed", "to", "be", "compressed", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/middleware/compress.go#L50-L107", "partition": "valid"} +{"repo": "go-chi/chi", "path": "middleware/compress.go", "func_name": "Handler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Handler returns a new middleware that will compress the response based on the\n// current Compressor.", "docstring_tokens": ["Handler", "returns", "a", "new", "middleware", "that", "will", "compress", "the", "response", "based", "on", "the", "current", "Compressor", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/middleware/compress.go#L170-L194", "partition": "valid"} +{"repo": "go-chi/chi", "path": "middleware/compress.go", "func_name": "selectEncoder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// selectEncoder returns the encoder, the name of the encoder, and a closer function.", "docstring_tokens": ["selectEncoder", "returns", "the", "encoder", "the", "name", "of", "the", "encoder", "and", "a", "closer", "function", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/middleware/compress.go#L197-L224", "partition": "valid"} +{"repo": "go-chi/chi", "path": "middleware/compress.go", "func_name": "DefaultCompress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DefaultCompress is a middleware that compresses response\n// body of predefined content types to a data format based\n// on Accept-Encoding request header. It uses a default\n// compression level.\n// DEPRECATED", "docstring_tokens": ["DefaultCompress", "is", "a", "middleware", "that", "compresses", "response", "body", "of", "predefined", "content", "types", "to", "a", "data", "format", "based", "on", "Accept", "-", "Encoding", "request", "header", ".", "It", "uses", "a", "default", "compression", "level", ".", "DEPRECATED"], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/middleware/compress.go#L275-L277", "partition": "valid"} +{"repo": "go-chi/chi", "path": "middleware/throttle.go", "func_name": "Throttle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Throttle is a middleware that limits number of currently processed requests\n// at a time.", "docstring_tokens": ["Throttle", "is", "a", "middleware", "that", "limits", "number", "of", "currently", "processed", "requests", "at", "a", "time", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/middleware/throttle.go#L20-L22", "partition": "valid"} +{"repo": "go-chi/chi", "path": "middleware/throttle.go", "func_name": "ThrottleBacklog", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ThrottleBacklog is a middleware that limits number of currently processed\n// requests at a time and provides a backlog for holding a finite number of\n// pending requests.", "docstring_tokens": ["ThrottleBacklog", "is", "a", "middleware", "that", "limits", "number", "of", "currently", "processed", "requests", "at", "a", "time", "and", "provides", "a", "backlog", "for", "holding", "a", "finite", "number", "of", "pending", "requests", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/middleware/throttle.go#L27-L56", "partition": "valid"} +{"repo": "go-chi/chi", "path": "middleware/throttle.go", "func_name": "ServeHTTP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServeHTTP is the primary throttler request handler", "docstring_tokens": ["ServeHTTP", "is", "the", "primary", "throttler", "request", "handler"], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/middleware/throttle.go#L70-L101", "partition": "valid"} +{"repo": "go-chi/chi", "path": "middleware/wrap_writer.go", "func_name": "NewWrapResponseWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewWrapResponseWriter wraps an http.ResponseWriter, returning a proxy that allows you to\n// hook into various parts of the response process.", "docstring_tokens": ["NewWrapResponseWriter", "wraps", "an", "http", ".", "ResponseWriter", "returning", "a", "proxy", "that", "allows", "you", "to", "hook", "into", "various", "parts", "of", "the", "response", "process", "."], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/middleware/wrap_writer.go#L15-L37", "partition": "valid"} +{"repo": "go-chi/chi", "path": "_examples/todos-resource/todos.go", "func_name": "Routes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Routes creates a REST router for the todos resource", "docstring_tokens": ["Routes", "creates", "a", "REST", "router", "for", "the", "todos", "resource"], "sha": "988e36e484c9bf641ab5e3408b3cbe40b8cba7df", "url": "https://github.com/go-chi/chi/blob/988e36e484c9bf641ab5e3408b3cbe40b8cba7df/_examples/todos-resource/todos.go#L12-L29", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/aws.go", "func_name": "NewAWSProvider", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewAWSProvider initializes a new AWS Route53 based Provider.", "docstring_tokens": ["NewAWSProvider", "initializes", "a", "new", "AWS", "Route53", "based", "Provider", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/aws.go#L129-L167", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/aws.go", "func_name": "newChanges", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newChanges returns a collection of Changes based on the given records and action.", "docstring_tokens": ["newChanges", "returns", "a", "collection", "of", "Changes", "based", "on", "the", "given", "records", "and", "action", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/aws.go#L401-L409", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/aws.go", "func_name": "suitableZones", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// suitableZones returns all suitable private zones and the most suitable public zone\n// for a given hostname and a set of zones.", "docstring_tokens": ["suitableZones", "returns", "all", "suitable", "private", "zones", "and", "the", "most", "suitable", "public", "zone", "for", "a", "given", "hostname", "and", "a", "set", "of", "zones", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/aws.go#L577-L600", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/aws.go", "func_name": "isAWSLoadBalancer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isAWSLoadBalancer determines if a given hostname belongs to an AWS load balancer.", "docstring_tokens": ["isAWSLoadBalancer", "determines", "if", "a", "given", "hostname", "belongs", "to", "an", "AWS", "load", "balancer", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/aws.go#L603-L609", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/aws.go", "func_name": "isAWSAlias", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isAWSAlias determines if a given hostname belongs to an AWS Alias record by doing an reverse lookup.", "docstring_tokens": ["isAWSAlias", "determines", "if", "a", "given", "hostname", "belongs", "to", "an", "AWS", "Alias", "record", "by", "doing", "an", "reverse", "lookup", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/aws.go#L612-L624", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/aws.go", "func_name": "canonicalHostedZone", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// canonicalHostedZone returns the matching canonical zone for a given hostname.", "docstring_tokens": ["canonicalHostedZone", "returns", "the", "matching", "canonical", "zone", "for", "a", "given", "hostname", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/aws.go#L627-L635", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "registry/txt.go", "func_name": "NewTXTRegistry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTXTRegistry returns new TXTRegistry object", "docstring_tokens": ["NewTXTRegistry", "returns", "new", "TXTRegistry", "object"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/registry/txt.go#L44-L57", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "registry/txt.go", "func_name": "Records", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Records returns the current records from the registry excluding TXT Records\n// If TXT records was created previously to indicate ownership its corresponding value\n// will be added to the endpoints Labels map", "docstring_tokens": ["Records", "returns", "the", "current", "records", "from", "the", "registry", "excluding", "TXT", "Records", "If", "TXT", "records", "was", "created", "previously", "to", "indicate", "ownership", "its", "corresponding", "value", "will", "be", "added", "to", "the", "endpoints", "Labels", "map"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/registry/txt.go#L62-L116", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/domain_filter.go", "func_name": "NewDomainFilter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDomainFilter returns a new DomainFilter given a comma separated list of domains", "docstring_tokens": ["NewDomainFilter", "returns", "a", "new", "DomainFilter", "given", "a", "comma", "separated", "list", "of", "domains"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/domain_filter.go#L29-L39", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/domain_filter.go", "func_name": "Match", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Match checks whether a domain can be found in the DomainFilter.", "docstring_tokens": ["Match", "checks", "whether", "a", "domain", "can", "be", "found", "in", "the", "DomainFilter", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/domain_filter.go#L42-L65", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/domain_filter.go", "func_name": "IsConfigured", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsConfigured returns true if DomainFilter is configured, false otherwise", "docstring_tokens": ["IsConfigured", "returns", "true", "if", "DomainFilter", "is", "configured", "false", "otherwise"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/domain_filter.go#L68-L73", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/inmemory.go", "func_name": "InMemoryWithLogging", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InMemoryWithLogging injects logging when ApplyChanges is called", "docstring_tokens": ["InMemoryWithLogging", "injects", "logging", "when", "ApplyChanges", "is", "called"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/inmemory.go#L56-L73", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/inmemory.go", "func_name": "InMemoryInitZones", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InMemoryInitZones pre-seeds the InMemoryProvider with given zones", "docstring_tokens": ["InMemoryInitZones", "pre", "-", "seeds", "the", "InMemoryProvider", "with", "given", "zones"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/inmemory.go#L83-L91", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/inmemory.go", "func_name": "NewInMemoryProvider", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewInMemoryProvider returns InMemoryProvider DNS provider interface implementation", "docstring_tokens": ["NewInMemoryProvider", "returns", "InMemoryProvider", "DNS", "provider", "interface", "implementation"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/inmemory.go#L94-L108", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/inmemory.go", "func_name": "CreateZone", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateZone adds new zone if not present", "docstring_tokens": ["CreateZone", "adds", "new", "zone", "if", "not", "present"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/inmemory.go#L111-L113", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/inmemory.go", "func_name": "Zones", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Zones returns filtered zones as specified by domain", "docstring_tokens": ["Zones", "returns", "filtered", "zones", "as", "specified", "by", "domain"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/inmemory.go#L116-L118", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/inmemory.go", "func_name": "validateChangeBatch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// validateChangeBatch validates that the changes passed to InMemory DNS provider is valid", "docstring_tokens": ["validateChangeBatch", "validates", "that", "the", "changes", "passed", "to", "InMemory", "DNS", "provider", "is", "valid"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/inmemory.go#L339-L375", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/zone_tag_filter.go", "func_name": "NewZoneTagFilter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewZoneTagFilter returns a new ZoneTagFilter given a list of zone tags", "docstring_tokens": ["NewZoneTagFilter", "returns", "a", "new", "ZoneTagFilter", "given", "a", "list", "of", "zone", "tags"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/zone_tag_filter.go#L29-L34", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/zone_tag_filter.go", "func_name": "Match", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Match checks whether a zone's set of tags matches the provided tag values", "docstring_tokens": ["Match", "checks", "whether", "a", "zone", "s", "set", "of", "tags", "matches", "the", "provided", "tag", "values"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/zone_tag_filter.go#L37-L52", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "source/ingress.go", "func_name": "NewIngressSource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewIngressSource creates a new ingressSource with the given config.", "docstring_tokens": ["NewIngressSource", "creates", "a", "new", "ingressSource", "with", "the", "given", "config", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/source/ingress.go#L55-L103", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "source/ingress.go", "func_name": "Endpoints", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Endpoints returns endpoint objects for each host-target combination that should be processed.\n// Retrieves all ingress resources on all namespaces", "docstring_tokens": ["Endpoints", "returns", "endpoint", "objects", "for", "each", "host", "-", "target", "combination", "that", "should", "be", "processed", ".", "Retrieves", "all", "ingress", "resources", "on", "all", "namespaces"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/source/ingress.go#L107-L159", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "source/ingress.go", "func_name": "filterByAnnotations", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// filterByAnnotations filters a list of ingresses by a given annotation selector.", "docstring_tokens": ["filterByAnnotations", "filters", "a", "list", "of", "ingresses", "by", "a", "given", "annotation", "selector", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/source/ingress.go#L195-L223", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "source/ingress.go", "func_name": "endpointsFromIngress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// endpointsFromIngress extracts the endpoints from ingress object", "docstring_tokens": ["endpointsFromIngress", "extracts", "the", "endpoints", "from", "ingress", "object"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/source/ingress.go#L232-L272", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "endpoint/labels.go", "func_name": "NewLabelsFromString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLabelsFromString constructs endpoints labels from a provided format string\n// if heritage set to another value is found then error is returned\n// no heritage automatically assumes is not owned by external-dns and returns invalidHeritage error", "docstring_tokens": ["NewLabelsFromString", "constructs", "endpoints", "labels", "from", "a", "provided", "format", "string", "if", "heritage", "set", "to", "another", "value", "is", "found", "then", "error", "is", "returned", "no", "heritage", "automatically", "assumes", "is", "not", "owned", "by", "external", "-", "dns", "and", "returns", "invalidHeritage", "error"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/endpoint/labels.go#L55-L83", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "endpoint/labels.go", "func_name": "Serialize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Serialize transforms endpoints labels into a external-dns recognizable format string\n// withQuotes adds additional quotes", "docstring_tokens": ["Serialize", "transforms", "endpoints", "labels", "into", "a", "external", "-", "dns", "recognizable", "format", "string", "withQuotes", "adds", "additional", "quotes"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/endpoint/labels.go#L87-L103", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "source/store.go", "func_name": "KubeClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// KubeClient generates a kube client if it was not created before", "docstring_tokens": ["KubeClient", "generates", "a", "kube", "client", "if", "it", "was", "not", "created", "before"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/source/store.go#L77-L83", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "source/store.go", "func_name": "IstioClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IstioClient generates an istio client if it was not created before", "docstring_tokens": ["IstioClient", "generates", "an", "istio", "client", "if", "it", "was", "not", "created", "before"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/source/store.go#L86-L92", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "source/store.go", "func_name": "ByNames", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ByNames returns multiple Sources given multiple names.", "docstring_tokens": ["ByNames", "returns", "multiple", "Sources", "given", "multiple", "names", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/source/store.go#L95-L106", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "source/store.go", "func_name": "BuildWithConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BuildWithConfig allows to generate a Source implementation from the shared config", "docstring_tokens": ["BuildWithConfig", "allows", "to", "generate", "a", "Source", "implementation", "from", "the", "shared", "config"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/source/store.go#L109-L149", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "source/store.go", "func_name": "NewKubeClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewKubeClient returns a new Kubernetes client object. It takes a Config and\n// uses KubeMaster and KubeConfig attributes to connect to the cluster. If\n// KubeConfig isn't provided it defaults to using the recommended default.", "docstring_tokens": ["NewKubeClient", "returns", "a", "new", "Kubernetes", "client", "object", ".", "It", "takes", "a", "Config", "and", "uses", "KubeMaster", "and", "KubeConfig", "attributes", "to", "connect", "to", "the", "cluster", ".", "If", "KubeConfig", "isn", "t", "provided", "it", "defaults", "to", "using", "the", "recommended", "default", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/source/store.go#L154-L185", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "source/crd.go", "func_name": "NewCRDClientForAPIVersionKind", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCRDClientForAPIVersionKind return rest client for the given apiVersion and kind of the CRD", "docstring_tokens": ["NewCRDClientForAPIVersionKind", "return", "rest", "client", "for", "the", "given", "apiVersion", "and", "kind", "of", "the", "CRD"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/source/crd.go#L54-L98", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "source/crd.go", "func_name": "NewCRDSource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCRDSource creates a new crdSource with the given config.", "docstring_tokens": ["NewCRDSource", "creates", "a", "new", "crdSource", "with", "the", "given", "config", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/source/crd.go#L101-L108", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/zone_type_filter.go", "func_name": "Match", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Match checks whether a zone matches the zone type that's filtered for.", "docstring_tokens": ["Match", "checks", "whether", "a", "zone", "matches", "the", "zone", "type", "that", "s", "filtered", "for", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/zone_type_filter.go#L40-L62", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/infoblox.go", "func_name": "NewInfobloxProvider", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewInfobloxProvider creates a new Infoblox provider.", "docstring_tokens": ["NewInfobloxProvider", "creates", "a", "new", "Infoblox", "provider", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/infoblox.go#L60-L96", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/infoblox.go", "func_name": "ApplyChanges", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ApplyChanges applies the given changes.", "docstring_tokens": ["ApplyChanges", "applies", "the", "given", "changes", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/infoblox.go#L180-L190", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "source/service.go", "func_name": "NewServiceSource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewServiceSource creates a new serviceSource with the given config.", "docstring_tokens": ["NewServiceSource", "creates", "a", "new", "serviceSource", "with", "the", "given", "config", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/source/service.go#L71-L148", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "source/service.go", "func_name": "Endpoints", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Endpoints returns endpoint objects for each service that should be processed.", "docstring_tokens": ["Endpoints", "returns", "endpoint", "objects", "for", "each", "service", "that", "should", "be", "processed", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/source/service.go#L151-L219", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "source/service.go", "func_name": "endpoints", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// endpointsFromService extracts the endpoints from a service object", "docstring_tokens": ["endpointsFromService", "extracts", "the", "endpoints", "from", "a", "service", "object"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/source/service.go#L305-L316", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "source/service.go", "func_name": "filterByAnnotations", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// filterByAnnotations filters a list of services by a given annotation selector.", "docstring_tokens": ["filterByAnnotations", "filters", "a", "list", "of", "services", "by", "a", "given", "annotation", "selector", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/source/service.go#L319-L347", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "source/service.go", "func_name": "filterByServiceType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// filterByServiceType filters services according their types", "docstring_tokens": ["filterByServiceType", "filters", "services", "according", "their", "types"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/source/service.go#L350-L360", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "plan/plan.go", "func_name": "Calculate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Calculate computes the actions needed to move current state towards desired\n// state. It then passes those changes to the current policy for further\n// processing. It returns a copy of Plan with the changes populated.", "docstring_tokens": ["Calculate", "computes", "the", "actions", "needed", "to", "move", "current", "state", "towards", "desired", "state", ".", "It", "then", "passes", "those", "changes", "to", "the", "current", "policy", "for", "further", "processing", ".", "It", "returns", "a", "copy", "of", "Plan", "with", "the", "changes", "populated", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/plan/plan.go#L140-L165", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/exoscale.go", "func_name": "NewExoscaleProvider", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewExoscaleProvider returns ExoscaleProvider DNS provider interface implementation", "docstring_tokens": ["NewExoscaleProvider", "returns", "ExoscaleProvider", "DNS", "provider", "interface", "implementation"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/exoscale.go#L50-L53", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/exoscale.go", "func_name": "ExoscaleWithLogging", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ExoscaleWithLogging injects logging when ApplyChanges is called", "docstring_tokens": ["ExoscaleWithLogging", "injects", "logging", "when", "ApplyChanges", "is", "called"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/exoscale.go#L210-L227", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/linode.go", "func_name": "NewLinodeProvider", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLinodeProvider initializes a new Linode DNS based Provider.", "docstring_tokens": ["NewLinodeProvider", "initializes", "a", "new", "Linode", "DNS", "based", "Provider", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/linode.go#L79-L102", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "endpoint/endpoint.go", "func_name": "NewTargets", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTargets is a convenience method to create a new Targets object from a vararg of strings", "docstring_tokens": ["NewTargets", "is", "a", "convenience", "method", "to", "create", "a", "new", "Targets", "object", "from", "a", "vararg", "of", "strings"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/endpoint/endpoint.go#L50-L54", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "endpoint/endpoint.go", "func_name": "Same", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Same compares to Targets and returns true if they are completely identical", "docstring_tokens": ["Same", "compares", "to", "Targets", "and", "returns", "true", "if", "they", "are", "completely", "identical"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/endpoint/endpoint.go#L73-L86", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "endpoint/endpoint.go", "func_name": "IsLess", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsLess should fulfill the requirement to compare two targets and chosse the 'lesser' one.\n// In the past target was a simple string so simple string comparison could be used. Now we define 'less'\n// as either being the shorter list of targets or where the first entry is less.\n// FIXME We really need to define under which circumstances a list Targets is considered 'less'\n// than another.", "docstring_tokens": ["IsLess", "should", "fulfill", "the", "requirement", "to", "compare", "two", "targets", "and", "chosse", "the", "lesser", "one", ".", "In", "the", "past", "target", "was", "a", "simple", "string", "so", "simple", "string", "comparison", "could", "be", "used", ".", "Now", "we", "define", "less", "as", "either", "being", "the", "shorter", "list", "of", "targets", "or", "where", "the", "first", "entry", "is", "less", ".", "FIXME", "We", "really", "need", "to", "define", "under", "which", "circumstances", "a", "list", "Targets", "is", "considered", "less", "than", "another", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/endpoint/endpoint.go#L93-L110", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "endpoint/endpoint.go", "func_name": "NewEndpoint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewEndpoint initialization method to be used to create an endpoint", "docstring_tokens": ["NewEndpoint", "initialization", "method", "to", "be", "used", "to", "create", "an", "endpoint"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/endpoint/endpoint.go#L140-L142", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "endpoint/endpoint.go", "func_name": "NewEndpointWithTTL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewEndpointWithTTL initialization method to be used to create an endpoint with a TTL struct", "docstring_tokens": ["NewEndpointWithTTL", "initialization", "method", "to", "be", "used", "to", "create", "an", "endpoint", "with", "a", "TTL", "struct"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/endpoint/endpoint.go#L145-L158", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "endpoint/endpoint.go", "func_name": "GetProviderSpecificProperty", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetProviderSpecificProperty returns a ProviderSpecificProperty if the property exists.", "docstring_tokens": ["GetProviderSpecificProperty", "returns", "a", "ProviderSpecificProperty", "if", "the", "property", "exists", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/endpoint/endpoint.go#L175-L182", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/zone_id_filter.go", "func_name": "Match", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Match checks whether a zone matches one of the provided zone ids", "docstring_tokens": ["Match", "checks", "whether", "a", "zone", "matches", "one", "of", "the", "provided", "zone", "ids"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/zone_id_filter.go#L32-L45", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "pkg/apis/externaldns/validation/validation.go", "func_name": "ValidateConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidateConfig performs validation on the Config object", "docstring_tokens": ["ValidateConfig", "performs", "validation", "on", "the", "Config", "object"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/pkg/apis/externaldns/validation/validation.go#L27-L73", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/ns1.go", "func_name": "CreateRecord", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateRecord wraps the Create method of the API's Record service", "docstring_tokens": ["CreateRecord", "wraps", "the", "Create", "method", "of", "the", "API", "s", "Record", "service"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/ns1.go#L60-L62", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/ns1.go", "func_name": "DeleteRecord", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteRecord wraps the Delete method of the API's Record service", "docstring_tokens": ["DeleteRecord", "wraps", "the", "Delete", "method", "of", "the", "API", "s", "Record", "service"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/ns1.go#L65-L67", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/ns1.go", "func_name": "UpdateRecord", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateRecord wraps the Update method of the API's Record service", "docstring_tokens": ["UpdateRecord", "wraps", "the", "Update", "method", "of", "the", "API", "s", "Record", "service"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/ns1.go#L70-L72", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/ns1.go", "func_name": "GetZone", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetZone wraps the Get method of the API's Zones service", "docstring_tokens": ["GetZone", "wraps", "the", "Get", "method", "of", "the", "API", "s", "Zones", "service"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/ns1.go#L75-L77", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/ns1.go", "func_name": "ListZones", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListZones wraps the List method of the API's Zones service", "docstring_tokens": ["ListZones", "wraps", "the", "List", "method", "of", "the", "API", "s", "Zones", "service"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/ns1.go#L80-L82", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/ns1.go", "func_name": "Records", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Records returns the endpoints this provider knows about", "docstring_tokens": ["Records", "returns", "the", "endpoints", "this", "provider", "knows", "about"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/ns1.go#L121-L151", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/ns1.go", "func_name": "ns1BuildRecord", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ns1BuildRecord returns a dns.Record for a change set", "docstring_tokens": ["ns1BuildRecord", "returns", "a", "dns", ".", "Record", "for", "a", "change", "set"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/ns1.go#L154-L167", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/ns1.go", "func_name": "ns1SubmitChanges", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ns1SubmitChanges takes an array of changes and sends them to NS1", "docstring_tokens": ["ns1SubmitChanges", "takes", "an", "array", "of", "changes", "and", "sends", "them", "to", "NS1"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/ns1.go#L170-L220", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/ns1.go", "func_name": "newNS1Changes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newNS1Changes returns a collection of Changes based on the given records and action.", "docstring_tokens": ["newNS1Changes", "returns", "a", "collection", "of", "Changes", "based", "on", "the", "given", "records", "and", "action", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/ns1.go#L262-L274", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/ns1.go", "func_name": "ns1ChangesByZone", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ns1ChangesByZone separates a multi-zone change into a single change per zone.", "docstring_tokens": ["ns1ChangesByZone", "separates", "a", "multi", "-", "zone", "change", "into", "a", "single", "change", "per", "zone", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/ns1.go#L277-L295", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "pkg/apis/externaldns/types.go", "func_name": "allLogLevelsAsStrings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// allLogLevelsAsStrings returns all logrus levels as a list of strings", "docstring_tokens": ["allLogLevelsAsStrings", "returns", "all", "logrus", "levels", "as", "a", "list", "of", "strings"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/pkg/apis/externaldns/types.go#L218-L224", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "plan/policy.go", "func_name": "Apply", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Apply applies the upsert-only policy which strips out any deletions.", "docstring_tokens": ["Apply", "applies", "the", "upsert", "-", "only", "policy", "which", "strips", "out", "any", "deletions", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/plan/policy.go#L42-L48", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "controller/controller.go", "func_name": "RunOnce", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RunOnce runs a single iteration of a reconciliation loop.", "docstring_tokens": ["RunOnce", "runs", "a", "single", "iteration", "of", "a", "reconciliation", "loop", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/controller/controller.go#L84-L113", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "controller/controller.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run runs RunOnce in a loop with a delay until stopChan receives a value.", "docstring_tokens": ["Run", "runs", "RunOnce", "in", "a", "loop", "with", "a", "delay", "until", "stopChan", "receives", "a", "value", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/controller/controller.go#L116-L131", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/cloudflare.go", "func_name": "NewCloudFlareProvider", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCloudFlareProvider initializes a new CloudFlare DNS based Provider.", "docstring_tokens": ["NewCloudFlareProvider", "initializes", "a", "new", "CloudFlare", "DNS", "based", "Provider", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/cloudflare.go#L119-L138", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/cloudflare.go", "func_name": "newCloudFlareChanges", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newCloudFlareChanges returns a collection of Changes based on the given records and action.", "docstring_tokens": ["newCloudFlareChanges", "returns", "a", "collection", "of", "Changes", "based", "on", "the", "given", "records", "and", "action", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/cloudflare.go#L301-L309", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/dnsimple.go", "func_name": "GetAccountID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns the account ID given dnsimple credentials", "docstring_tokens": ["Returns", "the", "account", "ID", "given", "dnsimple", "credentials"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/dnsimple.go#L42-L49", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/dnsimple.go", "func_name": "NewDnsimpleProvider", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDnsimpleProvider initializes a new Dnsimple based provider", "docstring_tokens": ["NewDnsimpleProvider", "initializes", "a", "new", "Dnsimple", "based", "provider"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/dnsimple.go#L105-L124", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/dnsimple.go", "func_name": "Zones", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns a list of filtered Zones", "docstring_tokens": ["Returns", "a", "list", "of", "filtered", "Zones"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/dnsimple.go#L127-L155", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/dnsimple.go", "func_name": "Records", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Records retuns a list of endpoints in a given zone", "docstring_tokens": ["Records", "retuns", "a", "list", "of", "endpoints", "in", "a", "given", "zone"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/dnsimple.go#L158-L188", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/dnsimple.go", "func_name": "newDnsimpleChange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newDnsimpleChange initializes a new change to dns records", "docstring_tokens": ["newDnsimpleChange", "initializes", "a", "new", "change", "to", "dns", "records"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/dnsimple.go#L191-L207", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/dnsimple.go", "func_name": "newDnsimpleChanges", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newDnsimpleChanges returns a slice of changes based on given action and record", "docstring_tokens": ["newDnsimpleChanges", "returns", "a", "slice", "of", "changes", "based", "on", "given", "action", "and", "record"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/dnsimple.go#L210-L216", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/dnsimple.go", "func_name": "submitChanges", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// submitChanges takes a zone and a collection of changes and makes all changes from the collection", "docstring_tokens": ["submitChanges", "takes", "a", "zone", "and", "a", "collection", "of", "changes", "and", "makes", "all", "changes", "from", "the", "collection"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/dnsimple.go#L219-L267", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/dnsimple.go", "func_name": "GetRecordID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns the record ID for a given record name and zone", "docstring_tokens": ["Returns", "the", "record", "ID", "for", "a", "given", "record", "name", "and", "zone"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/dnsimple.go#L270-L292", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/dnsimple.go", "func_name": "dnsimpleSuitableZone", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// dnsimpleSuitableZone returns the most suitable zone for a given hostname and a set of zones.", "docstring_tokens": ["dnsimpleSuitableZone", "returns", "the", "most", "suitable", "zone", "for", "a", "given", "hostname", "and", "a", "set", "of", "zones", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/dnsimple.go#L295-L306", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/dnsimple.go", "func_name": "CreateRecords", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateRecords creates records for a given slice of endpoints", "docstring_tokens": ["CreateRecords", "creates", "records", "for", "a", "given", "slice", "of", "endpoints"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/dnsimple.go#L309-L311", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/dnsimple.go", "func_name": "DeleteRecords", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteRecords deletes records for a given slice of endpoints", "docstring_tokens": ["DeleteRecords", "deletes", "records", "for", "a", "given", "slice", "of", "endpoints"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/dnsimple.go#L314-L316", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/dnsimple.go", "func_name": "UpdateRecords", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateRecords updates records for a given slice of endpoints", "docstring_tokens": ["UpdateRecords", "updates", "records", "for", "a", "given", "slice", "of", "endpoints"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/dnsimple.go#L319-L321", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/dnsimple.go", "func_name": "ApplyChanges", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ApplyChanges applies a given set of changes", "docstring_tokens": ["ApplyChanges", "applies", "a", "given", "set", "of", "changes"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/dnsimple.go#L324-L332", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/google.go", "func_name": "NewGoogleProvider", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewGoogleProvider initializes a new Google CloudDNS based Provider.", "docstring_tokens": ["NewGoogleProvider", "initializes", "a", "new", "Google", "CloudDNS", "based", "Provider", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/google.go#L118-L155", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/google.go", "func_name": "Records", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Records returns the list of records in all relevant zones.", "docstring_tokens": ["Records", "returns", "the", "list", "of", "records", "in", "all", "relevant", "zones", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/google.go#L195-L219", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/google.go", "func_name": "newFilteredRecords", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newFilteredRecords returns a collection of RecordSets based on the given endpoints and domainFilter.", "docstring_tokens": ["newFilteredRecords", "returns", "a", "collection", "of", "RecordSets", "based", "on", "the", "given", "endpoints", "and", "domainFilter", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/google.go#L264-L274", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/google.go", "func_name": "submitChange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// submitChange takes a zone and a Change and sends it to Google.", "docstring_tokens": ["submitChange", "takes", "a", "zone", "and", "a", "Change", "and", "sends", "it", "to", "Google", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/google.go#L277-L312", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/google.go", "func_name": "separateChange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// separateChange separates a multi-zone change into a single change per zone.", "docstring_tokens": ["separateChange", "separates", "a", "multi", "-", "zone", "change", "into", "a", "single", "change", "per", "zone", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/google.go#L315-L349", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/google.go", "func_name": "newRecord", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newRecord returns a RecordSet based on the given endpoint.", "docstring_tokens": ["newRecord", "returns", "a", "RecordSet", "based", "on", "the", "given", "endpoint", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/google.go#L352-L374", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/rcode0.go", "func_name": "NewRcodeZeroProvider", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRcodeZeroProvider creates a new RcodeZero Anycast DNS provider.\n//\n// Returns the provider or an error if a provider could not be created.", "docstring_tokens": ["NewRcodeZeroProvider", "creates", "a", "new", "RcodeZero", "Anycast", "DNS", "provider", ".", "Returns", "the", "provider", "or", "an", "error", "if", "a", "provider", "could", "not", "be", "created", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/rcode0.go#L44-L73", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/rcode0.go", "func_name": "Zones", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Zones returns filtered zones if filter is set", "docstring_tokens": ["Zones", "returns", "filtered", "zones", "if", "filter", "is", "set"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/rcode0.go#L76-L92", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/rcode0.go", "func_name": "Records", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Records returns resource records\n//\n// Decrypts TXT records if TXT-Encrypt flag is set and key is provided", "docstring_tokens": ["Records", "returns", "resource", "records", "Decrypts", "TXT", "records", "if", "TXT", "-", "Encrypt", "flag", "is", "set", "and", "key", "is", "provided"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/rcode0.go#L97-L141", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/rcode0.go", "func_name": "submitChanges", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Helper function to submit changes.\n//\n// Changes are submitted by change type.", "docstring_tokens": ["Helper", "function", "to", "submit", "changes", ".", "Changes", "are", "submitted", "by", "change", "type", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/rcode0.go#L230-L305", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/rcode0.go", "func_name": "NewRcodezeroChanges", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRcodezeroChanges returns a RcodeZero specific array with rrset change objects.", "docstring_tokens": ["NewRcodezeroChanges", "returns", "a", "RcodeZero", "specific", "array", "with", "rrset", "change", "objects", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/rcode0.go#L308-L317", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/rcode0.go", "func_name": "NewRcodezeroChange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRcodezeroChange returns a RcodeZero specific rrset change object.", "docstring_tokens": ["NewRcodezeroChange", "returns", "a", "RcodeZero", "specific", "rrset", "change", "object", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/rcode0.go#L320-L337", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/alibaba_cloud.go", "func_name": "NewAlibabaCloudProvider", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewAlibabaCloudProvider creates a new Alibaba Cloud provider.\n//\n// Returns the provider or an error if a provider could not be created.", "docstring_tokens": ["NewAlibabaCloudProvider", "creates", "a", "new", "Alibaba", "Cloud", "provider", ".", "Returns", "the", "provider", "or", "an", "error", "if", "a", "provider", "could", "not", "be", "created", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/alibaba_cloud.go#L95-L173", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/alibaba_cloud.go", "func_name": "recordsForDNS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// recordsForDNS gets the current records.\n//\n// Returns the current records or an error if the operation failed.", "docstring_tokens": ["recordsForDNS", "gets", "the", "current", "records", ".", "Returns", "the", "current", "records", "or", "an", "error", "if", "the", "operation", "failed", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/alibaba_cloud.go#L316-L343", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/alibaba_cloud.go", "func_name": "privateZoneRecords", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// recordsForPrivateZone gets the current records.\n//\n// Returns the current records or an error if the operation failed.", "docstring_tokens": ["recordsForPrivateZone", "gets", "the", "current", "records", ".", "Returns", "the", "current", "records", "or", "an", "error", "if", "the", "operation", "failed", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/alibaba_cloud.go#L846-L875", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/coredns.go", "func_name": "SaveService", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SaveService persists service data into etcd", "docstring_tokens": ["SaveService", "persists", "service", "data", "into", "etcd"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/coredns.go#L136-L149", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/coredns.go", "func_name": "DeleteService", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteService deletes service record from etcd", "docstring_tokens": ["DeleteService", "deletes", "service", "record", "from", "etcd"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/coredns.go#L152-L158", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/coredns.go", "func_name": "newTLSConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// loads TLS artifacts and builds tls.Clonfig object", "docstring_tokens": ["loads", "TLS", "artifacts", "and", "builds", "tls", ".", "Clonfig", "object"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/coredns.go#L161-L184", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/coredns.go", "func_name": "getETCDConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// builds etcd client config depending on connection scheme and TLS parameters", "docstring_tokens": ["builds", "etcd", "client", "config", "depending", "on", "connection", "scheme", "and", "TLS", "parameters"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/coredns.go#L205-L232", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/coredns.go", "func_name": "newETCDClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//newETCDClient is an etcd client constructor", "docstring_tokens": ["newETCDClient", "is", "an", "etcd", "client", "constructor"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/coredns.go#L235-L245", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/coredns.go", "func_name": "NewCoreDNSProvider", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCoreDNSProvider is a CoreDNS provider constructor", "docstring_tokens": ["NewCoreDNSProvider", "is", "a", "CoreDNS", "provider", "constructor"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/coredns.go#L248-L258", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/coredns.go", "func_name": "Records", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Records returns all DNS records found in CoreDNS etcd backend. Depending on the record fields\n// it may be mapped to one or two records of type A, CNAME, TXT, A+TXT, CNAME+TXT", "docstring_tokens": ["Records", "returns", "all", "DNS", "records", "found", "in", "CoreDNS", "etcd", "backend", ".", "Depending", "on", "the", "record", "fields", "it", "may", "be", "mapped", "to", "one", "or", "two", "records", "of", "type", "A", "CNAME", "TXT", "A", "+", "TXT", "CNAME", "+", "TXT"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/coredns.go#L262-L298", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/rfc2136.go", "func_name": "NewRfc2136Provider", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRfc2136Provider is a factory function for OpenStack rfc2136 providers", "docstring_tokens": ["NewRfc2136Provider", "is", "a", "factory", "function", "for", "OpenStack", "rfc2136", "providers"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/rfc2136.go#L65-L93", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/pdns.go", "func_name": "stringifyHTTPResponseBody", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Function for debug printing", "docstring_tokens": ["Function", "for", "debug", "printing"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/pdns.go#L119-L130", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/pdns.go", "func_name": "NewPDNSProvider", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPDNSProvider initializes a new PowerDNS based Provider.", "docstring_tokens": ["NewPDNSProvider", "initializes", "a", "new", "PowerDNS", "based", "Provider", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/pdns.go#L229-L263", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/pdns.go", "func_name": "mutateRecords", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// mutateRecords takes a list of endpoints and creates, replaces or deletes them based on the changetype", "docstring_tokens": ["mutateRecords", "takes", "a", "list", "of", "endpoints", "and", "creates", "replaces", "or", "deletes", "them", "based", "on", "the", "changetype"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/pdns.go#L392-L413", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/aws_sd.go", "func_name": "NewAWSSDProvider", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewAWSSDProvider initializes a new AWS Route53 Auto Naming based Provider.", "docstring_tokens": ["NewAWSSDProvider", "initializes", "a", "new", "AWS", "Route53", "Auto", "Naming", "based", "Provider", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/aws_sd.go#L74-L109", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/aws_sd.go", "func_name": "newSdNamespaceFilter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newSdNamespaceFilter initialized AWS SD Namespace Filter based on given string config", "docstring_tokens": ["newSdNamespaceFilter", "initialized", "AWS", "SD", "Namespace", "Filter", "based", "on", "given", "string", "config"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/aws_sd.go#L112-L127", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/aws_sd.go", "func_name": "Records", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Records returns list of all endpoints.", "docstring_tokens": ["Records", "returns", "list", "of", "all", "endpoints", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/aws_sd.go#L130-L156", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/aws_sd.go", "func_name": "ApplyChanges", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ApplyChanges applies Kubernetes changes in endpoints to AWS API", "docstring_tokens": ["ApplyChanges", "applies", "Kubernetes", "changes", "in", "endpoints", "to", "AWS", "API"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/aws_sd.go#L196-L231", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/aws_sd.go", "func_name": "ListNamespaces", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListNamespaces returns all namespaces matching defined namespace filter", "docstring_tokens": ["ListNamespaces", "returns", "all", "namespaces", "matching", "defined", "namespace", "filter"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/aws_sd.go#L325-L347", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/aws_sd.go", "func_name": "GetServiceDetail", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetServiceDetail returns detail of given service", "docstring_tokens": ["GetServiceDetail", "returns", "detail", "of", "given", "service"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/aws_sd.go#L386-L395", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/aws_sd.go", "func_name": "ListInstancesByServiceID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListInstancesByServiceID returns list of instances registered in given service.", "docstring_tokens": ["ListInstancesByServiceID", "returns", "list", "of", "instances", "registered", "in", "given", "service", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/aws_sd.go#L398-L415", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/aws_sd.go", "func_name": "CreateService", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateService creates a new service in AWS API. Returns the created service.", "docstring_tokens": ["CreateService", "creates", "a", "new", "service", "in", "AWS", "API", ".", "Returns", "the", "created", "service", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/aws_sd.go#L418-L451", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/aws_sd.go", "func_name": "UpdateService", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateService updates the specified service with information from provided endpoint.", "docstring_tokens": ["UpdateService", "updates", "the", "specified", "service", "with", "information", "from", "provided", "endpoint", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/aws_sd.go#L454-L481", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/aws_sd.go", "func_name": "RegisterInstance", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterInstance creates a new instance in given service.", "docstring_tokens": ["RegisterInstance", "creates", "a", "new", "instance", "in", "given", "service", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/aws_sd.go#L484-L515", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/aws_sd.go", "func_name": "DeregisterInstance", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeregisterInstance removes an instance from given service.", "docstring_tokens": ["DeregisterInstance", "removes", "an", "instance", "from", "given", "service", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/aws_sd.go#L518-L534", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/aws_sd.go", "func_name": "targetToInstanceID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Instance ID length is limited by AWS API to 64 characters. For longer strings SHA-256 hash will be used instead of\n// the verbatim target to limit the length.", "docstring_tokens": ["Instance", "ID", "length", "is", "limited", "by", "AWS", "API", "to", "64", "characters", ".", "For", "longer", "strings", "SHA", "-", "256", "hash", "will", "be", "used", "instead", "of", "the", "verbatim", "target", "to", "limit", "the", "length", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/aws_sd.go#L538-L545", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/aws_sd.go", "func_name": "matchingNamespaces", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// returns list of all namespaces matching given hostname", "docstring_tokens": ["returns", "list", "of", "all", "namespaces", "matching", "given", "hostname"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/aws_sd.go#L624-L634", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/aws_sd.go", "func_name": "routingPolicyFromEndpoint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// determine service routing policy based on endpoint type", "docstring_tokens": ["determine", "service", "routing", "policy", "based", "on", "endpoint", "type"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/aws_sd.go#L645-L651", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/aws_sd.go", "func_name": "isAWSLoadBalancer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// determine if a given hostname belongs to an AWS load balancer", "docstring_tokens": ["determine", "if", "a", "given", "hostname", "belongs", "to", "an", "AWS", "load", "balancer"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/aws_sd.go#L668-L670", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "plan/conflict.go", "func_name": "ResolveUpdate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ResolveUpdate is invoked when dns name is already owned by \"current\" endpoint\n// ResolveUpdate uses \"current\" record as base and updates it accordingly with new version of same resource\n// if it doesn't exist then pick min", "docstring_tokens": ["ResolveUpdate", "is", "invoked", "when", "dns", "name", "is", "already", "owned", "by", "current", "endpoint", "ResolveUpdate", "uses", "current", "record", "as", "base", "and", "updates", "it", "accordingly", "with", "new", "version", "of", "same", "resource", "if", "it", "doesn", "t", "exist", "then", "pick", "min"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/plan/conflict.go#L50-L63", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "plan/conflict.go", "func_name": "less", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// less returns true if endpoint x is less than y", "docstring_tokens": ["less", "returns", "true", "if", "endpoint", "x", "is", "less", "than", "y"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/plan/conflict.go#L66-L68", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/digital_ocean.go", "func_name": "NewDigitalOceanProvider", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDigitalOceanProvider initializes a new DigitalOcean DNS based Provider.", "docstring_tokens": ["NewDigitalOceanProvider", "initializes", "a", "new", "DigitalOcean", "DNS", "based", "Provider", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/digital_ocean.go#L61-L77", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/digital_ocean.go", "func_name": "newDigitalOceanChanges", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newDigitalOceanChanges returns a collection of Changes based on the given records and action.", "docstring_tokens": ["newDigitalOceanChanges", "returns", "a", "collection", "of", "Changes", "based", "on", "the", "given", "records", "and", "action", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/digital_ocean.go#L275-L283", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/digital_ocean.go", "func_name": "getRecordID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getRecordID returns the ID from a record.\n// the ID is mandatory to update and delete records", "docstring_tokens": ["getRecordID", "returns", "the", "ID", "from", "a", "record", ".", "the", "ID", "is", "mandatory", "to", "update", "and", "delete", "records"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/digital_ocean.go#L306-L313", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/digital_ocean.go", "func_name": "digitalOceanChangesByZone", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// digitalOceanchangesByZone separates a multi-zone change into a single change per zone.", "docstring_tokens": ["digitalOceanchangesByZone", "separates", "a", "multi", "-", "zone", "change", "into", "a", "single", "change", "per", "zone", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/digital_ocean.go#L316-L334", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "source/compatibility.go", "func_name": "legacyEndpointsFromService", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// legacyEndpointsFromService tries to retrieve Endpoints from Services\n// annotated with legacy annotations.", "docstring_tokens": ["legacyEndpointsFromService", "tries", "to", "retrieve", "Endpoints", "from", "Services", "annotated", "with", "legacy", "annotations", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/source/compatibility.go#L33-L42", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "source/compatibility.go", "func_name": "legacyEndpointsFromMateService", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// legacyEndpointsFromMateService tries to retrieve Endpoints from Services\n// annotated with Mate's annotation semantics.", "docstring_tokens": ["legacyEndpointsFromMateService", "tries", "to", "retrieve", "Endpoints", "from", "Services", "annotated", "with", "Mate", "s", "annotation", "semantics", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/source/compatibility.go#L46-L66", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "source/compatibility.go", "func_name": "legacyEndpointsFromMoleculeService", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// legacyEndpointsFromMoleculeService tries to retrieve Endpoints from Services\n// annotated with Molecule Software's annotation semantics.", "docstring_tokens": ["legacyEndpointsFromMoleculeService", "tries", "to", "retrieve", "Endpoints", "from", "Services", "annotated", "with", "Molecule", "Software", "s", "annotation", "semantics", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/source/compatibility.go#L70-L99", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "source/source.go", "func_name": "getTargetsFromTargetAnnotation", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getTargetsFromTargetAnnotation gets endpoints from optional \"target\" annotation.\n// Returns empty endpoints array if none are found.", "docstring_tokens": ["getTargetsFromTargetAnnotation", "gets", "endpoints", "from", "optional", "target", "annotation", ".", "Returns", "empty", "endpoints", "array", "if", "none", "are", "found", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/source/source.go#L110-L124", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "source/source.go", "func_name": "suitableType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// suitableType returns the DNS resource record type suitable for the target.\n// In this case type A for IPs and type CNAME for everything else.", "docstring_tokens": ["suitableType", "returns", "the", "DNS", "resource", "record", "type", "suitable", "for", "the", "target", ".", "In", "this", "case", "type", "A", "for", "IPs", "and", "type", "CNAME", "for", "everything", "else", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/source/source.go#L128-L133", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "source/source.go", "func_name": "endpointsForHostname", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// endpointsForHostname returns the endpoint objects for each host-target combination.", "docstring_tokens": ["endpointsForHostname", "returns", "the", "endpoint", "objects", "for", "each", "host", "-", "target", "combination", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/source/source.go#L136-L176", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/dyn.go", "func_name": "NewDynProvider", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDynProvider initializes a new Dyn Provider.", "docstring_tokens": ["NewDynProvider", "initializes", "a", "new", "Dyn", "Provider", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/dyn.go#L143-L151", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/dyn.go", "func_name": "endpointToRecord", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// endpointToRecord puts the Target of an Endpoint in the correct field of DataBlock.\n// See DataBlock comments for more info", "docstring_tokens": ["endpointToRecord", "puts", "the", "Target", "of", "an", "Endpoint", "in", "the", "correct", "field", "of", "DataBlock", ".", "See", "DataBlock", "comments", "for", "more", "info"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/dyn.go#L305-L317", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/dyn.go", "func_name": "fetchAllRecordsInZone", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Use SOAP to fetch all records with a single call", "docstring_tokens": ["Use", "SOAP", "to", "fetch", "all", "records", "with", "a", "single", "call"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/dyn.go#L332-L395", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/dyn.go", "func_name": "zones", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// the zones we are allowed to touch. Currently only exact matches are considered, not all\n// zones with the given suffix", "docstring_tokens": ["the", "zones", "we", "are", "allowed", "to", "touch", ".", "Currently", "only", "exact", "matches", "are", "considered", "not", "all", "zones", "with", "the", "given", "suffix"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/dyn.go#L474-L476", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/dyn.go", "func_name": "replaceRecord", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// replaceRecord replaces all existing records pf the given type for the Endpoint.DNSName with 1 API call", "docstring_tokens": ["replaceRecord", "replaces", "all", "existing", "records", "pf", "the", "given", "type", "for", "the", "Endpoint", ".", "DNSName", "with", "1", "API", "call"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/dyn.go#L509-L522", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/dyn.go", "func_name": "commit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// commit commits all pending changes. It will always attempt to commit, if there are no", "docstring_tokens": ["commit", "commits", "all", "pending", "changes", ".", "It", "will", "always", "attempt", "to", "commit", "if", "there", "are", "no"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/dyn.go#L541-L585", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "source/multi_source.go", "func_name": "Endpoints", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Endpoints collects endpoints of all nested Sources and returns them in a single slice.", "docstring_tokens": ["Endpoints", "collects", "endpoints", "of", "all", "nested", "Sources", "and", "returns", "them", "in", "a", "single", "slice", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/source/multi_source.go#L27-L40", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/designate.go", "func_name": "newDesignateClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// factory function for the designateClientInterface", "docstring_tokens": ["factory", "function", "for", "the", "designateClientInterface"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/designate.go#L75-L81", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/designate.go", "func_name": "remapEnv", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// copies environment variables to new names without overwriting existing values", "docstring_tokens": ["copies", "environment", "variables", "to", "new", "names", "without", "overwriting", "existing", "values"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/designate.go#L84-L92", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/designate.go", "func_name": "createDesignateServiceClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// authenticate in OpenStack and obtain Designate service endpoint", "docstring_tokens": ["authenticate", "in", "OpenStack", "and", "obtain", "Designate", "service", "endpoint"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/designate.go#L120-L164", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/designate.go", "func_name": "ForEachZone", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ForEachZone calls handler for each zone managed by the Designate", "docstring_tokens": ["ForEachZone", "calls", "handler", "for", "each", "zone", "managed", "by", "the", "Designate"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/designate.go#L167-L184", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/designate.go", "func_name": "ForEachRecordSet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ForEachRecordSet calls handler for each recordset in the given DNS zone", "docstring_tokens": ["ForEachRecordSet", "calls", "handler", "for", "each", "recordset", "in", "the", "given", "DNS", "zone"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/designate.go#L187-L204", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/designate.go", "func_name": "CreateRecordSet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateRecordSet creates recordset in the given DNS zone", "docstring_tokens": ["CreateRecordSet", "creates", "recordset", "in", "the", "given", "DNS", "zone"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/designate.go#L207-L213", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/designate.go", "func_name": "UpdateRecordSet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateRecordSet updates recordset in the given DNS zone", "docstring_tokens": ["UpdateRecordSet", "updates", "recordset", "in", "the", "given", "DNS", "zone"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/designate.go#L216-L219", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/designate.go", "func_name": "DeleteRecordSet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteRecordSet deletes recordset in the given DNS zone", "docstring_tokens": ["DeleteRecordSet", "deletes", "recordset", "in", "the", "given", "DNS", "zone"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/designate.go#L222-L224", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/designate.go", "func_name": "NewDesignateProvider", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDesignateProvider is a factory function for OpenStack designate providers", "docstring_tokens": ["NewDesignateProvider", "is", "a", "factory", "function", "for", "OpenStack", "designate", "providers"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/designate.go#L236-L246", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/designate.go", "func_name": "canonicalizeDomainNames", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// converts domain names to FQDN", "docstring_tokens": ["converts", "domain", "names", "to", "FQDN"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/designate.go#L249-L258", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/designate.go", "func_name": "canonicalizeDomainName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// converts domain name to FQDN", "docstring_tokens": ["converts", "domain", "name", "to", "FQDN"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/designate.go#L261-L266", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/designate.go", "func_name": "getZones", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// returns ZoneID -> ZoneName mapping for zones that are managed by the Designate and match domain filter", "docstring_tokens": ["returns", "ZoneID", "-", ">", "ZoneName", "mapping", "for", "zones", "that", "are", "managed", "by", "the", "Designate", "and", "match", "domain", "filter"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/designate.go#L269-L288", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/designate.go", "func_name": "getHostZoneID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// finds best suitable DNS zone for the hostname", "docstring_tokens": ["finds", "best", "suitable", "DNS", "zone", "for", "the", "hostname"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/designate.go#L291-L307", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/designate.go", "func_name": "addEndpoint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// adds endpoint into recordset aggregation, loading original values from endpoint labels first", "docstring_tokens": ["adds", "endpoint", "into", "recordset", "aggregation", "loading", "original", "values", "from", "endpoint", "labels", "first"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/designate.go#L350-L379", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "source/gateway.go", "func_name": "NewIstioGatewaySource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewIstioGatewaySource creates a new gatewaySource with the given config.", "docstring_tokens": ["NewIstioGatewaySource", "creates", "a", "new", "gatewaySource", "with", "the", "given", "config", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/source/gateway.go#L52-L91", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "source/gateway.go", "func_name": "filterByAnnotations", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// filterByAnnotations filters a list of configs by a given annotation selector.", "docstring_tokens": ["filterByAnnotations", "filters", "a", "list", "of", "configs", "by", "a", "given", "annotation", "selector", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/source/gateway.go#L190-L218", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "source/gateway.go", "func_name": "endpointsFromGatewayConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// endpointsFromGatewayConfig extracts the endpoints from an Istio Gateway Config object", "docstring_tokens": ["endpointsFromGatewayConfig", "extracts", "the", "endpoints", "from", "an", "Istio", "Gateway", "Config", "object"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/source/gateway.go#L250-L289", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "endpoint/zz_generated.deepcopy.go", "func_name": "DeepCopy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSEndpoint.", "docstring_tokens": ["DeepCopy", "is", "an", "autogenerated", "deepcopy", "function", "copying", "the", "receiver", "creating", "a", "new", "DNSEndpoint", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/endpoint/zz_generated.deepcopy.go#L38-L45", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "endpoint/zz_generated.deepcopy.go", "func_name": "DeepCopy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSEndpointList.", "docstring_tokens": ["DeepCopy", "is", "an", "autogenerated", "deepcopy", "function", "copying", "the", "receiver", "creating", "a", "new", "DNSEndpointList", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/endpoint/zz_generated.deepcopy.go#L71-L78", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "endpoint/zz_generated.deepcopy.go", "func_name": "DeepCopy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSEndpointSpec.", "docstring_tokens": ["DeepCopy", "is", "an", "autogenerated", "deepcopy", "function", "copying", "the", "receiver", "creating", "a", "new", "DNSEndpointSpec", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/endpoint/zz_generated.deepcopy.go#L107-L114", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "endpoint/zz_generated.deepcopy.go", "func_name": "DeepCopy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSEndpointStatus.", "docstring_tokens": ["DeepCopy", "is", "an", "autogenerated", "deepcopy", "function", "copying", "the", "receiver", "creating", "a", "new", "DNSEndpointStatus", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/endpoint/zz_generated.deepcopy.go#L123-L130", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "endpoint/zz_generated.deepcopy.go", "func_name": "DeepCopy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Endpoint.", "docstring_tokens": ["DeepCopy", "is", "an", "autogenerated", "deepcopy", "function", "copying", "the", "receiver", "creating", "a", "new", "Endpoint", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/endpoint/zz_generated.deepcopy.go#L158-L165", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "endpoint/zz_generated.deepcopy.go", "func_name": "DeepCopy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Labels.", "docstring_tokens": ["DeepCopy", "is", "an", "autogenerated", "deepcopy", "function", "copying", "the", "receiver", "creating", "a", "new", "Labels", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/endpoint/zz_generated.deepcopy.go#L180-L187", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "endpoint/zz_generated.deepcopy.go", "func_name": "DeepCopy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderSpecific.", "docstring_tokens": ["DeepCopy", "is", "an", "autogenerated", "deepcopy", "function", "copying", "the", "receiver", "creating", "a", "new", "ProviderSpecific", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/endpoint/zz_generated.deepcopy.go#L202-L209", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "endpoint/zz_generated.deepcopy.go", "func_name": "DeepCopy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Targets.", "docstring_tokens": ["DeepCopy", "is", "an", "autogenerated", "deepcopy", "function", "copying", "the", "receiver", "creating", "a", "new", "Targets", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/endpoint/zz_generated.deepcopy.go#L222-L229", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/provider.go", "func_name": "ensureTrailingDot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ensureTrailingDot ensures that the hostname receives a trailing dot if it hasn't already.", "docstring_tokens": ["ensureTrailingDot", "ensures", "that", "the", "hostname", "receives", "a", "trailing", "dot", "if", "it", "hasn", "t", "already", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/provider.go#L34-L40", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "registry/noop.go", "func_name": "NewNoopRegistry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewNoopRegistry returns new NoopRegistry object", "docstring_tokens": ["NewNoopRegistry", "returns", "new", "NoopRegistry", "object"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/registry/noop.go#L31-L35", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "registry/noop.go", "func_name": "ApplyChanges", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ApplyChanges propagates changes to the dns provider", "docstring_tokens": ["ApplyChanges", "propagates", "changes", "to", "the", "dns", "provider"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/registry/noop.go#L43-L45", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "source/dedup_source.go", "func_name": "Endpoints", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Endpoints collects endpoints from its wrapped source and returns them without duplicates.", "docstring_tokens": ["Endpoints", "collects", "endpoints", "from", "its", "wrapped", "source", "and", "returns", "them", "without", "duplicates", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/source/dedup_source.go#L36-L58", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "source/fake.go", "func_name": "NewFakeSource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewFakeSource creates a new fakeSource with the given config.", "docstring_tokens": ["NewFakeSource", "creates", "a", "new", "fakeSource", "with", "the", "given", "config", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/source/fake.go#L47-L55", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "pkg/tlsutils/tlsconfig.go", "func_name": "CreateTLSConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateTLSConfig creates tls.Config instance from TLS parameters passed in environment variables with the given prefix", "docstring_tokens": ["CreateTLSConfig", "creates", "tls", ".", "Config", "instance", "from", "TLS", "parameters", "passed", "in", "environment", "variables", "with", "the", "given", "prefix"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/pkg/tlsutils/tlsconfig.go#L32-L44", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "registry/aws_sd_registry.go", "func_name": "NewAWSSDRegistry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewAWSSDRegistry returns implementation of registry for AWS SD", "docstring_tokens": ["NewAWSSDRegistry", "returns", "implementation", "of", "registry", "for", "AWS", "SD"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/registry/aws_sd_registry.go#L34-L42", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "registry/aws_sd_registry.go", "func_name": "ApplyChanges", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ApplyChanges filters out records not owned the External-DNS, additionally it adds the required label\n// inserted in the AWS SD instance as a CreateID field", "docstring_tokens": ["ApplyChanges", "filters", "out", "records", "not", "owned", "the", "External", "-", "DNS", "additionally", "it", "adds", "the", "required", "label", "inserted", "in", "the", "AWS", "SD", "instance", "as", "a", "CreateID", "field"], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/registry/aws_sd_registry.go#L67-L81", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/oci.go", "func_name": "LoadOCIConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadOCIConfig reads and parses the OCI ExternalDNS config file at the given\n// path.", "docstring_tokens": ["LoadOCIConfig", "reads", "and", "parses", "the", "OCI", "ExternalDNS", "config", "file", "at", "the", "given", "path", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/oci.go#L72-L83", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/oci.go", "func_name": "NewOCIProvider", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewOCIProvider initialises a new OCI DNS based Provider.", "docstring_tokens": ["NewOCIProvider", "initialises", "a", "new", "OCI", "DNS", "based", "Provider", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/oci.go#L86-L107", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/oci.go", "func_name": "ApplyChanges", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ApplyChanges applies a given set of changes to a given zone.", "docstring_tokens": ["ApplyChanges", "applies", "a", "given", "set", "of", "changes", "to", "a", "given", "zone", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/oci.go#L204-L250", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/oci.go", "func_name": "newRecordOperation", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newRecordOperation returns a RecordOperation based on a given endpoint.", "docstring_tokens": ["newRecordOperation", "returns", "a", "RecordOperation", "based", "on", "a", "given", "endpoint", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/oci.go#L253-L273", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/oci.go", "func_name": "operationsByZone", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// operationsByZone segments a slice of RecordOperations by their zone.", "docstring_tokens": ["operationsByZone", "segments", "a", "slice", "of", "RecordOperations", "by", "their", "zone", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/oci.go#L276-L301", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/azure.go", "func_name": "NewAzureProvider", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewAzureProvider creates a new Azure provider.\n//\n// Returns the provider or an error if a provider could not be created.", "docstring_tokens": ["NewAzureProvider", "creates", "a", "new", "Azure", "provider", ".", "Returns", "the", "provider", "or", "an", "error", "if", "a", "provider", "could", "not", "be", "created", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/azure.go#L80-L125", "partition": "valid"} +{"repo": "kubernetes-incubator/external-dns", "path": "provider/azure.go", "func_name": "getAccessToken", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getAccessToken retrieves Azure API access token.", "docstring_tokens": ["getAccessToken", "retrieves", "Azure", "API", "access", "token", "."], "sha": "6489dd469771baf3413aac94e1fccc643af13f30", "url": "https://github.com/kubernetes-incubator/external-dns/blob/6489dd469771baf3413aac94e1fccc643af13f30/provider/azure.go#L128-L160", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/virtualbox/disk.go", "func_name": "Create", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Make a boot2docker VM disk image.", "docstring_tokens": ["Make", "a", "boot2docker", "VM", "disk", "image", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/virtualbox/disk.go#L29-L40", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/virtualbox/disk.go", "func_name": "createDiskImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// createDiskImage makes a disk image at dest with the given size in MB. If r is\n// not nil, it will be read as a raw disk image to convert from.", "docstring_tokens": ["createDiskImage", "makes", "a", "disk", "image", "at", "dest", "with", "the", "given", "size", "in", "MB", ".", "If", "r", "is", "not", "nil", "it", "will", "be", "read", "as", "a", "raw", "disk", "image", "to", "convert", "from", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/virtualbox/disk.go#L44-L96", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/virtualbox/network.go", "func_name": "Save", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Save changes the configuration of the host-only network.", "docstring_tokens": ["Save", "changes", "the", "configuration", "of", "the", "host", "-", "only", "network", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/virtualbox/network.go#L60-L70", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/virtualbox/network.go", "func_name": "SaveIPv4", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SaveIPv4 changes the ipv4 configuration of the host-only network.", "docstring_tokens": ["SaveIPv4", "changes", "the", "ipv4", "configuration", "of", "the", "host", "-", "only", "network", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/virtualbox/network.go#L73-L85", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/virtualbox/network.go", "func_name": "createHostonlyAdapter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// createHostonlyAdapter creates a new host-only network.", "docstring_tokens": ["createHostonlyAdapter", "creates", "a", "new", "host", "-", "only", "network", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/virtualbox/network.go#L88-L104", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/virtualbox/network.go", "func_name": "listHostOnlyAdapters", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// listHostOnlyAdapters gets all host-only adapters in a map keyed by NetworkName.", "docstring_tokens": ["listHostOnlyAdapters", "gets", "all", "host", "-", "only", "adapters", "in", "a", "map", "keyed", "by", "NetworkName", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/virtualbox/network.go#L107-L164", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/virtualbox/network.go", "func_name": "removeOrphanDHCPServers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// removeOrphanDHCPServers removed the DHCP servers linked to no host-only adapter", "docstring_tokens": ["removeOrphanDHCPServers", "removed", "the", "DHCP", "servers", "linked", "to", "no", "host", "-", "only", "adapter"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/virtualbox/network.go#L245-L273", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/virtualbox/network.go", "func_name": "addHostOnlyDHCPServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// addHostOnlyDHCPServer adds a DHCP server to a host-only network.", "docstring_tokens": ["addHostOnlyDHCPServer", "adds", "a", "DHCP", "server", "to", "a", "host", "-", "only", "network", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/virtualbox/network.go#L276-L313", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/virtualbox/network.go", "func_name": "listDHCPServers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// listDHCPServers lists all DHCP server settings in a map keyed by DHCP.NetworkName.", "docstring_tokens": ["listDHCPServers", "lists", "all", "DHCP", "server", "settings", "in", "a", "map", "keyed", "by", "DHCP", ".", "NetworkName", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/virtualbox/network.go#L316-L350", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/virtualbox/network.go", "func_name": "checkIPNetCollision", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// checkIPNetCollision returns true if any host interfaces conflict with the host-only network mask passed as a parameter.\n// This works with IPv4 or IPv6 ip addresses.", "docstring_tokens": ["checkIPNetCollision", "returns", "true", "if", "any", "host", "interfaces", "conflict", "with", "the", "host", "-", "only", "network", "mask", "passed", "as", "a", "parameter", ".", "This", "works", "with", "IPv4", "or", "IPv6", "ip", "addresses", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/virtualbox/network.go#L398-L405", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/drivers/notsupported.go", "func_name": "NewDriverNotSupported", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDriverNotSupported creates a placeholder Driver that replaces\n// a driver that is not supported on a given platform. eg fusion on linux.", "docstring_tokens": ["NewDriverNotSupported", "creates", "a", "placeholder", "Driver", "that", "replaces", "a", "driver", "that", "is", "not", "supported", "on", "a", "given", "platform", ".", "eg", "fusion", "on", "linux", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/drivers/notsupported.go#L25-L33", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/drivers/rpc/client_driver.go", "func_name": "DriverName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DriverName returns the name of the driver", "docstring_tokens": ["DriverName", "returns", "the", "name", "of", "the", "driver"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/drivers/rpc/client_driver.go#L263-L270", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/drivers/drivers.go", "func_name": "MustBeRunning", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustBeRunning will return an error if the machine is not in a running state.", "docstring_tokens": ["MustBeRunning", "will", "return", "an", "error", "if", "the", "machine", "is", "not", "in", "a", "running", "state", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/drivers/drivers.go#L98-L109", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/generic/generic.go", "func_name": "NewDriver", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDriver creates and returns a new instance of the driver", "docstring_tokens": ["NewDriver", "creates", "and", "returns", "a", "new", "instance", "of", "the", "driver"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/generic/generic.go#L67-L75", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/amazonec2/amazonec2.go", "func_name": "migrateStringToSlice", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Support migrating single string Driver fields to slices.", "docstring_tokens": ["Support", "migrating", "single", "string", "Driver", "fields", "to", "slices", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/amazonec2/amazonec2.go#L559-L565", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/mcndockerclient/docker_client.go", "func_name": "DockerClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DockerClient creates a docker client for a given host.", "docstring_tokens": ["DockerClient", "creates", "a", "docker", "client", "for", "a", "given", "host", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/mcndockerclient/docker_client.go#L11-L23", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/mcndockerclient/docker_client.go", "func_name": "CreateContainer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateContainer creates a docker container.", "docstring_tokens": ["CreateContainer", "creates", "a", "docker", "container", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/mcndockerclient/docker_client.go#L26-L47", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/azureutil/cleanup.go", "func_name": "cleanupResourceIfExists", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// cleanupResourceIfExists checks if the resource exists, if it does and it\n// does not have any attached resources, then deletes the resource. If the\n// resource does not exist or is not eligible for cleanup, returns nil. If an\n// error is encountered, returns the error.", "docstring_tokens": ["cleanupResourceIfExists", "checks", "if", "the", "resource", "exists", "if", "it", "does", "and", "it", "does", "not", "have", "any", "attached", "resources", "then", "deletes", "the", "resource", ".", "If", "the", "resource", "does", "not", "exist", "or", "is", "not", "eligible", "for", "cleanup", "returns", "nil", ".", "If", "an", "error", "is", "encountered", "returns", "the", "error", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/azureutil/cleanup.go#L36-L54", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/exoscale/exoscale.go", "func_name": "NewDriver", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDriver creates a Driver with the specified machineName and storePath.", "docstring_tokens": ["NewDriver", "creates", "a", "Driver", "with", "the", "specified", "machineName", "and", "storePath", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/exoscale/exoscale.go#L136-L147", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/exoscale/exoscale.go", "func_name": "GetSSHUsername", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSSHUsername returns the username to use with SSH", "docstring_tokens": ["GetSSHUsername", "returns", "the", "username", "to", "use", "with", "SSH"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/exoscale/exoscale.go#L155-L181", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/exoscale/exoscale.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start starts the existing VM instance.", "docstring_tokens": ["Start", "starts", "the", "existing", "VM", "instance", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/exoscale/exoscale.go#L643-L650", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/exoscale/exoscale.go", "func_name": "Stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stop stops the existing VM instance.", "docstring_tokens": ["Stop", "stops", "the", "existing", "VM", "instance", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/exoscale/exoscale.go#L653-L660", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/exoscale/exoscale.go", "func_name": "Restart", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Restart reboots the existing VM instance.", "docstring_tokens": ["Restart", "reboots", "the", "existing", "VM", "instance", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/exoscale/exoscale.go#L663-L670", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/exoscale/exoscale.go", "func_name": "Remove", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Remove destroys the VM instance and the associated SSH key.", "docstring_tokens": ["Remove", "destroys", "the", "VM", "instance", "and", "the", "associated", "SSH", "key", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/exoscale/exoscale.go#L678-L700", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/exoscale/exoscale.go", "func_name": "getCloudInit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Build a cloud-init user data string that will install and run\n// docker.", "docstring_tokens": ["Build", "a", "cloud", "-", "init", "user", "data", "string", "that", "will", "install", "and", "run", "docker", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/exoscale/exoscale.go#L704-L711", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/cert/cert.go", "func_name": "GenerateCACertificate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GenerateCACertificate generates a new certificate authority from the specified org\n// and bit size and stores the resulting certificate and key file\n// in the arguments.", "docstring_tokens": ["GenerateCACertificate", "generates", "a", "new", "certificate", "authority", "from", "the", "specified", "org", "and", "bit", "size", "and", "stores", "the", "resulting", "certificate", "and", "key", "file", "in", "the", "arguments", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/cert/cert.go#L115-L154", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/cert/cert.go", "func_name": "GenerateCert", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GenerateCert generates a new certificate signed using the provided\n// certificate authority files and stores the result in the certificate\n// file and key provided. The provided host names are set to the\n// appropriate certificate fields.", "docstring_tokens": ["GenerateCert", "generates", "a", "new", "certificate", "signed", "using", "the", "provided", "certificate", "authority", "files", "and", "stores", "the", "result", "in", "the", "certificate", "file", "and", "key", "provided", ".", "The", "provided", "host", "names", "are", "set", "to", "the", "appropriate", "certificate", "fields", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/cert/cert.go#L160-L223", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/cert/cert.go", "func_name": "ReadTLSConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadTLSConfig reads the tls config for a machine.", "docstring_tokens": ["ReadTLSConfig", "reads", "the", "tls", "config", "for", "a", "machine", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/cert/cert.go#L226-L250", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/cert/cert.go", "func_name": "ValidateCertificate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidateCertificate validate the certificate installed on the vm.", "docstring_tokens": ["ValidateCertificate", "validate", "the", "certificate", "installed", "on", "the", "vm", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/cert/cert.go#L253-L269", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/virtualbox/vtx_intel.go", "func_name": "IsVTXDisabled", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsVTXDisabled checks if VT-x is disabled in the CPU.", "docstring_tokens": ["IsVTXDisabled", "checks", "if", "VT", "-", "x", "is", "disabled", "in", "the", "CPU", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/virtualbox/vtx_intel.go#L8-L14", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/virtualbox/vbm.go", "func_name": "NewVBoxManager", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewVBoxManager creates a VBoxManager instance.", "docstring_tokens": ["NewVBoxManager", "creates", "a", "VBoxManager", "instance", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/virtualbox/vbm.go#L52-L56", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/drivers/plugin/localbinary/plugin.go", "func_name": "driverPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// driverPath finds the path of a driver binary by its name.\n// + If the driver is a core driver, there is no separate driver binary. We reuse current binary if it's `docker-machine`\n// or we assume `docker-machine` is in the PATH.\n// + If the driver is NOT a core driver, then the separate binary must be in the PATH and it's name must be\n// `docker-machine-driver-driverName`", "docstring_tokens": ["driverPath", "finds", "the", "path", "of", "a", "driver", "binary", "by", "its", "name", ".", "+", "If", "the", "driver", "is", "a", "core", "driver", "there", "is", "no", "separate", "driver", "binary", ".", "We", "reuse", "current", "binary", "if", "it", "s", "docker", "-", "machine", "or", "we", "assume", "docker", "-", "machine", "is", "in", "the", "PATH", ".", "+", "If", "the", "driver", "is", "NOT", "a", "core", "driver", "then", "the", "separate", "binary", "must", "be", "in", "the", "PATH", "and", "it", "s", "name", "must", "be", "docker", "-", "machine", "-", "driver", "-", "driverName"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/drivers/plugin/localbinary/plugin.go#L100-L112", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/azureutil/auth.go", "func_name": "AuthenticateDeviceFlow", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AuthenticateDeviceFlow fetches a token from the local file cache or initiates a consent\n// flow and waits for token to be obtained. Obtained token is stored in a file cache for\n// future use and refreshing.", "docstring_tokens": ["AuthenticateDeviceFlow", "fetches", "a", "token", "from", "the", "local", "file", "cache", "or", "initiates", "a", "consent", "flow", "and", "waits", "for", "token", "to", "be", "obtained", ".", "Obtained", "token", "is", "stored", "in", "a", "file", "cache", "for", "future", "use", "and", "refreshing", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/azureutil/auth.go#L51-L121", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/azureutil/auth.go", "func_name": "AuthenticateServicePrincipal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AuthenticateServicePrincipal uses given service principal credentials to return a\n// service principal token. Generated token is not stored in a cache file or refreshed.", "docstring_tokens": ["AuthenticateServicePrincipal", "uses", "given", "service", "principal", "credentials", "to", "return", "a", "service", "principal", "token", ".", "Generated", "token", "is", "not", "stored", "in", "a", "cache", "file", "or", "refreshed", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/azureutil/auth.go#L125-L140", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/azureutil/auth.go", "func_name": "tokenFromFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// tokenFromFile returns a token from the specified file if it is found, otherwise\n// returns nil. Any error retrieving or creating the token is returned as an error.", "docstring_tokens": ["tokenFromFile", "returns", "a", "token", "from", "the", "specified", "file", "if", "it", "is", "found", "otherwise", "returns", "nil", ".", "Any", "error", "retrieving", "or", "creating", "the", "token", "is", "returned", "as", "an", "error", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/azureutil/auth.go#L144-L164", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/azureutil/auth.go", "func_name": "deviceFlowAuth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// deviceFlowAuth prints a message to the screen for user to take action to\n// consent application on a browser and in the meanwhile the authentication\n// endpoint is polled until user gives consent, denies or the flow times out.\n// Returned token must be saved.", "docstring_tokens": ["deviceFlowAuth", "prints", "a", "message", "to", "the", "screen", "for", "user", "to", "take", "action", "to", "consent", "application", "on", "a", "browser", "and", "in", "the", "meanwhile", "the", "authentication", "endpoint", "is", "polled", "until", "user", "gives", "consent", "denies", "or", "the", "flow", "times", "out", ".", "Returned", "token", "must", "be", "saved", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/azureutil/auth.go#L170-L195", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/azureutil/auth.go", "func_name": "tokenCachePath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// tokenCachePath returns the full path the OAuth 2.0 token should be saved at\n// for given tenant ID.", "docstring_tokens": ["tokenCachePath", "returns", "the", "full", "path", "the", "OAuth", "2", ".", "0", "token", "should", "be", "saved", "at", "for", "given", "tenant", "ID", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/azureutil/auth.go#L204-L206", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/azureutil/auth.go", "func_name": "tenantIDPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// tenantIDPath returns the full path the tenant ID for the given subscription\n// should be saved at.f", "docstring_tokens": ["tenantIDPath", "returns", "the", "full", "path", "the", "tenant", "ID", "for", "the", "given", "subscription", "should", "be", "saved", "at", ".", "f"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/azureutil/auth.go#L210-L212", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/azureutil/auth.go", "func_name": "mkTokenCallback", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// mkTokenCallback returns a callback function that can be used to save the\n// token initially or register to the Azure SDK to be called when the token is\n// refreshed.", "docstring_tokens": ["mkTokenCallback", "returns", "a", "callback", "function", "that", "can", "be", "used", "to", "save", "the", "token", "initially", "or", "register", "to", "the", "Azure", "SDK", "to", "be", "called", "when", "the", "token", "is", "refreshed", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/azureutil/auth.go#L217-L225", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/log/fmt_machine_logger.go", "func_name": "NewFmtMachineLogger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewFmtMachineLogger creates a MachineLogger implementation used by the drivers", "docstring_tokens": ["NewFmtMachineLogger", "creates", "a", "MachineLogger", "implementation", "used", "by", "the", "drivers"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/log/fmt_machine_logger.go#L17-L24", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/google/compute_util.go", "func_name": "newComputeUtil", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewComputeUtil creates and initializes a ComputeUtil.", "docstring_tokens": ["NewComputeUtil", "creates", "and", "initializes", "a", "ComputeUtil", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/google/compute_util.go#L52-L82", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/google/compute_util.go", "func_name": "disk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// disk returns the persistent disk attached to the vm.", "docstring_tokens": ["disk", "returns", "the", "persistent", "disk", "attached", "to", "the", "vm", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/google/compute_util.go#L93-L95", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/google/compute_util.go", "func_name": "deleteDisk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// deleteDisk deletes the persistent disk.", "docstring_tokens": ["deleteDisk", "deletes", "the", "persistent", "disk", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/google/compute_util.go#L98-L112", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/google/compute_util.go", "func_name": "staticAddress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// staticAddress returns the external static IP address.", "docstring_tokens": ["staticAddress", "returns", "the", "external", "static", "IP", "address", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/google/compute_util.go#L115-L133", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/google/compute_util.go", "func_name": "openFirewallPorts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// openFirewallPorts configures the firewall to open docker and swarm ports.", "docstring_tokens": ["openFirewallPorts", "configures", "the", "firewall", "to", "open", "docker", "and", "swarm", "ports", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/google/compute_util.go#L184-L228", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/google/compute_util.go", "func_name": "instance", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// instance retrieves the instance.", "docstring_tokens": ["instance", "retrieves", "the", "instance", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/google/compute_util.go#L231-L233", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/google/compute_util.go", "func_name": "configureInstance", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// configureInstance configures an existing instance for use with Docker Machine.", "docstring_tokens": ["configureInstance", "configures", "an", "existing", "instance", "for", "use", "with", "Docker", "Machine", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/google/compute_util.go#L331-L344", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/google/compute_util.go", "func_name": "addFirewallTag", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// addFirewallTag adds a tag to the instance to match the firewall rule.", "docstring_tokens": ["addFirewallTag", "adds", "a", "tag", "to", "the", "instance", "to", "match", "the", "firewall", "rule", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/google/compute_util.go#L347-L365", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/google/compute_util.go", "func_name": "uploadSSHKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// uploadSSHKey updates the instance metadata with the given ssh key.", "docstring_tokens": ["uploadSSHKey", "updates", "the", "instance", "metadata", "with", "the", "given", "ssh", "key", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/google/compute_util.go#L368-L389", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/google/compute_util.go", "func_name": "parseTags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseTags computes the tags for the instance.", "docstring_tokens": ["parseTags", "computes", "the", "tags", "for", "the", "instance", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/google/compute_util.go#L392-L400", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/google/compute_util.go", "func_name": "startInstance", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// startInstance starts the instance.", "docstring_tokens": ["startInstance", "starts", "the", "instance", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/google/compute_util.go#L426-L434", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/google/compute_util.go", "func_name": "waitForOp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// waitForOp waits for the operation to finish.", "docstring_tokens": ["waitForOp", "waits", "for", "the", "operation", "to", "finish", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/google/compute_util.go#L437-L454", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/google/compute_util.go", "func_name": "waitForRegionalOp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// waitForRegionalOp waits for the regional operation to finish.", "docstring_tokens": ["waitForRegionalOp", "waits", "for", "the", "regional", "operation", "to", "finish", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/google/compute_util.go#L457-L461", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/google/compute_util.go", "func_name": "waitForGlobalOp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// waitForGlobalOp waits for the global operation to finish.", "docstring_tokens": ["waitForGlobalOp", "waits", "for", "the", "global", "operation", "to", "finish", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/google/compute_util.go#L464-L468", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/google/compute_util.go", "func_name": "ip", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ip retrieves and returns the external IP address of the instance.", "docstring_tokens": ["ip", "retrieves", "and", "returns", "the", "external", "IP", "address", "of", "the", "instance", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/google/compute_util.go#L471-L482", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/virtualbox/virtualbox_windows.go", "func_name": "cmdOutput", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// cmdOutput runs a shell command and returns its output.", "docstring_tokens": ["cmdOutput", "runs", "a", "shell", "command", "and", "returns", "its", "output", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/virtualbox/virtualbox_windows.go#L16-L28", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/vmwarefusion/vmrun_darwin.go", "func_name": "setVmwareCmd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// detect the vmrun and vmware-vdiskmanager cmds' path if needed", "docstring_tokens": ["detect", "the", "vmrun", "and", "vmware", "-", "vdiskmanager", "cmds", "path", "if", "needed"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/vmwarefusion/vmrun_darwin.go#L32-L37", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/azureutil/azureutil.go", "func_name": "RegisterResourceProviders", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterResourceProviders registers current subscription to the specified\n// resource provider namespaces if they are not already registered. Namespaces\n// are case-insensitive.", "docstring_tokens": ["RegisterResourceProviders", "registers", "current", "subscription", "to", "the", "specified", "resource", "provider", "namespaces", "if", "they", "are", "not", "already", "registered", ".", "Namespaces", "are", "case", "-", "insensitive", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/azureutil/azureutil.go#L58-L90", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/azureutil/azureutil.go", "func_name": "CreateResourceGroup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateResourceGroup creates a Resource Group if not exists", "docstring_tokens": ["CreateResourceGroup", "creates", "a", "Resource", "Group", "if", "not", "exists"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/azureutil/azureutil.go#L93-L109", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/azureutil/azureutil.go", "func_name": "CleanupVirtualNetworkIfExists", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CleanupVirtualNetworkIfExists removes a subnet if there are no subnets\n// attached to it. Note that this method is not safe for multiple concurrent\n// writers, in case of races, deployment of a machine could fail or resource\n// might not be cleaned up.", "docstring_tokens": ["CleanupVirtualNetworkIfExists", "removes", "a", "subnet", "if", "there", "are", "no", "subnets", "attached", "to", "it", ".", "Note", "that", "this", "method", "is", "not", "safe", "for", "multiple", "concurrent", "writers", "in", "case", "of", "races", "deployment", "of", "a", "machine", "could", "fail", "or", "resource", "might", "not", "be", "cleaned", "up", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/azureutil/azureutil.go#L227-L229", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/azureutil/azureutil.go", "func_name": "CreateSubnet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateSubnet creates or updates a subnet if it does not already exist.", "docstring_tokens": ["CreateSubnet", "creates", "or", "updates", "a", "subnet", "if", "it", "does", "not", "already", "exist", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/azureutil/azureutil.go#L236-L269", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/azureutil/azureutil.go", "func_name": "CleanupAvailabilitySetIfExists", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CleanupAvailabilitySetIfExists removes an availability set if there are no\n// virtual machines attached to it. Note that this method is not safe for\n// multiple concurrent writers, in case of races, deployment of a machine could\n// fail or resource might not be cleaned up.", "docstring_tokens": ["CleanupAvailabilitySetIfExists", "removes", "an", "availability", "set", "if", "there", "are", "no", "virtual", "machines", "attached", "to", "it", ".", "Note", "that", "this", "method", "is", "not", "safe", "for", "multiple", "concurrent", "writers", "in", "case", "of", "races", "deployment", "of", "a", "machine", "could", "fail", "or", "resource", "might", "not", "be", "cleaned", "up", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/azureutil/azureutil.go#L609-L611", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/azureutil/azureutil.go", "func_name": "GetPublicIPAddress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPublicIPAddress attempts to get public IP address from the Public IP\n// resource. If IP address is not allocated yet, returns empty string. If\n// useFqdn is set to true, the a FQDN hostname will be returned.", "docstring_tokens": ["GetPublicIPAddress", "attempts", "to", "get", "public", "IP", "address", "from", "the", "Public", "IP", "resource", ".", "If", "IP", "address", "is", "not", "allocated", "yet", "returns", "empty", "string", ".", "If", "useFqdn", "is", "set", "to", "true", "the", "a", "FQDN", "hostname", "will", "be", "returned", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/azureutil/azureutil.go#L616-L636", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/azureutil/azureutil.go", "func_name": "GetPrivateIPAddress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPrivateIPAddress attempts to retrieve private IP address of the specified\n// network interface name. If IP address is not allocated yet, returns empty\n// string.", "docstring_tokens": ["GetPrivateIPAddress", "attempts", "to", "retrieve", "private", "IP", "address", "of", "the", "specified", "network", "interface", "name", ".", "If", "IP", "address", "is", "not", "allocated", "yet", "returns", "empty", "string", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/azureutil/azureutil.go#L641-L654", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/azureutil/azureutil.go", "func_name": "deleteResourceIfExists", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// deleteResourceIfExists is an utility method to determine if a resource exists\n// from the error returned from its Get response. If so, deletes it. name is\n// used only for logging purposes.", "docstring_tokens": ["deleteResourceIfExists", "is", "an", "utility", "method", "to", "determine", "if", "a", "resource", "exists", "from", "the", "error", "returned", "from", "its", "Get", "response", ".", "If", "so", "deletes", "it", ".", "name", "is", "used", "only", "for", "logging", "purposes", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/azureutil/azureutil.go#L689-L701", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/azureutil/azureutil.go", "func_name": "waitVMPowerState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// waitVMPowerState polls the Virtual Machine instance view until it reaches the\n// specified goal power state or times out. If checking for virtual machine\n// state fails or waiting times out, an error is returned.", "docstring_tokens": ["waitVMPowerState", "polls", "the", "Virtual", "Machine", "instance", "view", "until", "it", "reaches", "the", "specified", "goal", "power", "state", "or", "times", "out", ".", "If", "checking", "for", "virtual", "machine", "state", "fails", "or", "waiting", "times", "out", "an", "error", "is", "returned", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/azureutil/azureutil.go#L706-L757", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/azureutil/azureutil.go", "func_name": "checkResourceExistsFromError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// checkExistsFromError inspects an error and returns a true if err is nil,\n// false if error is an autorest.Error with StatusCode=404 and will return the\n// error back if error is another status code or another type of error.", "docstring_tokens": ["checkExistsFromError", "inspects", "an", "error", "and", "returns", "a", "true", "if", "err", "is", "nil", "false", "if", "error", "is", "an", "autorest", ".", "Error", "with", "StatusCode", "=", "404", "and", "will", "return", "the", "error", "back", "if", "error", "is", "another", "status", "code", "or", "another", "type", "of", "error", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/azureutil/azureutil.go#L762-L771", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/azureutil/azureutil.go", "func_name": "osDiskStorageBlobURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// osDiskStorageBlobURL gives the full url of the VHD blob where the OS disk for\n// the given VM should be stored.", "docstring_tokens": ["osDiskStorageBlobURL", "gives", "the", "full", "url", "of", "the", "VHD", "blob", "where", "the", "OS", "disk", "for", "the", "given", "VM", "should", "be", "stored", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/azureutil/azureutil.go#L775-L779", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/azureutil/azureutil.go", "func_name": "osDiskStorageContainerURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// osDiskStorageContainerURL crafts a URL with a trailing slash pointing\n// to the full Azure Blob Container URL for given VM name.", "docstring_tokens": ["osDiskStorageContainerURL", "crafts", "a", "URL", "with", "a", "trailing", "slash", "pointing", "to", "the", "full", "Azure", "Blob", "Container", "URL", "for", "given", "VM", "name", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/azureutil/azureutil.go#L787-L789", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/ssh/keys.go", "func_name": "NewKeyPair", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewKeyPair generates a new SSH keypair\n// This will return a private & public key encoded as DER.", "docstring_tokens": ["NewKeyPair", "generates", "a", "new", "SSH", "keypair", "This", "will", "return", "a", "private", "&", "public", "key", "encoded", "as", "DER", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/ssh/keys.go#L33-L54", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/ssh/keys.go", "func_name": "Fingerprint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fingerprint calculates the fingerprint of the public key", "docstring_tokens": ["Fingerprint", "calculates", "the", "fingerprint", "of", "the", "public", "key"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/ssh/keys.go#L96-L103", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/ssh/keys.go", "func_name": "GenerateSSHKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GenerateSSHKey generates SSH keypair based on path of the private key\n// The public key would be generated to the same path with \".pub\" added", "docstring_tokens": ["GenerateSSHKey", "generates", "SSH", "keypair", "based", "on", "path", "of", "the", "private", "key", "The", "public", "key", "would", "be", "generated", "to", "the", "same", "path", "with", ".", "pub", "added"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/ssh/keys.go#L107-L124", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/azureutil/tenantid.go", "func_name": "loadOrFindTenantID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// loadOrFindTenantID figures out the AAD tenant ID of the subscription by first\n// looking at the cache file, if not exists, makes a network call to load it and\n// cache it for future use.", "docstring_tokens": ["loadOrFindTenantID", "figures", "out", "the", "AAD", "tenant", "ID", "of", "the", "subscription", "by", "first", "looking", "at", "the", "cache", "file", "if", "not", "exists", "makes", "a", "network", "call", "to", "load", "it", "and", "cache", "it", "for", "future", "use", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/azureutil/tenantid.go#L21-L58", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/azureutil/tenantid.go", "func_name": "findTenantID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// findTenantID figures out the AAD tenant ID of the subscription by making an\n// unauthenticated request to the Get Subscription Details endpoint and parses\n// the value from WWW-Authenticate header.", "docstring_tokens": ["findTenantID", "figures", "out", "the", "AAD", "tenant", "ID", "of", "the", "subscription", "by", "making", "an", "unauthenticated", "request", "to", "the", "Get", "Subscription", "Details", "endpoint", "and", "parses", "the", "value", "from", "WWW", "-", "Authenticate", "header", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/azureutil/tenantid.go#L63-L92", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/azureutil/tenantid.go", "func_name": "saveTenantID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// saveTenantID performs an atomic write to the path with given tenantID contents.", "docstring_tokens": ["saveTenantID", "performs", "an", "atomic", "write", "to", "the", "path", "with", "given", "tenantID", "contents", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/azureutil/tenantid.go#L95-L123", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/crashreport/crash_report.go", "func_name": "Send", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Send sends a crash report to bugsnag via an http call.", "docstring_tokens": ["Send", "sends", "a", "crash", "report", "to", "bugsnag", "via", "an", "http", "call", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/crashreport/crash_report.go#L64-L104", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/drivers/serial.go", "func_name": "Create", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create a host using the driver's config", "docstring_tokens": ["Create", "a", "host", "using", "the", "driver", "s", "config"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/drivers/serial.go#L40-L44", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/drivers/serial.go", "func_name": "DriverName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DriverName returns the name of the driver as it is registered", "docstring_tokens": ["DriverName", "returns", "the", "name", "of", "the", "driver", "as", "it", "is", "registered"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/drivers/serial.go#L47-L51", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/drivers/serial.go", "func_name": "GetCreateFlags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCreateFlags returns the mcnflag.Flag slice representing the flags\n// that can be set, their descriptions and defaults.", "docstring_tokens": ["GetCreateFlags", "returns", "the", "mcnflag", ".", "Flag", "slice", "representing", "the", "flags", "that", "can", "be", "set", "their", "descriptions", "and", "defaults", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/drivers/serial.go#L55-L59", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/drivers/serial.go", "func_name": "GetMachineName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMachineName returns the name of the machine", "docstring_tokens": ["GetMachineName", "returns", "the", "name", "of", "the", "machine"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/drivers/serial.go#L70-L74", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/drivers/serial.go", "func_name": "GetSSHHostname", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSSHHostname returns hostname for use with ssh", "docstring_tokens": ["GetSSHHostname", "returns", "hostname", "for", "use", "with", "ssh"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/drivers/serial.go#L77-L81", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/drivers/serial.go", "func_name": "GetSSHKeyPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSSHKeyPath returns key path for use with ssh", "docstring_tokens": ["GetSSHKeyPath", "returns", "key", "path", "for", "use", "with", "ssh"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/drivers/serial.go#L84-L88", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/drivers/serial.go", "func_name": "GetSSHUsername", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSSHUsername returns username for use with ssh", "docstring_tokens": ["GetSSHUsername", "returns", "username", "for", "use", "with", "ssh"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/drivers/serial.go#L98-L102", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/drivers/serial.go", "func_name": "Kill", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Kill stops a host forcefully", "docstring_tokens": ["Kill", "stops", "a", "host", "forcefully"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/drivers/serial.go#L120-L124", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/drivers/serial.go", "func_name": "Remove", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Remove a host", "docstring_tokens": ["Remove", "a", "host"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/drivers/serial.go#L134-L138", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/drivers/serial.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start a host", "docstring_tokens": ["Start", "a", "host"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/drivers/serial.go#L157-L161", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/drivers/serial.go", "func_name": "Stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stop a host gracefully", "docstring_tokens": ["Stop", "a", "host", "gracefully"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/drivers/serial.go#L164-L168", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/host/migrate_v0_v1.go", "func_name": "MigrateHostV0ToHostV1", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// In the 0.1.0 => 0.2.0 transition, the JSON representation of\n// machines changed from a \"flat\" to a more \"nested\" structure\n// for various options and configuration settings. To preserve\n// compatibility with existing machines, these migration functions\n// have been introduced. They preserve backwards compat at the expense\n// of some duplicated information.\n// MigrateHostV0ToHostV1 validates host config and modifies if needed\n// this is used for configuration updates", "docstring_tokens": ["In", "the", "0", ".", "1", ".", "0", "=", ">", "0", ".", "2", ".", "0", "transition", "the", "JSON", "representation", "of", "machines", "changed", "from", "a", "flat", "to", "a", "more", "nested", "structure", "for", "various", "options", "and", "configuration", "settings", ".", "To", "preserve", "compatibility", "with", "existing", "machines", "these", "migration", "functions", "have", "been", "introduced", ".", "They", "preserve", "backwards", "compat", "at", "the", "expense", "of", "some", "duplicated", "information", ".", "MigrateHostV0ToHostV1", "validates", "host", "config", "and", "modifies", "if", "needed", "this", "is", "used", "for", "configuration", "updates"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/host/migrate_v0_v1.go#L18-L49", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/host/migrate_v0_v1.go", "func_name": "MigrateHostMetadataV0ToHostMetadataV1", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MigrateHostMetadataV0ToHostMetadataV1 fills nested host metadata and modifies if needed\n// this is used for configuration updates", "docstring_tokens": ["MigrateHostMetadataV0ToHostMetadataV1", "fills", "nested", "host", "metadata", "and", "modifies", "if", "needed", "this", "is", "used", "for", "configuration", "updates"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/host/migrate_v0_v1.go#L53-L73", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/shell/shell_windows.go", "func_name": "getNameAndItsPpid", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getNameAndItsPpid returns the exe file name its parent process id.", "docstring_tokens": ["getNameAndItsPpid", "returns", "the", "exe", "file", "name", "its", "parent", "process", "id", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/shell/shell_windows.go#L41-L49", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/google/google.go", "func_name": "NewDriver", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDriver creates a Driver with the specified storePath.", "docstring_tokens": ["NewDriver", "creates", "a", "Driver", "with", "the", "specified", "storePath", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/google/google.go#L159-L176", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/google/google.go", "func_name": "SetConfigFromFlags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetConfigFromFlags initializes the driver based on the command line flags.", "docstring_tokens": ["SetConfigFromFlags", "initializes", "the", "driver", "based", "on", "the", "command", "line", "flags", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/google/google.go#L197-L227", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/google/google.go", "func_name": "PreCreateCheck", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PreCreateCheck is called to enforce pre-creation steps", "docstring_tokens": ["PreCreateCheck", "is", "called", "to", "enforce", "pre", "-", "creation", "steps"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/google/google.go#L230-L260", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/google/google.go", "func_name": "Create", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create creates a GCE VM instance acting as a docker host.", "docstring_tokens": ["Create", "creates", "a", "GCE", "VM", "instance", "acting", "as", "a", "docker", "host", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/google/google.go#L263-L285", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/google/google.go", "func_name": "GetIP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetIP returns the IP address of the GCE instance.", "docstring_tokens": ["GetIP", "returns", "the", "IP", "address", "of", "the", "GCE", "instance", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/google/google.go#L298-L313", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/google/google.go", "func_name": "GetState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetState returns a docker.hosts.state.State value representing the current state of the host.", "docstring_tokens": ["GetState", "returns", "a", "docker", ".", "hosts", ".", "state", ".", "State", "value", "representing", "the", "current", "state", "of", "the", "host", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/google/google.go#L316-L342", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/google/google.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start starts an existing GCE instance or create an instance with an existing disk.", "docstring_tokens": ["Start", "starts", "an", "existing", "GCE", "instance", "or", "create", "an", "instance", "with", "an", "existing", "disk", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/google/google.go#L345-L370", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/google/google.go", "func_name": "Stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stop stops an existing GCE instance.", "docstring_tokens": ["Stop", "stops", "an", "existing", "GCE", "instance", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/google/google.go#L373-L385", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/google/google.go", "func_name": "Remove", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Remove deletes the GCE instance and the disk.", "docstring_tokens": ["Remove", "deletes", "the", "GCE", "instance", "and", "the", "disk", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/google/google.go#L402-L425", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/azure.go", "func_name": "NewDriver", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDriver returns a new driver instance.", "docstring_tokens": ["NewDriver", "returns", "a", "new", "driver", "instance", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/azure.go#L101-L114", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/azure.go", "func_name": "SetConfigFromFlags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetConfigFromFlags initializes driver values from the command line values\n// and checks if the arguments have values.", "docstring_tokens": ["SetConfigFromFlags", "initializes", "driver", "values", "from", "the", "command", "line", "values", "and", "checks", "if", "the", "arguments", "have", "values", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/azure.go#L241-L289", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/azure.go", "func_name": "PreCreateCheck", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PreCreateCheck validates if driver values are valid to create the machine.", "docstring_tokens": ["PreCreateCheck", "validates", "if", "driver", "values", "are", "valid", "to", "create", "the", "machine", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/azure.go#L295-L338", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/azure.go", "func_name": "Create", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create creates the virtual machine.", "docstring_tokens": ["Create", "creates", "the", "virtual", "machine", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/azure.go#L341-L396", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/azure.go", "func_name": "Remove", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Remove deletes the virtual machine and resources associated to it.", "docstring_tokens": ["Remove", "deletes", "the", "virtual", "machine", "and", "resources", "associated", "to", "it", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/azure.go#L399-L436", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/azure.go", "func_name": "GetIP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetIP returns public IP address or hostname of the machine instance.", "docstring_tokens": ["GetIP", "returns", "public", "IP", "address", "or", "hostname", "of", "the", "machine", "instance", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/azure.go#L439-L453", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/azure.go", "func_name": "GetURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetURL returns a socket address to connect to Docker engine of the machine\n// instance.", "docstring_tokens": ["GetURL", "returns", "a", "socket", "address", "to", "connect", "to", "Docker", "engine", "of", "the", "machine", "instance", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/azure.go#L462-L480", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/azure.go", "func_name": "GetState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetState returns the state of the virtual machine role instance.", "docstring_tokens": ["GetState", "returns", "the", "state", "of", "the", "virtual", "machine", "role", "instance", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/azure.go#L483-L502", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/azure.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start issues a power on for the virtual machine instance.", "docstring_tokens": ["Start", "issues", "a", "power", "on", "for", "the", "virtual", "machine", "instance", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/azure.go#L505-L515", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/azure.go", "func_name": "Stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stop issues a power off for the virtual machine instance.", "docstring_tokens": ["Stop", "issues", "a", "power", "off", "for", "the", "virtual", "machine", "instance", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/azure.go#L518-L530", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/azure.go", "func_name": "Restart", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Restart reboots the virtual machine instance.", "docstring_tokens": ["Restart", "reboots", "the", "virtual", "machine", "instance", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/azure.go#L533-L546", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/examples/main.go", "func_name": "create", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sample Virtualbox create independent of Machine CLI.", "docstring_tokens": ["Sample", "Virtualbox", "create", "independent", "of", "Machine", "CLI", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/examples/main.go#L21-L66", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/examples/main.go", "func_name": "streaming", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Streaming the output of an SSH session in virtualbox.", "docstring_tokens": ["Streaming", "the", "output", "of", "an", "SSH", "session", "in", "virtualbox", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/examples/main.go#L69-L130", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/hyperv/hyperv.go", "func_name": "NewDriver", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDriver creates a new Hyper-v driver with default settings.", "docstring_tokens": ["NewDriver", "creates", "a", "new", "Hyper", "-", "v", "driver", "with", "default", "settings", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/hyperv/hyperv.go#L38-L49", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/hyperv/hyperv.go", "func_name": "waitForIP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// waitForIP waits until the host has a valid IP", "docstring_tokens": ["waitForIP", "waits", "until", "the", "host", "has", "a", "valid", "IP"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/hyperv/hyperv.go#L313-L324", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/hyperv/hyperv.go", "func_name": "waitStopped", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// waitStopped waits until the host is stopped", "docstring_tokens": ["waitStopped", "waits", "until", "the", "host", "is", "stopped"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/hyperv/hyperv.go#L327-L342", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/hyperv/hyperv.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start starts an host", "docstring_tokens": ["Start", "starts", "an", "host"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/hyperv/hyperv.go#L345-L358", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/hyperv/hyperv.go", "func_name": "Stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stop stops an host", "docstring_tokens": ["Stop", "stops", "an", "host"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/hyperv/hyperv.go#L361-L373", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/hyperv/hyperv.go", "func_name": "Remove", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Remove removes an host", "docstring_tokens": ["Remove", "removes", "an", "host"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/hyperv/hyperv.go#L376-L389", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/hyperv/hyperv.go", "func_name": "generateDiskImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// generateDiskImage creates a small fixed vhd, put the tar in, convert to dynamic, then resize", "docstring_tokens": ["generateDiskImage", "creates", "a", "small", "fixed", "vhd", "put", "the", "tar", "in", "convert", "to", "dynamic", "then", "resize"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/hyperv/hyperv.go#L443-L492", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/drivers/base.go", "func_name": "GetIP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetIP returns the ip", "docstring_tokens": ["GetIP", "returns", "the", "ip"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/drivers/base.go#L39-L44", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/drivers/base.go", "func_name": "GetSSHKeyPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSSHKeyPath returns the ssh key path", "docstring_tokens": ["GetSSHKeyPath", "returns", "the", "ssh", "key", "path"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/drivers/base.go#L47-L52", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/drivers/base.go", "func_name": "GetSSHPort", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSSHPort returns the ssh port, 22 if not specified", "docstring_tokens": ["GetSSHPort", "returns", "the", "ssh", "port", "22", "if", "not", "specified"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/drivers/base.go#L55-L61", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/drivers/base.go", "func_name": "GetSSHUsername", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSSHUsername returns the ssh user name, root if not specified", "docstring_tokens": ["GetSSHUsername", "returns", "the", "ssh", "user", "name", "root", "if", "not", "specified"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/drivers/base.go#L64-L69", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/drivers/base.go", "func_name": "ResolveStorePath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ResolveStorePath returns the store path where the machine is", "docstring_tokens": ["ResolveStorePath", "returns", "the", "store", "path", "where", "the", "machine", "is"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/drivers/base.go#L77-L79", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/drivers/base.go", "func_name": "SetSwarmConfigFromFlags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetSwarmConfigFromFlags configures the driver for swarm", "docstring_tokens": ["SetSwarmConfigFromFlags", "configures", "the", "driver", "for", "swarm"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/drivers/base.go#L82-L86", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/virtualbox/vtx.go", "func_name": "IsVTXDisabledInTheVM", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsVTXDisabledInTheVM checks if VT-X is disabled in the started vm.", "docstring_tokens": ["IsVTXDisabledInTheVM", "checks", "if", "VT", "-", "X", "is", "disabled", "in", "the", "started", "vm", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/virtualbox/vtx.go#L6-L28", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/mcnutils/b2d.go", "func_name": "getReleaseTag", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getReleaseTag gets the release tag of Boot2Docker from apiURL.", "docstring_tokens": ["getReleaseTag", "gets", "the", "release", "tag", "of", "Boot2Docker", "from", "apiURL", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/mcnutils/b2d.go#L99-L153", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/mcnutils/b2d.go", "func_name": "getReleaseURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getReleaseURL gets the latest release URL of Boot2Docker.", "docstring_tokens": ["getReleaseURL", "gets", "the", "latest", "release", "URL", "of", "Boot2Docker", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/mcnutils/b2d.go#L156-L192", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/mcnutils/b2d.go", "func_name": "version", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// version scans the volume ID in b and returns its version tag.", "docstring_tokens": ["version", "scans", "the", "volume", "ID", "in", "b", "and", "returns", "its", "version", "tag", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/mcnutils/b2d.go#L291-L321", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/mcnutils/b2d.go", "func_name": "DownloadISO", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DownloadISO downloads boot2docker ISO image for the given tag and save it at dest.", "docstring_tokens": ["DownloadISO", "downloads", "boot2docker", "ISO", "image", "for", "the", "given", "tag", "and", "save", "it", "at", "dest", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/mcnutils/b2d.go#L355-L358", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/rackspace/client.go", "func_name": "Authenticate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Authenticate creates a Rackspace-specific Gophercloud client.", "docstring_tokens": ["Authenticate", "creates", "a", "Rackspace", "-", "specific", "Gophercloud", "client", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/rackspace/client.go#L24-L54", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/rackspace/client.go", "func_name": "GetInstanceIPAddresses", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetInstanceIPAddresses can be short-circuited with the server's AccessIPv4Addr on Rackspace.", "docstring_tokens": ["GetInstanceIPAddresses", "can", "be", "short", "-", "circuited", "with", "the", "server", "s", "AccessIPv4Addr", "on", "Rackspace", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/rackspace/client.go#L67-L79", "partition": "valid"} +{"repo": "docker/machine", "path": "commands/commands.go", "func_name": "targetHost", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// targetHost returns a specific host name if one is indicated by the first CLI\n// arg, or the default host name if no host is specified.", "docstring_tokens": ["targetHost", "returns", "a", "specific", "host", "name", "if", "one", "is", "indicated", "by", "the", "first", "CLI", "arg", "or", "the", "default", "host", "name", "if", "no", "host", "is", "specified", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/commands/commands.go#L80-L95", "partition": "valid"} +{"repo": "docker/machine", "path": "commands/commands.go", "func_name": "machineCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// machineCommand maps the command name to the corresponding machine command.\n// We run commands concurrently and communicate back an error if there was one.", "docstring_tokens": ["machineCommand", "maps", "the", "command", "name", "to", "the", "corresponding", "machine", "command", ".", "We", "run", "commands", "concurrently", "and", "communicate", "back", "an", "error", "if", "there", "was", "one", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/commands/commands.go#L436-L453", "partition": "valid"} +{"repo": "docker/machine", "path": "commands/commands.go", "func_name": "runActionForeachMachine", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// runActionForeachMachine will run the command across multiple machines", "docstring_tokens": ["runActionForeachMachine", "will", "run", "the", "command", "across", "multiple", "machines"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/commands/commands.go#L456-L480", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/libmachine.go", "func_name": "Create", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create is the wrapper method which covers all of the boilerplate around\n// actually creating, provisioning, and persisting an instance in the store.", "docstring_tokens": ["Create", "is", "the", "wrapper", "method", "which", "covers", "all", "of", "the", "boilerplate", "around", "actually", "creating", "provisioning", "and", "persisting", "an", "instance", "in", "the", "store", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/libmachine.go#L118-L144", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/mcnutils/utils.go", "func_name": "GenerateRandomID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GenerateRandomID returns an unique id", "docstring_tokens": ["GenerateRandomID", "returns", "an", "unique", "id"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/mcnutils/utils.go#L118-L133", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/rackspace/rackspace.go", "func_name": "GetCreateFlags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCreateFlags registers the \"machine create\" flags recognized by this driver, including\n// their help text and defaults.", "docstring_tokens": ["GetCreateFlags", "registers", "the", "machine", "create", "flags", "recognized", "by", "this", "driver", "including", "their", "help", "text", "and", "defaults", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/rackspace/rackspace.go#L31-L92", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/rackspace/rackspace.go", "func_name": "NewDriver", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDriver instantiates a Rackspace driver.", "docstring_tokens": ["NewDriver", "instantiates", "a", "Rackspace", "driver", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/rackspace/rackspace.go#L95-L107", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/rackspace/rackspace.go", "func_name": "SetConfigFromFlags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetConfigFromFlags assigns and verifies the command-line arguments presented to the driver.", "docstring_tokens": ["SetConfigFromFlags", "assigns", "and", "verifies", "the", "command", "-", "line", "arguments", "presented", "to", "the", "driver", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/rackspace/rackspace.go#L124-L158", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/mcndockerclient/docker_host.go", "func_name": "URL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// URL returns the Docker host URL", "docstring_tokens": ["URL", "returns", "the", "Docker", "host", "URL"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/mcndockerclient/docker_host.go#L30-L36", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/util.go", "func_name": "newAzureClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newAzureClient creates an AzureClient helper from the Driver context and\n// initiates authentication if required.", "docstring_tokens": ["newAzureClient", "creates", "an", "AzureClient", "helper", "from", "the", "Driver", "context", "and", "initiates", "authentication", "if", "required", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/util.go#L40-L69", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/util.go", "func_name": "generateSSHKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// generateSSHKey creates a ssh key pair locally and saves the public key file\n// contents in OpenSSH format to the DeploymentContext.", "docstring_tokens": ["generateSSHKey", "creates", "a", "ssh", "key", "pair", "locally", "and", "saves", "the", "public", "key", "file", "contents", "in", "OpenSSH", "format", "to", "the", "DeploymentContext", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/util.go#L73-L90", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/util.go", "func_name": "parseSecurityRuleProtocol", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseSecurityRuleProtocol parses a protocol string into a network.SecurityRuleProtocol\n// and returns error if the protocol is not supported", "docstring_tokens": ["parseSecurityRuleProtocol", "parses", "a", "protocol", "string", "into", "a", "network", ".", "SecurityRuleProtocol", "and", "returns", "error", "if", "the", "protocol", "is", "not", "supported"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/util.go#L219-L230", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/state/state.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Given a State type, returns its string representation", "docstring_tokens": ["Given", "a", "State", "type", "returns", "its", "string", "representation"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/state/state.go#L31-L36", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/azure/azureutil/util.go", "func_name": "randomString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// randomString generates a random string of given length using specified alphabet.", "docstring_tokens": ["randomString", "generates", "a", "random", "string", "of", "given", "length", "using", "specified", "alphabet", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/azure/azureutil/util.go#L24-L31", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/vmwarevsphere/vsphere.go", "func_name": "GetCreateFlags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCreateFlags registers the flags this driver adds to\n// \"docker-machine create\"", "docstring_tokens": ["GetCreateFlags", "registers", "the", "flags", "this", "driver", "adds", "to", "docker", "-", "machine", "create"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/vmwarevsphere/vsphere.go#L84-L171", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/vmwarevsphere/vsphere.go", "func_name": "generateKeyBundle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Make a boot2docker userdata.tar key bundle", "docstring_tokens": ["Make", "a", "boot2docker", "userdata", ".", "tar", "key", "bundle"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/vmwarevsphere/vsphere.go#L925-L973", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/virtualbox/virtualbox.go", "func_name": "NewDriver", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDriver creates a new VirtualBox driver with default settings.", "docstring_tokens": ["NewDriver", "creates", "a", "new", "VirtualBox", "driver", "with", "default", "settings", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/virtualbox/virtualbox.go#L76-L103", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/virtualbox/virtualbox.go", "func_name": "PreCreateCheck", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PreCreateCheck checks that VBoxManage exists and works", "docstring_tokens": ["PreCreateCheck", "checks", "that", "VBoxManage", "exists", "and", "works"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/virtualbox/virtualbox.go#L254-L288", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/virtualbox/virtualbox.go", "func_name": "validateNoIPCollisions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// validateNoIPCollisions ensures no conflicts between the host's network interfaces and the vbox host-only network that\n// will be used for machine vm instances.", "docstring_tokens": ["validateNoIPCollisions", "ensures", "no", "conflicts", "between", "the", "host", "s", "network", "interfaces", "and", "the", "vbox", "host", "-", "only", "network", "that", "will", "be", "used", "for", "machine", "vm", "instances", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/virtualbox/virtualbox.go#L917-L939", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/virtualbox/virtualbox.go", "func_name": "getAvailableTCPPort", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Select an available port, trying the specified\n// port first, falling back on an OS selected port.", "docstring_tokens": ["Select", "an", "available", "port", "trying", "the", "specified", "port", "first", "falling", "back", "on", "an", "OS", "selected", "port", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/virtualbox/virtualbox.go#L943-L964", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/virtualbox/virtualbox.go", "func_name": "setPortForwarding", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Setup a NAT port forwarding entry.", "docstring_tokens": ["Setup", "a", "NAT", "port", "forwarding", "entry", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/virtualbox/virtualbox.go#L967-L983", "partition": "valid"} +{"repo": "docker/machine", "path": "drivers/virtualbox/virtualbox.go", "func_name": "getRandomIPinSubnet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getRandomIPinSubnet returns a pseudo-random net.IP in the same\n// subnet as the IP passed", "docstring_tokens": ["getRandomIPinSubnet", "returns", "a", "pseudo", "-", "random", "net", ".", "IP", "in", "the", "same", "subnet", "as", "the", "IP", "passed"], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/drivers/virtualbox/virtualbox.go#L987-L1006", "partition": "valid"} +{"repo": "docker/machine", "path": "libmachine/shell/shell.go", "func_name": "Detect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Detect detects user's current shell.", "docstring_tokens": ["Detect", "detects", "user", "s", "current", "shell", "."], "sha": "61ef47dc5d6b1658e3d6636f9382d50507c8c7e1", "url": "https://github.com/docker/machine/blob/61ef47dc5d6b1658e3d6636f9382d50507c8c7e1/libmachine/shell/shell.go#L17-L26", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/vault_common.go", "func_name": "vaultRenewDuration", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// vaultRenewDuration accepts a secret and returns the recommended amount of\n// time to sleep.", "docstring_tokens": ["vaultRenewDuration", "accepts", "a", "secret", "and", "returns", "the", "recommended", "amount", "of", "time", "to", "sleep", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/vault_common.go#L69-L99", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/vault_common.go", "func_name": "printVaultWarnings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// printVaultWarnings prints warnings for a given dependency.", "docstring_tokens": ["printVaultWarnings", "prints", "warnings", "for", "a", "given", "dependency", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/vault_common.go#L102-L106", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/vault_common.go", "func_name": "vaultSecretRenewable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// vaultSecretRenewable determines if the given secret is renewable.", "docstring_tokens": ["vaultSecretRenewable", "determines", "if", "the", "given", "secret", "is", "renewable", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/vault_common.go#L109-L114", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/vault_common.go", "func_name": "transformSecret", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// transformSecret transforms an api secret into our secret. This does not deep\n// copy underlying deep data structures, so it's not safe to modify the vault\n// secret as that may modify the data in the transformed secret.", "docstring_tokens": ["transformSecret", "transforms", "an", "api", "secret", "into", "our", "secret", ".", "This", "does", "not", "deep", "copy", "underlying", "deep", "data", "structures", "so", "it", "s", "not", "safe", "to", "modify", "the", "vault", "secret", "as", "that", "may", "modify", "the", "data", "in", "the", "transformed", "secret", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/vault_common.go#L119-L123", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/vault_common.go", "func_name": "updateSecret", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// updateSecret updates our secret with the new data from the api, careful to\n// not overwrite missing data. Renewals don't include the original secret, and\n// we don't want to delete that data accidentally.", "docstring_tokens": ["updateSecret", "updates", "our", "secret", "with", "the", "new", "data", "from", "the", "api", "careful", "to", "not", "overwrite", "missing", "data", ".", "Renewals", "don", "t", "include", "the", "original", "secret", "and", "we", "don", "t", "want", "to", "delete", "that", "data", "accidentally", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/vault_common.go#L128-L204", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "config/template.go", "func_name": "Display", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Display is the human-friendly form of this configuration. It tries to\n// describe this template in as much detail as possible in a single line, so\n// log consumers can uniquely identify it.", "docstring_tokens": ["Display", "is", "the", "human", "-", "friendly", "form", "of", "this", "configuration", ".", "It", "tries", "to", "describe", "this", "template", "in", "as", "much", "detail", "as", "possible", "in", "a", "single", "line", "so", "log", "consumers", "can", "uniquely", "identify", "it", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/config/template.go#L308-L322", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/vault_write.go", "func_name": "NewVaultWriteQuery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewVaultWriteQuery creates a new datacenter dependency.", "docstring_tokens": ["NewVaultWriteQuery", "creates", "a", "new", "datacenter", "dependency", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/vault_write.go#L36-L49", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/vault_write.go", "func_name": "sha1Map", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// sha1Map returns the sha1 hash of the data in the map. The reason this data is\n// hashed is because it appears in the output and could contain sensitive\n// information.", "docstring_tokens": ["sha1Map", "returns", "the", "sha1", "hash", "of", "the", "data", "in", "the", "map", ".", "The", "reason", "this", "data", "is", "hashed", "is", "because", "it", "appears", "in", "the", "output", "and", "could", "contain", "sensitive", "information", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/vault_write.go#L144-L157", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "watch/view.go", "func_name": "NewView", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewView constructs a new view with the given inputs.", "docstring_tokens": ["NewView", "constructs", "a", "new", "view", "with", "the", "given", "inputs", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/watch/view.go#L81-L91", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "watch/view.go", "func_name": "Data", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Data returns the most-recently-received data from Consul for this View.", "docstring_tokens": ["Data", "returns", "the", "most", "-", "recently", "-", "received", "data", "from", "Consul", "for", "this", "View", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/watch/view.go#L99-L103", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "watch/view.go", "func_name": "DataAndLastIndex", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DataAndLastIndex returns the most-recently-received data from Consul for\n// this view, along with the last index. This is atomic so you will get the\n// index that goes with the data you are fetching.", "docstring_tokens": ["DataAndLastIndex", "returns", "the", "most", "-", "recently", "-", "received", "data", "from", "Consul", "for", "this", "view", "along", "with", "the", "last", "index", ".", "This", "is", "atomic", "so", "you", "will", "get", "the", "index", "that", "goes", "with", "the", "data", "you", "are", "fetching", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/watch/view.go#L108-L112", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "watch/view.go", "func_name": "poll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// poll queries the Consul instance for data using the fetch function, but also\n// accounts for interrupts on the interrupt channel. This allows the poll\n// function to be fired in a goroutine, but then halted even if the fetch\n// function is in the middle of a blocking query.", "docstring_tokens": ["poll", "queries", "the", "Consul", "instance", "for", "data", "using", "the", "fetch", "function", "but", "also", "accounts", "for", "interrupts", "on", "the", "interrupt", "channel", ".", "This", "allows", "the", "poll", "function", "to", "be", "fired", "in", "a", "goroutine", "but", "then", "halted", "even", "if", "the", "fetch", "function", "is", "in", "the", "middle", "of", "a", "blocking", "query", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/watch/view.go#L118-L186", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "watch/view.go", "func_name": "fetch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// fetch queries the Consul instance for the attached dependency. This API\n// promises that either data will be written to doneCh or an error will be\n// written to errCh. It is designed to be run in a goroutine that selects the\n// result of doneCh and errCh. It is assumed that only one instance of fetch\n// is running per View and therefore no locking or mutexes are used.", "docstring_tokens": ["fetch", "queries", "the", "Consul", "instance", "for", "the", "attached", "dependency", ".", "This", "API", "promises", "that", "either", "data", "will", "be", "written", "to", "doneCh", "or", "an", "error", "will", "be", "written", "to", "errCh", ".", "It", "is", "designed", "to", "be", "run", "in", "a", "goroutine", "that", "selects", "the", "result", "of", "doneCh", "and", "errCh", ".", "It", "is", "assumed", "that", "only", "one", "instance", "of", "fetch", "is", "running", "per", "View", "and", "therefore", "no", "locking", "or", "mutexes", "are", "used", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/watch/view.go#L193-L283", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/catalog_node.go", "func_name": "NewCatalogNodeQuery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCatalogNodeQuery parses the given string into a dependency. If the name is\n// empty then the name of the local agent is used.", "docstring_tokens": ["NewCatalogNodeQuery", "parses", "the", "given", "string", "into", "a", "dependency", ".", "If", "the", "name", "is", "empty", "then", "the", "name", "of", "the", "local", "agent", "is", "used", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/catalog_node.go#L54-L65", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/catalog_node.go", "func_name": "Fetch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fetch queries the Consul API defined by the given client and returns a\n// of CatalogNode object.", "docstring_tokens": ["Fetch", "queries", "the", "Consul", "API", "defined", "by", "the", "given", "client", "and", "returns", "a", "of", "CatalogNode", "object", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/catalog_node.go#L69-L141", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "config/auth.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String is the string representation of this authentication. If authentication\n// is not enabled, this returns the empty string. The username and password will\n// be separated by a colon.", "docstring_tokens": ["String", "is", "the", "string", "representation", "of", "this", "authentication", ".", "If", "authentication", "is", "not", "enabled", "this", "returns", "the", "empty", "string", ".", "The", "username", "and", "password", "will", "be", "separated", "by", "a", "colon", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/config/auth.go#L132-L142", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/vault_list.go", "func_name": "NewVaultListQuery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewVaultListQuery creates a new datacenter dependency.", "docstring_tokens": ["NewVaultListQuery", "creates", "a", "new", "datacenter", "dependency", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/vault_list.go#L27-L38", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/brain.go", "func_name": "Remember", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Remember accepts a dependency and the data to store associated with that\n// dep. This function converts the given data to a proper type and stores\n// it interally.", "docstring_tokens": ["Remember", "accepts", "a", "dependency", "and", "the", "data", "to", "store", "associated", "with", "that", "dep", ".", "This", "function", "converts", "the", "given", "data", "to", "a", "proper", "type", "and", "stores", "it", "interally", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/brain.go#L35-L41", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/brain.go", "func_name": "Recall", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Recall gets the current value for the given dependency in the Brain.", "docstring_tokens": ["Recall", "gets", "the", "current", "value", "for", "the", "given", "dependency", "in", "the", "Brain", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/brain.go#L44-L54", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/brain.go", "func_name": "ForceSet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ForceSet is used to force set the value of a dependency\n// for a given hash code", "docstring_tokens": ["ForceSet", "is", "used", "to", "force", "set", "the", "value", "of", "a", "dependency", "for", "a", "given", "hash", "code"], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/brain.go#L58-L64", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/brain.go", "func_name": "Forget", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Forget accepts a dependency and removes all associated data with this\n// dependency. It also resets the \"receivedData\" internal map.", "docstring_tokens": ["Forget", "accepts", "a", "dependency", "and", "removes", "all", "associated", "data", "with", "this", "dependency", ".", "It", "also", "resets", "the", "receivedData", "internal", "map", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/brain.go#L68-L74", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/catalog_datacenters.go", "func_name": "NewCatalogDatacentersQuery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCatalogDatacentersQuery creates a new datacenter dependency.", "docstring_tokens": ["NewCatalogDatacentersQuery", "creates", "a", "new", "datacenter", "dependency", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/catalog_datacenters.go#L30-L35", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/catalog_datacenters.go", "func_name": "Fetch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fetch queries the Consul API defined by the given client and returns a slice\n// of strings representing the datacenters", "docstring_tokens": ["Fetch", "queries", "the", "Consul", "API", "defined", "by", "the", "given", "client", "and", "returns", "a", "slice", "of", "strings", "representing", "the", "datacenters"], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/catalog_datacenters.go#L39-L92", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/catalog_nodes.go", "func_name": "NewCatalogNodesQuery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCatalogNodesQuery parses the given string into a dependency. If the name is\n// empty then the name of the local agent is used.", "docstring_tokens": ["NewCatalogNodesQuery", "parses", "the", "given", "string", "into", "a", "dependency", ".", "If", "the", "name", "is", "empty", "then", "the", "name", "of", "the", "local", "agent", "is", "used", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/catalog_nodes.go#L46-L57", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/catalog_nodes.go", "func_name": "Fetch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fetch queries the Consul API defined by the given client and returns a slice\n// of Node objects", "docstring_tokens": ["Fetch", "queries", "the", "Consul", "API", "defined", "by", "the", "given", "client", "and", "returns", "a", "slice", "of", "Node", "objects"], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/catalog_nodes.go#L61-L107", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "signals/signals.go", "func_name": "Parse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Parse parses the given string as a signal. If the signal is not found,\n// an error is returned.", "docstring_tokens": ["Parse", "parses", "the", "given", "string", "as", "a", "signal", ".", "If", "the", "signal", "is", "not", "found", "an", "error", "is", "returned", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/signals/signals.go#L28-L35", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "config/vault.go", "func_name": "DefaultVaultConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DefaultVaultConfig returns a configuration that is populated with the\n// default values.", "docstring_tokens": ["DefaultVaultConfig", "returns", "a", "configuration", "that", "is", "populated", "with", "the", "default", "values", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/config/vault.go#L79-L90", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/template.go", "func_name": "NewTemplate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTemplate creates and parses a new Consul Template template at the given\n// path. If the template does not exist, an error is returned. During\n// initialization, the template is read and is parsed for dependencies. Any\n// errors that occur are returned.", "docstring_tokens": ["NewTemplate", "creates", "and", "parses", "a", "new", "Consul", "Template", "template", "at", "the", "given", "path", ".", "If", "the", "template", "does", "not", "exist", "an", "error", "is", "returned", ".", "During", "initialization", "the", "template", "is", "read", "and", "is", "parsed", "for", "dependencies", ".", "Any", "errors", "that", "occur", "are", "returned", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/template.go#L71-L103", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/template.go", "func_name": "Execute", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Execute evaluates this template in the provided context.", "docstring_tokens": ["Execute", "evaluates", "this", "template", "in", "the", "provided", "context", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/template.go#L147-L186", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/template.go", "func_name": "funcMap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// funcMap is the map of template functions to their respective functions.", "docstring_tokens": ["funcMap", "is", "the", "map", "of", "template", "functions", "to", "their", "respective", "functions", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/template.go#L198-L266", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "config/mapstructure.go", "func_name": "StringToFileModeFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StringToFileModeFunc returns a function that converts strings to os.FileMode\n// value. This is designed to be used with mapstructure for parsing out a\n// filemode value.", "docstring_tokens": ["StringToFileModeFunc", "returns", "a", "function", "that", "converts", "strings", "to", "os", ".", "FileMode", "value", ".", "This", "is", "designed", "to", "be", "used", "with", "mapstructure", "for", "parsing", "out", "a", "filemode", "value", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/config/mapstructure.go#L15-L34", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "config/mapstructure.go", "func_name": "StringToWaitDurationHookFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StringToWaitDurationHookFunc returns a function that converts strings to wait\n// value. This is designed to be used with mapstructure for parsing out a wait\n// value.", "docstring_tokens": ["StringToWaitDurationHookFunc", "returns", "a", "function", "that", "converts", "strings", "to", "wait", "value", ".", "This", "is", "designed", "to", "be", "used", "with", "mapstructure", "for", "parsing", "out", "a", "wait", "value", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/config/mapstructure.go#L39-L54", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "config/mapstructure.go", "func_name": "ConsulStringToStructFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ConsulStringToStructFunc checks if the value set for the key should actually\n// be a struct and sets the appropriate value in the struct. This is for\n// backwards-compatability with older versions of Consul Template.", "docstring_tokens": ["ConsulStringToStructFunc", "checks", "if", "the", "value", "set", "for", "the", "key", "should", "actually", "be", "a", "struct", "and", "sets", "the", "appropriate", "value", "in", "the", "struct", ".", "This", "is", "for", "backwards", "-", "compatability", "with", "older", "versions", "of", "Consul", "Template", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/config/mapstructure.go#L59-L75", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/scratch.go", "func_name": "Key", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Key returns a boolean indicating whether the given key exists in the map.", "docstring_tokens": ["Key", "returns", "a", "boolean", "indicating", "whether", "the", "given", "key", "exists", "in", "the", "map", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/scratch.go#L17-L22", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/scratch.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get returns a value previously set by Add or Set", "docstring_tokens": ["Get", "returns", "a", "value", "previously", "set", "by", "Add", "or", "Set"], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/scratch.go#L25-L29", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/scratch.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set stores the value v at the key k. It will overwrite an existing value\n// if present.", "docstring_tokens": ["Set", "stores", "the", "value", "v", "at", "the", "key", "k", ".", "It", "will", "overwrite", "an", "existing", "value", "if", "present", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/scratch.go#L33-L40", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/scratch.go", "func_name": "SetX", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetX behaves the same as Set, except it will not overwrite existing keys if\n// already present.", "docstring_tokens": ["SetX", "behaves", "the", "same", "as", "Set", "except", "it", "will", "not", "overwrite", "existing", "keys", "if", "already", "present", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/scratch.go#L44-L53", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/scratch.go", "func_name": "MapSet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MapSet stores the value v into a key mk in the map named k.", "docstring_tokens": ["MapSet", "stores", "the", "value", "v", "into", "a", "key", "mk", "in", "the", "map", "named", "k", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/scratch.go#L56-L62", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/scratch.go", "func_name": "MapSetX", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MapSetX behaves the same as MapSet, except it will not overwrite the map\n// key if it already exists.", "docstring_tokens": ["MapSetX", "behaves", "the", "same", "as", "MapSet", "except", "it", "will", "not", "overwrite", "the", "map", "key", "if", "it", "already", "exists", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/scratch.go#L66-L72", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/scratch.go", "func_name": "mapSet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// mapSet is sets the value in the map, overwriting if o is true. This function\n// does not perform locking; callers should lock before invoking.", "docstring_tokens": ["mapSet", "is", "sets", "the", "value", "in", "the", "map", "overwriting", "if", "o", "is", "true", ".", "This", "function", "does", "not", "perform", "locking", ";", "callers", "should", "lock", "before", "invoking", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/scratch.go#L76-L90", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/scratch.go", "func_name": "MapValues", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MapValues returns the list of values in the map sorted by key.", "docstring_tokens": ["MapValues", "returns", "the", "list", "of", "values", "in", "the", "map", "sorted", "by", "key", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/scratch.go#L93-L118", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/scratch.go", "func_name": "init", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// init initializes the scratch.", "docstring_tokens": ["init", "initializes", "the", "scratch", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/scratch.go#L121-L125", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "renderer/renderer.go", "func_name": "Render", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Render atomically renders a file contents to disk, returning a result of\n// whether it would have rendered and actually did render.", "docstring_tokens": ["Render", "atomically", "renders", "a", "file", "contents", "to", "disk", "returning", "a", "result", "of", "whether", "it", "would", "have", "rendered", "and", "actually", "did", "render", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/renderer/renderer.go#L61-L88", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "renderer/renderer.go", "func_name": "copyFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// copyFile copies the file at src to the path at dst. Any errors that occur\n// are returned.", "docstring_tokens": ["copyFile", "copies", "the", "file", "at", "src", "to", "the", "path", "at", "dst", ".", "Any", "errors", "that", "occur", "are", "returned", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/renderer/renderer.go#L184-L210", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "config/config.go", "func_name": "Copy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Copy returns a deep copy of the current configuration. This is useful because\n// the nested data structures may be shared.", "docstring_tokens": ["Copy", "returns", "a", "deep", "copy", "of", "the", "current", "configuration", ".", "This", "is", "useful", "because", "the", "nested", "data", "structures", "may", "be", "shared", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/config/config.go#L86-L130", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "config/config.go", "func_name": "Merge", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Merge merges the values in config into this config object. Values in the\n// config object overwrite the values in c.", "docstring_tokens": ["Merge", "merges", "the", "values", "in", "config", "into", "this", "config", "object", ".", "Values", "in", "the", "config", "object", "overwrite", "the", "values", "in", "c", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/config/config.go#L134-L197", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "config/config.go", "func_name": "Parse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Parse parses the given string contents as a config", "docstring_tokens": ["Parse", "parses", "the", "given", "string", "contents", "as", "a", "config"], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/config/config.go#L200-L271", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "config/config.go", "func_name": "Must", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Must returns a config object that must compile. If there are any errors, this\n// function will panic. This is most useful in testing or constants.", "docstring_tokens": ["Must", "returns", "a", "config", "object", "that", "must", "compile", ".", "If", "there", "are", "any", "errors", "this", "function", "will", "panic", ".", "This", "is", "most", "useful", "in", "testing", "or", "constants", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/config/config.go#L275-L281", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "config/config.go", "func_name": "FromFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FromFile reads the configuration file at the given path and returns a new\n// Config struct with the data populated.", "docstring_tokens": ["FromFile", "reads", "the", "configuration", "file", "at", "the", "given", "path", "and", "returns", "a", "new", "Config", "struct", "with", "the", "data", "populated", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/config/config.go#L293-L304", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "config/config.go", "func_name": "FromPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FromPath iterates and merges all configuration files in a given\n// directory, returning the resulting config.", "docstring_tokens": ["FromPath", "iterates", "and", "merges", "all", "configuration", "files", "in", "a", "given", "directory", "returning", "the", "resulting", "config", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/config/config.go#L308-L363", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "config/config.go", "func_name": "DefaultConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DefaultConfig returns the default configuration struct. Certain environment\n// variables may be set which control the values for the default configuration.", "docstring_tokens": ["DefaultConfig", "returns", "the", "default", "configuration", "struct", ".", "Certain", "environment", "variables", "may", "be", "set", "which", "control", "the", "values", "for", "the", "default", "configuration", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/config/config.go#L402-L412", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "watch/watcher.go", "func_name": "NewWatcher", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewWatcher creates a new watcher using the given API client.", "docstring_tokens": ["NewWatcher", "creates", "a", "new", "watcher", "using", "the", "given", "API", "client", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/watch/watcher.go#L83-L119", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "watch/watcher.go", "func_name": "Watching", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Watching determines if the given dependency is being watched.", "docstring_tokens": ["Watching", "determines", "if", "the", "given", "dependency", "is", "being", "watched", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/watch/watcher.go#L183-L189", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "watch/watcher.go", "func_name": "ForceWatching", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ForceWatching is used to force setting the internal state of watching\n// a dependency. This is only used for unit testing purposes.", "docstring_tokens": ["ForceWatching", "is", "used", "to", "force", "setting", "the", "internal", "state", "of", "watching", "a", "dependency", ".", "This", "is", "only", "used", "for", "unit", "testing", "purposes", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/watch/watcher.go#L193-L202", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "watch/watcher.go", "func_name": "Remove", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Remove removes the given dependency from the list and stops the\n// associated View. If a View for the given dependency does not exist, this\n// function will return false. If the View does exist, this function will return\n// true upon successful deletion.", "docstring_tokens": ["Remove", "removes", "the", "given", "dependency", "from", "the", "list", "and", "stops", "the", "associated", "View", ".", "If", "a", "View", "for", "the", "given", "dependency", "does", "not", "exist", "this", "function", "will", "return", "false", ".", "If", "the", "View", "does", "exist", "this", "function", "will", "return", "true", "upon", "successful", "deletion", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/watch/watcher.go#L208-L223", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "watch/watcher.go", "func_name": "Size", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Size returns the number of views this watcher is watching.", "docstring_tokens": ["Size", "returns", "the", "number", "of", "views", "this", "watcher", "is", "watching", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/watch/watcher.go#L226-L230", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "watch/watcher.go", "func_name": "Stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stop halts this watcher and any currently polling views immediately. If a\n// view was in the middle of a poll, no data will be returned.", "docstring_tokens": ["Stop", "halts", "this", "watcher", "and", "any", "currently", "polling", "views", "immediately", ".", "If", "a", "view", "was", "in", "the", "middle", "of", "a", "poll", "no", "data", "will", "be", "returned", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/watch/watcher.go#L234-L253", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/set.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add adds a new element to the set if it does not already exist.", "docstring_tokens": ["Add", "adds", "a", "new", "element", "to", "the", "set", "if", "it", "does", "not", "already", "exist", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/set.go#L18-L28", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/set.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get retrieves a single element from the set by name.", "docstring_tokens": ["Get", "retrieves", "a", "single", "element", "from", "the", "set", "by", "name", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/set.go#L31-L35", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/set.go", "func_name": "List", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// List returns the insertion-ordered list of dependencies.", "docstring_tokens": ["List", "returns", "the", "insertion", "-", "ordered", "list", "of", "dependencies", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/set.go#L38-L46", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/set.go", "func_name": "Len", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Len is the size of the set.", "docstring_tokens": ["Len", "is", "the", "size", "of", "the", "set", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/set.go#L49-L53", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/set.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String is a string representation of the set.", "docstring_tokens": ["String", "is", "a", "string", "representation", "of", "the", "set", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/set.go#L56-L60", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/dependency.go", "func_name": "deepCopyAndSortTags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// deepCopyAndSortTags deep copies the tags in the given string slice and then\n// sorts and returns the copied result.", "docstring_tokens": ["deepCopyAndSortTags", "deep", "copies", "the", "tags", "in", "the", "given", "string", "slice", "and", "then", "sorts", "and", "returns", "the", "copied", "result", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/dependency.go#L153-L160", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/dependency.go", "func_name": "respWithMetadata", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// respWithMetadata is a short wrapper to return the given interface with fake\n// response metadata for non-Consul dependencies.", "docstring_tokens": ["respWithMetadata", "is", "a", "short", "wrapper", "to", "return", "the", "given", "interface", "with", "fake", "response", "metadata", "for", "non", "-", "Consul", "dependencies", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/dependency.go#L164-L169", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/dependency.go", "func_name": "regexpMatch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// regexpMatch matches the given regexp and extracts the match groups into a\n// named map.", "docstring_tokens": ["regexpMatch", "matches", "the", "given", "regexp", "and", "extracts", "the", "match", "groups", "into", "a", "named", "map", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/dependency.go#L173-L189", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/catalog_service.go", "func_name": "NewCatalogServiceQuery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCatalogServiceQuery parses a string into a CatalogServiceQuery.", "docstring_tokens": ["NewCatalogServiceQuery", "parses", "a", "string", "into", "a", "CatalogServiceQuery", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/catalog_service.go#L53-L66", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/kv_list.go", "func_name": "NewKVListQuery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewKVListQuery parses a string into a dependency.", "docstring_tokens": ["NewKVListQuery", "parses", "a", "string", "into", "a", "dependency", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/kv_list.go#L49-L60", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "manager/dedup.go", "func_name": "NewDedupManager", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDedupManager creates a new Dedup manager", "docstring_tokens": ["NewDedupManager", "creates", "a", "new", "Dedup", "manager"], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/manager/dedup.go#L100-L112", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "manager/dedup.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start is used to start the de-duplication manager", "docstring_tokens": ["Start", "is", "used", "to", "start", "the", "de", "-", "duplication", "manager"], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/manager/dedup.go#L115-L126", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "manager/dedup.go", "func_name": "Stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stop is used to stop the de-duplication manager", "docstring_tokens": ["Stop", "is", "used", "to", "stop", "the", "de", "-", "duplication", "manager"], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/manager/dedup.go#L129-L141", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "manager/dedup.go", "func_name": "createSession", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// createSession is used to create and maintain a session to Consul", "docstring_tokens": ["createSession", "is", "used", "to", "create", "and", "maintain", "a", "session", "to", "Consul"], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/manager/dedup.go#L144-L182", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "manager/dedup.go", "func_name": "IsLeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsLeader checks if we are currently the leader instance", "docstring_tokens": ["IsLeader", "checks", "if", "we", "are", "currently", "the", "leader", "instance"], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/manager/dedup.go#L185-L199", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "manager/dedup.go", "func_name": "UpdateDeps", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateDeps is used to update the values of the dependencies for a template", "docstring_tokens": ["UpdateDeps", "is", "used", "to", "update", "the", "values", "of", "the", "dependencies", "for", "a", "template"], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/manager/dedup.go#L202-L265", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "manager/dedup.go", "func_name": "setLeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setLeader sets if we are currently the leader instance", "docstring_tokens": ["setLeader", "sets", "if", "we", "are", "currently", "the", "leader", "instance"], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/manager/dedup.go#L273-L295", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "manager/dedup.go", "func_name": "parseData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseData is used to update brain from a KV data pair", "docstring_tokens": ["parseData", "is", "used", "to", "update", "brain", "from", "a", "KV", "data", "pair"], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/manager/dedup.go#L413-L445", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/file.go", "func_name": "NewFileQuery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewFileQuery creates a file dependency from the given path.", "docstring_tokens": ["NewFileQuery", "creates", "a", "file", "dependency", "from", "the", "given", "path", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/file.go#L32-L42", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "cli.go", "func_name": "NewCLI", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCLI creates a new CLI object with the given stdout and stderr streams.", "docstring_tokens": ["NewCLI", "creates", "a", "new", "CLI", "object", "with", "the", "given", "stdout", "and", "stderr", "streams", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/cli.go#L53-L60", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "cli.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run accepts a slice of arguments and returns an int representing the exit\n// status from the command.", "docstring_tokens": ["Run", "accepts", "a", "slice", "of", "arguments", "and", "returns", "an", "int", "representing", "the", "exit", "status", "from", "the", "command", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/cli.go#L64-L172", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "cli.go", "func_name": "stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// stop is used internally to shutdown a running CLI", "docstring_tokens": ["stop", "is", "used", "internally", "to", "shutdown", "a", "running", "CLI"], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/cli.go#L175-L185", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "cli.go", "func_name": "loadConfigs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// loadConfigs loads the configuration from the list of paths. The optional\n// configuration is the list of overrides to apply at the very end, taking\n// precedence over any configurations that were loaded from the paths. If any\n// errors occur when reading or parsing those sub-configs, it is returned.", "docstring_tokens": ["loadConfigs", "loads", "the", "configuration", "from", "the", "list", "of", "paths", ".", "The", "optional", "configuration", "is", "the", "list", "of", "overrides", "to", "apply", "at", "the", "very", "end", "taking", "precedence", "over", "any", "configurations", "that", "were", "loaded", "from", "the", "paths", ".", "If", "any", "errors", "occur", "when", "reading", "or", "parsing", "those", "sub", "-", "configs", "it", "is", "returned", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/cli.go#L556-L571", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "cli.go", "func_name": "logError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// logError logs an error message and then returns the given status.", "docstring_tokens": ["logError", "logs", "an", "error", "message", "and", "then", "returns", "the", "given", "status", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/cli.go#L574-L577", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "config/convert.go", "func_name": "FileModeGoString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FileModeGoString returns the value of the os.FileMode for printing in a\n// string.", "docstring_tokens": ["FileModeGoString", "returns", "the", "value", "of", "the", "os", ".", "FileMode", "for", "printing", "in", "a", "string", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/config/convert.go#L58-L63", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "config/convert.go", "func_name": "SignalVal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SignalVal returns the value of the os.Signal at the pointer, or 0 if the\n// pointer is nil.", "docstring_tokens": ["SignalVal", "returns", "the", "value", "of", "the", "os", ".", "Signal", "at", "the", "pointer", "or", "0", "if", "the", "pointer", "is", "nil", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/config/convert.go#L112-L117", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "config/convert.go", "func_name": "SignalGoString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SignalGoString returns the value of the os.Signal for printing in a string.", "docstring_tokens": ["SignalGoString", "returns", "the", "value", "of", "the", "os", ".", "Signal", "for", "printing", "in", "a", "string", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/config/convert.go#L120-L128", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "config/convert.go", "func_name": "SignalPresent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SignalPresent returns a boolean indicating if the pointer is nil, or if the pointer is pointing to the zero value..", "docstring_tokens": ["SignalPresent", "returns", "a", "boolean", "indicating", "if", "the", "pointer", "is", "nil", "or", "if", "the", "pointer", "is", "pointing", "to", "the", "zero", "value", ".."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/config/convert.go#L131-L136", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "config/convert.go", "func_name": "TimeDurationVal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TimeDurationVal returns the value of the string at the pointer, or 0 if the\n// pointer is nil.", "docstring_tokens": ["TimeDurationVal", "returns", "the", "value", "of", "the", "string", "at", "the", "pointer", "or", "0", "if", "the", "pointer", "is", "nil", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/config/convert.go#L175-L180", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "config/convert.go", "func_name": "TimeDurationGoString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TimeDurationGoString returns the value of the time.Duration for printing in a\n// string.", "docstring_tokens": ["TimeDurationGoString", "returns", "the", "value", "of", "the", "time", ".", "Duration", "for", "printing", "in", "a", "string", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/config/convert.go#L184-L189", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/client_set.go", "func_name": "CreateConsulClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateConsulClient creates a new Consul API client from the given input.", "docstring_tokens": ["CreateConsulClient", "creates", "a", "new", "Consul", "API", "client", "from", "the", "given", "input", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/client_set.go#L91-L190", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/client_set.go", "func_name": "Consul", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Consul returns the Consul client for this set.", "docstring_tokens": ["Consul", "returns", "the", "Consul", "client", "for", "this", "set", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/client_set.go#L313-L317", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/client_set.go", "func_name": "Vault", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Vault returns the Vault client for this set.", "docstring_tokens": ["Vault", "returns", "the", "Vault", "client", "for", "this", "set", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/client_set.go#L320-L324", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/client_set.go", "func_name": "Stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stop closes all idle connections for any attached clients.", "docstring_tokens": ["Stop", "closes", "all", "idle", "connections", "for", "any", "attached", "clients", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/client_set.go#L327-L338", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/vault_read.go", "func_name": "NewVaultReadQuery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewVaultReadQuery creates a new datacenter dependency.", "docstring_tokens": ["NewVaultReadQuery", "creates", "a", "new", "datacenter", "dependency", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/vault_read.go#L34-L51", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/kv_get.go", "func_name": "NewKVGetQuery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewKVGetQuery parses a string into a dependency.", "docstring_tokens": ["NewKVGetQuery", "parses", "a", "string", "into", "a", "dependency", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/kv_get.go#L30-L41", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/vault_agent_token.go", "func_name": "NewVaultAgentTokenQuery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewVaultAgentTokenQuery creates a new dependency.", "docstring_tokens": ["NewVaultAgentTokenQuery", "creates", "a", "new", "dependency", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/vault_agent_token.go#L32-L37", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/vault_agent_token.go", "func_name": "watch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// watch watches the file for changes", "docstring_tokens": ["watch", "watches", "the", "file", "for", "changes"], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/vault_agent_token.go#L88-L121", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/kv_keys.go", "func_name": "NewKVKeysQuery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewKVKeysQuery parses a string into a dependency.", "docstring_tokens": ["NewKVKeysQuery", "parses", "a", "string", "into", "a", "dependency", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/kv_keys.go#L30-L41", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "child/child.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New creates a new child process for management with high-level APIs for\n// sending signals to the child process, restarting the child process, and\n// gracefully terminating the child process.", "docstring_tokens": ["New", "creates", "a", "new", "child", "process", "for", "management", "with", "high", "-", "level", "APIs", "for", "sending", "signals", "to", "the", "child", "process", "restarting", "the", "child", "process", "and", "gracefully", "terminating", "the", "child", "process", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/child/child.go#L116-L141", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "child/child.go", "func_name": "ExitCh", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ExitCh returns the current exit channel for this child process. This channel\n// may change if the process is restarted, so implementers must not cache this\n// value.", "docstring_tokens": ["ExitCh", "returns", "the", "current", "exit", "channel", "for", "this", "child", "process", ".", "This", "channel", "may", "change", "if", "the", "process", "is", "restarted", "so", "implementers", "must", "not", "cache", "this", "value", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/child/child.go#L146-L150", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "child/child.go", "func_name": "Pid", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Pid returns the pid of the child process. If no child process exists, 0 is\n// returned.", "docstring_tokens": ["Pid", "returns", "the", "pid", "of", "the", "child", "process", ".", "If", "no", "child", "process", "exists", "0", "is", "returned", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/child/child.go#L154-L158", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "child/child.go", "func_name": "Command", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Command returns the human-formatted command with arguments.", "docstring_tokens": ["Command", "returns", "the", "human", "-", "formatted", "command", "with", "arguments", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/child/child.go#L161-L164", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "child/child.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start starts and begins execution of the child process. A buffered channel\n// is returned which is where the command's exit code will be returned upon\n// exit. Any errors that occur prior to starting the command will be returned\n// as the second error argument, but any errors returned by the command after\n// execution will be returned as a non-zero value over the exit code channel.", "docstring_tokens": ["Start", "starts", "and", "begins", "execution", "of", "the", "child", "process", ".", "A", "buffered", "channel", "is", "returned", "which", "is", "where", "the", "command", "s", "exit", "code", "will", "be", "returned", "upon", "exit", ".", "Any", "errors", "that", "occur", "prior", "to", "starting", "the", "command", "will", "be", "returned", "as", "the", "second", "error", "argument", "but", "any", "errors", "returned", "by", "the", "command", "after", "execution", "will", "be", "returned", "as", "a", "non", "-", "zero", "value", "over", "the", "exit", "code", "channel", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/child/child.go#L171-L176", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "child/child.go", "func_name": "Signal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Signal sends the signal to the child process, returning any errors that\n// occur.", "docstring_tokens": ["Signal", "sends", "the", "signal", "to", "the", "child", "process", "returning", "any", "errors", "that", "occur", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/child/child.go#L180-L185", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "child/child.go", "func_name": "Reload", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reload sends the reload signal to the child process and does not wait for a\n// response. If no reload signal was provided, the process is restarted and\n// replaces the process attached to this Child.", "docstring_tokens": ["Reload", "sends", "the", "reload", "signal", "to", "the", "child", "process", "and", "does", "not", "wait", "for", "a", "response", ".", "If", "no", "reload", "signal", "was", "provided", "the", "process", "is", "restarted", "and", "replaces", "the", "process", "attached", "to", "this", "Child", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/child/child.go#L190-L212", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "child/child.go", "func_name": "Kill", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Kill sends the kill signal to the child process and waits for successful\n// termination. If no kill signal is defined, the process is killed with the\n// most aggressive kill signal. If the process does not gracefully stop within\n// the provided KillTimeout, the process is force-killed. If a splay was\n// provided, this function will sleep for a random period of time between 0 and\n// the provided splay value to reduce the thundering herd problem. This function\n// does not return any errors because it guarantees the process will be dead by\n// the return of the function call.", "docstring_tokens": ["Kill", "sends", "the", "kill", "signal", "to", "the", "child", "process", "and", "waits", "for", "successful", "termination", ".", "If", "no", "kill", "signal", "is", "defined", "the", "process", "is", "killed", "with", "the", "most", "aggressive", "kill", "signal", ".", "If", "the", "process", "does", "not", "gracefully", "stop", "within", "the", "provided", "KillTimeout", "the", "process", "is", "force", "-", "killed", ".", "If", "a", "splay", "was", "provided", "this", "function", "will", "sleep", "for", "a", "random", "period", "of", "time", "between", "0", "and", "the", "provided", "splay", "value", "to", "reduce", "the", "thundering", "herd", "problem", ".", "This", "function", "does", "not", "return", "any", "errors", "because", "it", "guarantees", "the", "process", "will", "be", "dead", "by", "the", "return", "of", "the", "function", "call", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/child/child.go#L222-L227", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "child/child.go", "func_name": "Stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stop behaves almost identical to Kill except it suppresses future processes\n// from being started by this child and it prevents the killing of the child\n// process from sending its value back up the exit channel. This is useful\n// when doing a graceful shutdown of an application.", "docstring_tokens": ["Stop", "behaves", "almost", "identical", "to", "Kill", "except", "it", "suppresses", "future", "processes", "from", "being", "started", "by", "this", "child", "and", "it", "prevents", "the", "killing", "of", "the", "child", "process", "from", "sending", "its", "value", "back", "up", "the", "exit", "channel", ".", "This", "is", "useful", "when", "doing", "a", "graceful", "shutdown", "of", "an", "application", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/child/child.go#L233-L248", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "config/env.go", "func_name": "Env", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Env calculates and returns the finalized environment for this exec\n// configuration. It takes into account pristine, custom environment, whitelist,\n// and blacklist values.", "docstring_tokens": ["Env", "calculates", "and", "returns", "the", "finalized", "environment", "for", "this", "exec", "configuration", ".", "It", "takes", "into", "account", "pristine", "custom", "environment", "whitelist", "and", "blacklist", "values", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/config/env.go#L106-L171", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/health_service.go", "func_name": "NewHealthServiceQuery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewHealthServiceQuery processes the strings to build a service dependency.", "docstring_tokens": ["NewHealthServiceQuery", "processes", "the", "strings", "to", "build", "a", "service", "dependency", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/health_service.go#L68-L105", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/health_service.go", "func_name": "Fetch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fetch queries the Consul API defined by the given client and returns a slice\n// of HealthService objects.", "docstring_tokens": ["Fetch", "queries", "the", "Consul", "API", "defined", "by", "the", "given", "client", "and", "returns", "a", "slice", "of", "HealthService", "objects", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/health_service.go#L109-L190", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/health_service.go", "func_name": "acceptStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// acceptStatus allows us to check if a slice of health checks pass this filter.", "docstring_tokens": ["acceptStatus", "allows", "us", "to", "check", "if", "a", "slice", "of", "health", "checks", "pass", "this", "filter", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/health_service.go#L226-L233", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "config/retry.go", "func_name": "RetryFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RetryFunc returns the retry function associated with this configuration.", "docstring_tokens": ["RetryFunc", "returns", "the", "retry", "function", "associated", "with", "this", "configuration", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/config/retry.go#L107-L132", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "manager/runner.go", "func_name": "NewRunner", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRunner accepts a slice of TemplateConfigs and returns a pointer to the new\n// Runner and any error that occurred during creation.", "docstring_tokens": ["NewRunner", "accepts", "a", "slice", "of", "TemplateConfigs", "and", "returns", "a", "pointer", "to", "the", "new", "Runner", "and", "any", "error", "that", "occurred", "during", "creation", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/manager/runner.go#L175-L189", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "manager/runner.go", "func_name": "Stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stop halts the execution of this runner and its subprocesses.", "docstring_tokens": ["Stop", "halts", "the", "execution", "of", "this", "runner", "and", "its", "subprocesses", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/manager/runner.go#L393-L414", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "manager/runner.go", "func_name": "RenderEvents", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RenderEvents returns the render events for each template was rendered. The\n// map is keyed by template ID.", "docstring_tokens": ["RenderEvents", "returns", "the", "render", "events", "for", "each", "template", "was", "rendered", ".", "The", "map", "is", "keyed", "by", "template", "ID", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/manager/runner.go#L430-L439", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "manager/runner.go", "func_name": "Signal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Signal sends a signal to the child process, if it exists. Any errors that\n// occur are returned.", "docstring_tokens": ["Signal", "sends", "a", "signal", "to", "the", "child", "process", "if", "it", "exists", ".", "Any", "errors", "that", "occur", "are", "returned", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/manager/runner.go#L494-L501", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "manager/runner.go", "func_name": "diffAndUpdateDeps", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// diffAndUpdateDeps iterates through the current map of dependencies on this\n// runner and stops the watcher for any deps that are no longer required.\n//\n// At the end of this function, the given depsMap is converted to a slice and\n// stored on the runner.", "docstring_tokens": ["diffAndUpdateDeps", "iterates", "through", "the", "current", "map", "of", "dependencies", "on", "this", "runner", "and", "stops", "the", "watcher", "for", "any", "deps", "that", "are", "no", "longer", "required", ".", "At", "the", "end", "of", "this", "function", "the", "given", "depsMap", "is", "converted", "to", "a", "slice", "and", "stored", "on", "the", "runner", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/manager/runner.go#L916-L934", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "manager/runner.go", "func_name": "templateConfigsFor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TemplateConfigFor returns the TemplateConfig for the given Template", "docstring_tokens": ["TemplateConfigFor", "returns", "the", "TemplateConfig", "for", "the", "given", "Template"], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/manager/runner.go#L937-L939", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "manager/runner.go", "func_name": "TemplateConfigMapping", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TemplateConfigMapping returns a mapping between the template ID and the set\n// of TemplateConfig represented by the template ID", "docstring_tokens": ["TemplateConfigMapping", "returns", "a", "mapping", "between", "the", "template", "ID", "and", "the", "set", "of", "TemplateConfig", "represented", "by", "the", "template", "ID"], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/manager/runner.go#L943-L955", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "manager/runner.go", "func_name": "allTemplatesRendered", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// allTemplatesRendered returns true if all the templates in this Runner have\n// been rendered at least one time.", "docstring_tokens": ["allTemplatesRendered", "returns", "true", "if", "all", "the", "templates", "in", "this", "Runner", "have", "been", "rendered", "at", "least", "one", "time", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/manager/runner.go#L959-L984", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "manager/runner.go", "func_name": "childEnv", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// childEnv creates a map of environment variables for child processes to have\n// access to configurations in Consul Template's configuration.", "docstring_tokens": ["childEnv", "creates", "a", "map", "of", "environment", "variables", "for", "child", "processes", "to", "have", "access", "to", "configurations", "in", "Consul", "Template", "s", "configuration", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/manager/runner.go#L988-L1040", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "manager/runner.go", "func_name": "storePid", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// storePid is used to write out a PID file to disk.", "docstring_tokens": ["storePid", "is", "used", "to", "write", "out", "a", "PID", "file", "to", "disk", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/manager/runner.go#L1043-L1063", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "manager/runner.go", "func_name": "deletePid", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// deletePid is used to remove the PID on exit.", "docstring_tokens": ["deletePid", "is", "used", "to", "remove", "the", "PID", "on", "exit", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/manager/runner.go#L1066-L1087", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "manager/runner.go", "func_name": "spawnChild", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// spawnChild spawns a child process with the given inputs and returns the\n// resulting child.", "docstring_tokens": ["spawnChild", "spawns", "a", "child", "process", "with", "the", "given", "inputs", "and", "returns", "the", "resulting", "child", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/manager/runner.go#L1115-L1145", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "manager/runner.go", "func_name": "newQuiescence", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newQuiescence creates a new quiescence timer for the given template.", "docstring_tokens": ["newQuiescence", "creates", "a", "new", "quiescence", "timer", "for", "the", "given", "template", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/manager/runner.go#L1159-L1166", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "manager/runner.go", "func_name": "tick", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// tick updates the minimum quiescence timer.", "docstring_tokens": ["tick", "updates", "the", "minimum", "quiescence", "timer", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/manager/runner.go#L1169-L1197", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "manager/runner.go", "func_name": "findCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// findCommand searches the list of template configs for the given command and\n// returns it if it exists.", "docstring_tokens": ["findCommand", "searches", "the", "list", "of", "template", "configs", "for", "the", "given", "command", "and", "returns", "it", "if", "it", "exists", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/manager/runner.go#L1201-L1209", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "manager/runner.go", "func_name": "newWatcher", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newWatcher creates a new watcher.", "docstring_tokens": ["newWatcher", "creates", "a", "new", "watcher", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/manager/runner.go#L1266-L1287", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/catalog_services.go", "func_name": "NewCatalogServicesQuery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCatalogServicesQuery parses a string of the format @dc.", "docstring_tokens": ["NewCatalogServicesQuery", "parses", "a", "string", "of", "the", "format"], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/catalog_services.go#L41-L51", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "config/consul.go", "func_name": "DefaultConsulConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DefaultConsulConfig returns a configuration that is populated with the\n// default values.", "docstring_tokens": ["DefaultConsulConfig", "returns", "a", "configuration", "that", "is", "populated", "with", "the", "default", "values", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/config/consul.go#L30-L37", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "signals/mapstructure.go", "func_name": "StringToSignalFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StringToSignalFunc parses a string as a signal based on the signal lookup\n// table. If the user supplied an empty string or nil, a special \"nil signal\"\n// is returned. Clients should check for this value and set the response back\n// nil after mapstructure finishes parsing.", "docstring_tokens": ["StringToSignalFunc", "parses", "a", "string", "as", "a", "signal", "based", "on", "the", "signal", "lookup", "table", ".", "If", "the", "user", "supplied", "an", "empty", "string", "or", "nil", "a", "special", "nil", "signal", "is", "returned", ".", "Clients", "should", "check", "for", "this", "value", "and", "set", "the", "response", "back", "nil", "after", "mapstructure", "finishes", "parsing", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/signals/mapstructure.go#L13-L32", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "config/wait.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns the string format for this wait variable", "docstring_tokens": ["String", "returns", "the", "string", "format", "for", "this", "wait", "variable"], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/config/wait.go#L189-L191", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "dependency/vault_token.go", "func_name": "NewVaultTokenQuery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewVaultTokenQuery creates a new dependency.", "docstring_tokens": ["NewVaultTokenQuery", "creates", "a", "new", "dependency", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/dependency/vault_token.go#L24-L37", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "logging/logging.go", "func_name": "NewLogFilter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLogFilter returns a LevelFilter that is configured with the log levels that\n// we use.", "docstring_tokens": ["NewLogFilter", "returns", "a", "LevelFilter", "that", "is", "configured", "with", "the", "log", "levels", "that", "we", "use", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/logging/logging.go#L72-L78", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "logging/logging.go", "func_name": "ValidateLevelFilter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidateLevelFilter verifies that the log levels within the filter are valid.", "docstring_tokens": ["ValidateLevelFilter", "verifies", "that", "the", "log", "levels", "within", "the", "filter", "are", "valid", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/logging/logging.go#L81-L88", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "datacentersFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// datacentersFunc returns or accumulates datacenter dependencies.", "docstring_tokens": ["datacentersFunc", "returns", "or", "accumulates", "datacenter", "dependencies", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L29-L59", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "envFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// envFunc returns a function which checks the value of an environment variable.\n// Invokers can specify their own environment, which takes precedences over any\n// real environment variables", "docstring_tokens": ["envFunc", "returns", "a", "function", "which", "checks", "the", "value", "of", "an", "environment", "variable", ".", "Invokers", "can", "specify", "their", "own", "environment", "which", "takes", "precedences", "over", "any", "real", "environment", "variables"], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L64-L75", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "executeTemplateFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// executeTemplateFunc executes the given template in the context of the\n// parent. If an argument is specified, it will be used as the context instead.\n// This can be used for nested template definitions.", "docstring_tokens": ["executeTemplateFunc", "executes", "the", "given", "template", "in", "the", "context", "of", "the", "parent", ".", "If", "an", "argument", "is", "specified", "it", "will", "be", "used", "as", "the", "context", "instead", ".", "This", "can", "be", "used", "for", "nested", "template", "definitions", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L80-L98", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "fileFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// fileFunc returns or accumulates file dependencies.", "docstring_tokens": ["fileFunc", "returns", "or", "accumulates", "file", "dependencies", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L101-L125", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "keyFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// keyFunc returns or accumulates key dependencies.", "docstring_tokens": ["keyFunc", "returns", "or", "accumulates", "key", "dependencies", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L128-L153", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "keyExistsFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// keyExistsFunc returns true if a key exists, false otherwise.", "docstring_tokens": ["keyExistsFunc", "returns", "true", "if", "a", "key", "exists", "false", "otherwise", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L156-L177", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "nodeFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// nodeFunc returns or accumulates catalog node dependency.", "docstring_tokens": ["nodeFunc", "returns", "or", "accumulates", "catalog", "node", "dependency", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L240-L258", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "nodesFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// nodesFunc returns or accumulates catalog node dependencies.", "docstring_tokens": ["nodesFunc", "returns", "or", "accumulates", "catalog", "node", "dependencies", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L261-L280", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "secretFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// secretFunc returns or accumulates secret dependencies from Vault.", "docstring_tokens": ["secretFunc", "returns", "or", "accumulates", "secret", "dependencies", "from", "Vault", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L283-L328", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "secretsFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// secretsFunc returns or accumulates a list of secret dependencies from Vault.", "docstring_tokens": ["secretsFunc", "returns", "or", "accumulates", "a", "list", "of", "secret", "dependencies", "from", "Vault", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L331-L355", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "serviceFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// serviceFunc returns or accumulates health service dependencies.", "docstring_tokens": ["serviceFunc", "returns", "or", "accumulates", "health", "service", "dependencies", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L358-L381", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "servicesFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// servicesFunc returns or accumulates catalog services dependencies.", "docstring_tokens": ["servicesFunc", "returns", "or", "accumulates", "catalog", "services", "dependencies", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L384-L403", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "treeFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// treeFunc returns or accumulates keyPrefix dependencies.", "docstring_tokens": ["treeFunc", "returns", "or", "accumulates", "keyPrefix", "dependencies", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L406-L436", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "base64Decode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// base64Decode decodes the given string as a base64 string, returning an error\n// if it fails.", "docstring_tokens": ["base64Decode", "decodes", "the", "given", "string", "as", "a", "base64", "string", "returning", "an", "error", "if", "it", "fails", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L440-L446", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "base64Encode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// base64Encode encodes the given value into a string represented as base64.", "docstring_tokens": ["base64Encode", "encodes", "the", "given", "value", "into", "a", "string", "represented", "as", "base64", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L449-L451", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "base64URLDecode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// base64URLDecode decodes the given string as a URL-safe base64 string.", "docstring_tokens": ["base64URLDecode", "decodes", "the", "given", "string", "as", "a", "URL", "-", "safe", "base64", "string", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L454-L460", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "base64URLEncode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// base64URLEncode encodes the given string to be URL-safe.", "docstring_tokens": ["base64URLEncode", "encodes", "the", "given", "string", "to", "be", "URL", "-", "safe", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L463-L465", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "byTag", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// byTag is a template func that takes the provided services and\n// produces a map based on Service tags.\n//\n// The map key is a string representing the service tag. The map value is a\n// slice of Services which have the tag assigned.", "docstring_tokens": ["byTag", "is", "a", "template", "func", "that", "takes", "the", "provided", "services", "and", "produces", "a", "map", "based", "on", "Service", "tags", ".", "The", "map", "key", "is", "a", "string", "representing", "the", "service", "tag", ".", "The", "map", "value", "is", "a", "slice", "of", "Services", "which", "have", "the", "tag", "assigned", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L512-L540", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "explode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// explode is used to expand a list of keypairs into a deeply-nested hash.", "docstring_tokens": ["explode", "is", "used", "to", "expand", "a", "list", "of", "keypairs", "into", "a", "deeply", "-", "nested", "hash", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L572-L580", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "explodeHelper", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// explodeHelper is a recursive helper for explode.", "docstring_tokens": ["explodeHelper", "is", "a", "recursive", "helper", "for", "explode", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L583-L604", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "in", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// in searches for a given value in a given interface.", "docstring_tokens": ["in", "searches", "for", "a", "given", "value", "in", "a", "given", "interface", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L607-L656", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "indent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Indent prefixes each line of a string with the specified number of spaces", "docstring_tokens": ["Indent", "prefixes", "each", "line", "of", "a", "string", "with", "the", "specified", "number", "of", "spaces"], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L659-L678", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "join", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// join is a version of strings.Join that can be piped", "docstring_tokens": ["join", "is", "a", "version", "of", "strings", ".", "Join", "that", "can", "be", "piped"], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L721-L723", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "parseBool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseBool parses a string into a boolean", "docstring_tokens": ["parseBool", "parses", "a", "string", "into", "a", "boolean"], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L731-L741", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "parseFloat", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseFloat parses a string into a base 10 float", "docstring_tokens": ["parseFloat", "parses", "a", "string", "into", "a", "base", "10", "float"], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L744-L754", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "parseInt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseInt parses a string into a base 10 int", "docstring_tokens": ["parseInt", "parses", "a", "string", "into", "a", "base", "10", "int"], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L757-L767", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "parseJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseJSON returns a structure for valid JSON", "docstring_tokens": ["parseJSON", "returns", "a", "structure", "for", "valid", "JSON"], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L770-L780", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "parseUint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseUint parses a string into a base 10 int", "docstring_tokens": ["parseUint", "parses", "a", "string", "into", "a", "base", "10", "int"], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L783-L793", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "plugin", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// plugin executes a subprocess as the given command string. It is assumed the\n// resulting command returns JSON which is then parsed and returned as the\n// value for use in the template.", "docstring_tokens": ["plugin", "executes", "a", "subprocess", "as", "the", "given", "command", "string", ".", "It", "is", "assumed", "the", "resulting", "command", "returns", "JSON", "which", "is", "then", "parsed", "and", "returned", "as", "the", "value", "for", "use", "in", "the", "template", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L798-L844", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "replaceAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// replaceAll replaces all occurrences of a value in a string with the given\n// replacement value.", "docstring_tokens": ["replaceAll", "replaces", "all", "occurrences", "of", "a", "value", "in", "a", "string", "with", "the", "given", "replacement", "value", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L848-L850", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "regexReplaceAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// regexReplaceAll replaces all occurrences of a regular expression with\n// the given replacement value.", "docstring_tokens": ["regexReplaceAll", "replaces", "all", "occurrences", "of", "a", "regular", "expression", "with", "the", "given", "replacement", "value", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L854-L860", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "regexMatch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// regexMatch returns true or false if the string matches\n// the given regular expression", "docstring_tokens": ["regexMatch", "returns", "true", "or", "false", "if", "the", "string", "matches", "the", "given", "regular", "expression"], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L864-L870", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "split", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// split is a version of strings.Split that can be piped", "docstring_tokens": ["split", "is", "a", "version", "of", "strings", ".", "Split", "that", "can", "be", "piped"], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L873-L879", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "timestamp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// timestamp returns the current UNIX timestamp in UTC. If an argument is\n// specified, it will be used to format the timestamp.", "docstring_tokens": ["timestamp", "returns", "the", "current", "UNIX", "timestamp", "in", "UTC", ".", "If", "an", "argument", "is", "specified", "it", "will", "be", "used", "to", "format", "the", "timestamp", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L883-L896", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "toJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// toJSON converts the given structure into a deeply nested JSON string.", "docstring_tokens": ["toJSON", "converts", "the", "given", "structure", "into", "a", "deeply", "nested", "JSON", "string", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L904-L910", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "toJSONPretty", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// toJSONPretty converts the given structure into a deeply nested pretty JSON\n// string.", "docstring_tokens": ["toJSONPretty", "converts", "the", "given", "structure", "into", "a", "deeply", "nested", "pretty", "JSON", "string", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L914-L920", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "toYAML", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// toYAML converts the given structure into a deeply nested YAML string.", "docstring_tokens": ["toYAML", "converts", "the", "given", "structure", "into", "a", "deeply", "nested", "YAML", "string", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L933-L939", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "toTOML", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// toTOML converts the given structure into a deeply nested TOML string.", "docstring_tokens": ["toTOML", "converts", "the", "given", "structure", "into", "a", "deeply", "nested", "TOML", "string", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L942-L953", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// add returns the sum of a and b.", "docstring_tokens": ["add", "returns", "the", "sum", "of", "a", "and", "b", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L956-L997", "partition": "valid"} +{"repo": "hashicorp/consul-template", "path": "template/funcs.go", "func_name": "modulo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// modulo returns the modulo of b from a.", "docstring_tokens": ["modulo", "returns", "the", "modulo", "of", "b", "from", "a", "."], "sha": "9ef7c22f1ec0540ef746d0ecf873353ae57c4e77", "url": "https://github.com/hashicorp/consul-template/blob/9ef7c22f1ec0540ef746d0ecf873353ae57c4e77/template/funcs.go#L1132-L1158", "partition": "valid"} +{"repo": "patrickmn/go-cache", "path": "cache.go", "func_name": "Expired", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns true if the item has expired.", "docstring_tokens": ["Returns", "true", "if", "the", "item", "has", "expired", "."], "sha": "5633e0862627c011927fa39556acae8b1f1df58a", "url": "https://github.com/patrickmn/go-cache/blob/5633e0862627c011927fa39556acae8b1f1df58a/cache.go#L19-L24", "partition": "valid"} +{"repo": "patrickmn/go-cache", "path": "cache.go", "func_name": "SetDefault", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add an item to the cache, replacing any existing item, using the default\n// expiration.", "docstring_tokens": ["Add", "an", "item", "to", "the", "cache", "replacing", "any", "existing", "item", "using", "the", "default", "expiration", "."], "sha": "5633e0862627c011927fa39556acae8b1f1df58a", "url": "https://github.com/patrickmn/go-cache/blob/5633e0862627c011927fa39556acae8b1f1df58a/cache.go#L86-L88", "partition": "valid"} +{"repo": "patrickmn/go-cache", "path": "cache.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add an item to the cache only if an item doesn't already exist for the given\n// key, or if the existing item has expired. Returns an error otherwise.", "docstring_tokens": ["Add", "an", "item", "to", "the", "cache", "only", "if", "an", "item", "doesn", "t", "already", "exist", "for", "the", "given", "key", "or", "if", "the", "existing", "item", "has", "expired", ".", "Returns", "an", "error", "otherwise", "."], "sha": "5633e0862627c011927fa39556acae8b1f1df58a", "url": "https://github.com/patrickmn/go-cache/blob/5633e0862627c011927fa39556acae8b1f1df58a/cache.go#L92-L102", "partition": "valid"} +{"repo": "patrickmn/go-cache", "path": "cache.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get an item from the cache. Returns the item or nil, and a bool indicating\n// whether the key was found.", "docstring_tokens": ["Get", "an", "item", "from", "the", "cache", ".", "Returns", "the", "item", "or", "nil", "and", "a", "bool", "indicating", "whether", "the", "key", "was", "found", "."], "sha": "5633e0862627c011927fa39556acae8b1f1df58a", "url": "https://github.com/patrickmn/go-cache/blob/5633e0862627c011927fa39556acae8b1f1df58a/cache.go#L120-L136", "partition": "valid"} +{"repo": "patrickmn/go-cache", "path": "cache.go", "func_name": "IncrementInt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Increment an item of type int by n. Returns an error if the item's value is\n// not an int, or if it was not found. If there is no error, the incremented\n// value is returned.", "docstring_tokens": ["Increment", "an", "item", "of", "type", "int", "by", "n", ".", "Returns", "an", "error", "if", "the", "item", "s", "value", "is", "not", "an", "int", "or", "if", "it", "was", "not", "found", ".", "If", "there", "is", "no", "error", "the", "incremented", "value", "is", "returned", "."], "sha": "5633e0862627c011927fa39556acae8b1f1df58a", "url": "https://github.com/patrickmn/go-cache/blob/5633e0862627c011927fa39556acae8b1f1df58a/cache.go#L259-L276", "partition": "valid"} +{"repo": "patrickmn/go-cache", "path": "cache.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete an item from the cache. Does nothing if the key is not in the cache.", "docstring_tokens": ["Delete", "an", "item", "from", "the", "cache", ".", "Does", "nothing", "if", "the", "key", "is", "not", "in", "the", "cache", "."], "sha": "5633e0862627c011927fa39556acae8b1f1df58a", "url": "https://github.com/patrickmn/go-cache/blob/5633e0862627c011927fa39556acae8b1f1df58a/cache.go#L905-L912", "partition": "valid"} +{"repo": "patrickmn/go-cache", "path": "cache.go", "func_name": "DeleteExpired", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete all expired items from the cache.", "docstring_tokens": ["Delete", "all", "expired", "items", "from", "the", "cache", "."], "sha": "5633e0862627c011927fa39556acae8b1f1df58a", "url": "https://github.com/patrickmn/go-cache/blob/5633e0862627c011927fa39556acae8b1f1df58a/cache.go#L931-L948", "partition": "valid"} +{"repo": "patrickmn/go-cache", "path": "cache.go", "func_name": "Items", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Copies all unexpired items in the cache into a new map and returns it.", "docstring_tokens": ["Copies", "all", "unexpired", "items", "in", "the", "cache", "into", "a", "new", "map", "and", "returns", "it", "."], "sha": "5633e0862627c011927fa39556acae8b1f1df58a", "url": "https://github.com/patrickmn/go-cache/blob/5633e0862627c011927fa39556acae8b1f1df58a/cache.go#L1038-L1053", "partition": "valid"} +{"repo": "patrickmn/go-cache", "path": "cache.go", "func_name": "ItemCount", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns the number of items in the cache. This may include items that have\n// expired, but have not yet been cleaned up.", "docstring_tokens": ["Returns", "the", "number", "of", "items", "in", "the", "cache", ".", "This", "may", "include", "items", "that", "have", "expired", "but", "have", "not", "yet", "been", "cleaned", "up", "."], "sha": "5633e0862627c011927fa39556acae8b1f1df58a", "url": "https://github.com/patrickmn/go-cache/blob/5633e0862627c011927fa39556acae8b1f1df58a/cache.go#L1057-L1062", "partition": "valid"} +{"repo": "patrickmn/go-cache", "path": "cache.go", "func_name": "Flush", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete all items from the cache.", "docstring_tokens": ["Delete", "all", "items", "from", "the", "cache", "."], "sha": "5633e0862627c011927fa39556acae8b1f1df58a", "url": "https://github.com/patrickmn/go-cache/blob/5633e0862627c011927fa39556acae8b1f1df58a/cache.go#L1065-L1069", "partition": "valid"} +{"repo": "patrickmn/go-cache", "path": "sharded.go", "func_name": "djb33", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// djb2 with better shuffling. 5x faster than FNV with the hash.Hash overhead.", "docstring_tokens": ["djb2", "with", "better", "shuffling", ".", "5x", "faster", "than", "FNV", "with", "the", "hash", ".", "Hash", "overhead", "."], "sha": "5633e0862627c011927fa39556acae8b1f1df58a", "url": "https://github.com/patrickmn/go-cache/blob/5633e0862627c011927fa39556acae8b1f1df58a/sharded.go#L34-L63", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eni/netlinkwrapper/netlink_linux.go", "func_name": "LinkByName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LinkByName finds a link by name and returns a pointer to the object", "docstring_tokens": ["LinkByName", "finds", "a", "link", "by", "name", "and", "returns", "a", "pointer", "to", "the", "object"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eni/netlinkwrapper/netlink_linux.go#L35-L37", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/mocks/engine_mocks.go", "func_name": "NewMockTaskEngine", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockTaskEngine creates a new mock instance", "docstring_tokens": ["NewMockTaskEngine", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/mocks/engine_mocks.go#L44-L48", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/mocks/engine_mocks.go", "func_name": "AddTask", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddTask indicates an expected call of AddTask", "docstring_tokens": ["AddTask", "indicates", "an", "expected", "call", "of", "AddTask"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/mocks/engine_mocks.go#L61-L63", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/mocks/engine_mocks.go", "func_name": "GetTaskByArn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTaskByArn mocks base method", "docstring_tokens": ["GetTaskByArn", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/mocks/engine_mocks.go#L76-L81", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/mocks/engine_mocks.go", "func_name": "ListTasks", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListTasks mocks base method", "docstring_tokens": ["ListTasks", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/mocks/engine_mocks.go#L101-L106", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/mocks/engine_mocks.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON mocks base method", "docstring_tokens": ["MarshalJSON", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/mocks/engine_mocks.go#L114-L119", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/mocks/engine_mocks.go", "func_name": "MustInit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustInit mocks base method", "docstring_tokens": ["MustInit", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/mocks/engine_mocks.go#L127-L129", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/mocks/engine_mocks.go", "func_name": "StateChangeEvents", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StateChangeEvents mocks base method", "docstring_tokens": ["StateChangeEvents", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/mocks/engine_mocks.go#L147-L151", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/mocks/engine_mocks.go", "func_name": "Version", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Version indicates an expected call of Version", "docstring_tokens": ["Version", "indicates", "an", "expected", "call", "of", "Version"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/mocks/engine_mocks.go#L179-L181", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/mocks/engine_mocks.go", "func_name": "NewMockImageManager", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockImageManager creates a new mock instance", "docstring_tokens": ["NewMockImageManager", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/mocks/engine_mocks.go#L195-L199", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/mocks/engine_mocks.go", "func_name": "AddAllImageStates", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddAllImageStates mocks base method", "docstring_tokens": ["AddAllImageStates", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/mocks/engine_mocks.go#L207-L209", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/mocks/engine_mocks.go", "func_name": "AddAllImageStates", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddAllImageStates indicates an expected call of AddAllImageStates", "docstring_tokens": ["AddAllImageStates", "indicates", "an", "expected", "call", "of", "AddAllImageStates"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/mocks/engine_mocks.go#L212-L214", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/mocks/engine_mocks.go", "func_name": "GetImageStateFromImageName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetImageStateFromImageName mocks base method", "docstring_tokens": ["GetImageStateFromImageName", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/mocks/engine_mocks.go#L217-L222", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/mocks/engine_mocks.go", "func_name": "RecordContainerReference", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RecordContainerReference mocks base method", "docstring_tokens": ["RecordContainerReference", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/mocks/engine_mocks.go#L230-L234", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/mocks/engine_mocks.go", "func_name": "StartImageCleanupProcess", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StartImageCleanupProcess mocks base method", "docstring_tokens": ["StartImageCleanupProcess", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/mocks/engine_mocks.go#L264-L266", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ec2/ec2_metadata_client.go", "func_name": "NewEC2MetadataClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewEC2MetadataClient creates an ec2metadata client to retrieve metadata", "docstring_tokens": ["NewEC2MetadataClient", "creates", "an", "ec2metadata", "client", "to", "retrieve", "metadata"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ec2/ec2_metadata_client.go#L82-L91", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ec2/ec2_metadata_client.go", "func_name": "DefaultCredentials", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DefaultCredentials returns the credentials associated with the instance iam role", "docstring_tokens": ["DefaultCredentials", "returns", "the", "credentials", "associated", "with", "the", "instance", "iam", "role"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ec2/ec2_metadata_client.go#L94-L117", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ec2/ec2_metadata_client.go", "func_name": "GetDynamicData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDynamicData returns the dynamic data with provided path from instance metadata", "docstring_tokens": ["GetDynamicData", "returns", "the", "dynamic", "data", "with", "provided", "path", "from", "instance", "metadata"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ec2/ec2_metadata_client.go#L120-L122", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ec2/ec2_metadata_client.go", "func_name": "GetMetadata", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMetadata returns the metadata from instance metadata service specified by the path", "docstring_tokens": ["GetMetadata", "returns", "the", "metadata", "from", "instance", "metadata", "service", "specified", "by", "the", "path"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ec2/ec2_metadata_client.go#L131-L133", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ec2/ec2_metadata_client.go", "func_name": "VPCID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// VPCID returns the VPC id for the network interface, given\n// its mac address", "docstring_tokens": ["VPCID", "returns", "the", "VPC", "id", "for", "the", "network", "interface", "given", "its", "mac", "address"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ec2/ec2_metadata_client.go#L143-L145", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ec2/ec2_metadata_client.go", "func_name": "SubnetID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SubnetID returns the subnet id for the network interface,\n// given its mac address", "docstring_tokens": ["SubnetID", "returns", "the", "subnet", "id", "for", "the", "network", "interface", "given", "its", "mac", "address"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ec2/ec2_metadata_client.go#L149-L151", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/handler/refresh_credentials_handler.go", "func_name": "newRefreshCredentialsHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newRefreshCredentialsHandler returns a new refreshCredentialsHandler object", "docstring_tokens": ["newRefreshCredentialsHandler", "returns", "a", "new", "refreshCredentialsHandler", "object"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/handler/refresh_credentials_handler.go#L44-L58", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/handler/refresh_credentials_handler.go", "func_name": "handlerFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handlerFunc returns the request handler function for the ecsacs.IAMRoleCredentialsMessage", "docstring_tokens": ["handlerFunc", "returns", "the", "request", "handler", "function", "for", "the", "ecsacs", ".", "IAMRoleCredentialsMessage"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/handler/refresh_credentials_handler.go#L61-L66", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/handler/refresh_credentials_handler.go", "func_name": "ackMessage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ackMessageId sends an IAMRoleCredentialsAckRequest to the backend", "docstring_tokens": ["ackMessageId", "sends", "an", "IAMRoleCredentialsAckRequest", "to", "the", "backend"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/handler/refresh_credentials_handler.go#L95-L101", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/handler/refresh_credentials_handler.go", "func_name": "handleMessages", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handleMessages processes refresh credentials messages in the buffer in-order", "docstring_tokens": ["handleMessages", "processes", "refresh", "credentials", "messages", "in", "the", "buffer", "in", "-", "order"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/handler/refresh_credentials_handler.go#L104-L113", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/handler/refresh_credentials_handler.go", "func_name": "handleSingleMessage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handleSingleMessage processes a single refresh credentials message.", "docstring_tokens": ["handleSingleMessage", "processes", "a", "single", "refresh", "credentials", "message", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/handler/refresh_credentials_handler.go#L116-L162", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/handler/refresh_credentials_handler.go", "func_name": "validRoleType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// validRoleType returns false if the RoleType in the acs refresh payload is not\n// one of the expected types. TaskApplication, TaskExecution", "docstring_tokens": ["validRoleType", "returns", "false", "if", "the", "RoleType", "in", "the", "acs", "refresh", "payload", "is", "not", "one", "of", "the", "expected", "types", ".", "TaskApplication", "TaskExecution"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/handler/refresh_credentials_handler.go#L205-L214", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/handler/payload_handler.go", "func_name": "newPayloadRequestHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newPayloadRequestHandler returns a new payloadRequestHandler object", "docstring_tokens": ["newPayloadRequestHandler", "returns", "a", "new", "payloadRequestHandler", "object"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/handler/payload_handler.go#L56-L84", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/handler/payload_handler.go", "func_name": "handlerFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handlerFunc returns the request handler function for the ecsacs.PayloadMessage type", "docstring_tokens": ["handlerFunc", "returns", "the", "request", "handler", "function", "for", "the", "ecsacs", ".", "PayloadMessage", "type"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/handler/payload_handler.go#L87-L92", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/handler/payload_handler.go", "func_name": "ackMessageId", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ackMessageId sends an AckRequest for a message id", "docstring_tokens": ["ackMessageId", "sends", "an", "AckRequest", "for", "a", "message", "id"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/handler/payload_handler.go#L121-L131", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/handler/payload_handler.go", "func_name": "handleMessages", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handleMessages processes payload messages in the payload message buffer in-order", "docstring_tokens": ["handleMessages", "processes", "payload", "messages", "in", "the", "payload", "message", "buffer", "in", "-", "order"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/handler/payload_handler.go#L134-L143", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/handler/payload_handler.go", "func_name": "handleSingleMessage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handleSingleMessage processes a single payload message. It adds tasks in the message to the task engine\n// An error is returned if the message was not handled correctly. The error is being used only for testing\n// today. In the future, it could be used for doing more interesting things.", "docstring_tokens": ["handleSingleMessage", "processes", "a", "single", "payload", "message", ".", "It", "adds", "tasks", "in", "the", "message", "to", "the", "task", "engine", "An", "error", "is", "returned", "if", "the", "message", "was", "not", "handled", "correctly", ".", "The", "error", "is", "being", "used", "only", "for", "testing", "today", ".", "In", "the", "future", "it", "could", "be", "used", "for", "doing", "more", "interesting", "things", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/handler/payload_handler.go#L148-L175", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/handler/payload_handler.go", "func_name": "addPayloadTasks", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// addPayloadTasks does validation on each task and, for all valid ones, adds\n// it to the task engine. It returns a bool indicating if it could add every\n// task to the taskEngine and a slice of credential ack requests", "docstring_tokens": ["addPayloadTasks", "does", "validation", "on", "each", "task", "and", "for", "all", "valid", "ones", "adds", "it", "to", "the", "task", "engine", ".", "It", "returns", "a", "bool", "indicating", "if", "it", "could", "add", "every", "task", "to", "the", "taskEngine", "and", "a", "slice", "of", "credential", "ack", "requests"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/handler/payload_handler.go#L180-L270", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/handler/payload_handler.go", "func_name": "addTasks", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// addTasks adds the tasks to the task engine based on the skipAddTask condition\n// This is used to add non-stopped tasks before adding stopped tasks", "docstring_tokens": ["addTasks", "adds", "the", "tasks", "to", "the", "task", "engine", "based", "on", "the", "skipAddTask", "condition", "This", "is", "used", "to", "add", "non", "-", "stopped", "tasks", "before", "adding", "stopped", "tasks"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/handler/payload_handler.go#L274-L306", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/handler/payload_handler.go", "func_name": "handleUnrecognizedTask", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handleUnrecognizedTask handles unrecognized tasks by sending 'stopped' with\n// a suitable reason to the backend", "docstring_tokens": ["handleUnrecognizedTask", "handles", "unrecognized", "tasks", "by", "sending", "stopped", "with", "a", "suitable", "reason", "to", "the", "backend"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/handler/payload_handler.go#L337-L358", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/task_server_setup.go", "func_name": "v2HandlersSetup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// v2HandlersSetup adds all handlers in v2 package to the mux router.", "docstring_tokens": ["v2HandlersSetup", "adds", "all", "handlers", "in", "v2", "package", "to", "the", "mux", "router", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/task_server_setup.go#L95-L113", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/task_server_setup.go", "func_name": "v3HandlersSetup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// v3HandlersSetup adds all handlers in v3 package to the mux router.", "docstring_tokens": ["v3HandlersSetup", "adds", "all", "handlers", "in", "v3", "package", "to", "the", "mux", "router", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/task_server_setup.go#L116-L131", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/app/mocks/credentials_mocks.go", "func_name": "NewMockProvider", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockProvider creates a new mock instance", "docstring_tokens": ["NewMockProvider", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/app/mocks/credentials_mocks.go#L39-L43", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/app/mocks/credentials_mocks.go", "func_name": "IsExpired", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsExpired mocks base method", "docstring_tokens": ["IsExpired", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/app/mocks/credentials_mocks.go#L51-L55", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/app/mocks/credentials_mocks.go", "func_name": "IsExpired", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsExpired indicates an expected call of IsExpired", "docstring_tokens": ["IsExpired", "indicates", "an", "expected", "call", "of", "IsExpired"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/app/mocks/credentials_mocks.go#L58-L60", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/app/mocks/credentials_mocks.go", "func_name": "Retrieve", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Retrieve mocks base method", "docstring_tokens": ["Retrieve", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/app/mocks/credentials_mocks.go#L63-L68", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/stats/resolver/mock/resolver.go", "func_name": "NewMockContainerMetadataResolver", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockContainerMetadataResolver creates a new mock instance", "docstring_tokens": ["NewMockContainerMetadataResolver", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/stats/resolver/mock/resolver.go#L40-L44", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/stats/resolver/mock/resolver.go", "func_name": "ResolveContainer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ResolveContainer mocks base method", "docstring_tokens": ["ResolveContainer", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/stats/resolver/mock/resolver.go#L52-L57", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/stats/resolver/mock/resolver.go", "func_name": "ResolveContainer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ResolveContainer indicates an expected call of ResolveContainer", "docstring_tokens": ["ResolveContainer", "indicates", "an", "expected", "call", "of", "ResolveContainer"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/stats/resolver/mock/resolver.go#L60-L62", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/stats/resolver/mock/resolver.go", "func_name": "ResolveTask", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ResolveTask mocks base method", "docstring_tokens": ["ResolveTask", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/stats/resolver/mock/resolver.go#L65-L70", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/v2/response.go", "func_name": "NewTaskResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTaskResponse creates a new response object for the task", "docstring_tokens": ["NewTaskResponse", "creates", "a", "new", "response", "object", "for", "the", "task"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/v2/response.go#L80-L142", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/v2/response.go", "func_name": "NewContainerResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewContainerResponse creates a new container response based on container id", "docstring_tokens": ["NewContainerResponse", "creates", "a", "new", "container", "response", "based", "on", "container", "id"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/v2/response.go#L167-L182", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/app/args/flag.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New creates a new Args object from the argument list", "docstring_tokens": ["New", "creates", "a", "new", "Args", "object", "from", "the", "argument", "list"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/app/args/flag.go#L57-L76", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/config/config_windows.go", "func_name": "DefaultConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DefaultConfig returns the default configuration for Windows", "docstring_tokens": ["DefaultConfig", "returns", "the", "default", "configuration", "for", "Windows"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/config/config_windows.go#L56-L105", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/httpclient/httpclient.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New returns an ECS httpClient with a roundtrip timeout of the given duration", "docstring_tokens": ["New", "returns", "an", "ECS", "httpClient", "with", "a", "roundtrip", "timeout", "of", "the", "given", "duration"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/httpclient/httpclient.go#L59-L82", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/util.go", "func_name": "RemoveFromTaskArray", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveFromTaskArray removes the element at ndx from an array of task\n// pointers, arr. If the ndx is out of bounds, it returns arr unchanged.", "docstring_tokens": ["RemoveFromTaskArray", "removes", "the", "element", "at", "ndx", "from", "an", "array", "of", "task", "pointers", "arr", ".", "If", "the", "ndx", "is", "out", "of", "bounds", "it", "returns", "arr", "unchanged", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/util.go#L18-L23", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task_windows.go", "func_name": "adjustForPlatform", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// adjustForPlatform makes Windows-specific changes to the task after unmarshal", "docstring_tokens": ["adjustForPlatform", "makes", "Windows", "-", "specific", "changes", "to", "the", "task", "after", "unmarshal"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task_windows.go#L48-L54", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task_windows.go", "func_name": "platformHostConfigOverride", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// platformHostConfigOverride provides an entry point to set up default HostConfig options to be\n// passed to Docker API.", "docstring_tokens": ["platformHostConfigOverride", "provides", "an", "entry", "point", "to", "set", "up", "default", "HostConfig", "options", "to", "be", "passed", "to", "Docker", "API", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task_windows.go#L95-L107", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/eni/enistatus.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String return the string value of the eniattachment status", "docstring_tokens": ["String", "return", "the", "string", "value", "of", "the", "eniattachment", "status"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/eni/enistatus.go#L35-L42", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/gogenerate/awssdk.go", "func_name": "_main", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// return-based exit code so the 'defer' works", "docstring_tokens": ["return", "-", "based", "exit", "code", "so", "the", "defer", "works"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/gogenerate/awssdk.go#L76-L94", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/ecsclient/retry_handler.go", "func_name": "RetryRules", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RetryRules returns the correct time to delay between retries for this\n// instance of a retry. For the first 14 requests, it follows an exponential\n// backoff between 30ms and 1 minute.\n// See the const comments for math on how this gets us to around 24 hours\n// total.", "docstring_tokens": ["RetryRules", "returns", "the", "correct", "time", "to", "delay", "between", "retries", "for", "this", "instance", "of", "a", "retry", ".", "For", "the", "first", "14", "requests", "it", "follows", "an", "exponential", "backoff", "between", "30ms", "and", "1", "minute", ".", "See", "the", "const", "comments", "for", "math", "on", "how", "this", "gets", "us", "to", "around", "24", "hours", "total", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/ecsclient/retry_handler.go#L77-L85", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/ttime/mocks/time_mocks.go", "func_name": "NewMockTime", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockTime creates a new mock instance", "docstring_tokens": ["NewMockTime", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/ttime/mocks/time_mocks.go#L40-L44", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/ttime/mocks/time_mocks.go", "func_name": "After", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// After mocks base method", "docstring_tokens": ["After", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/ttime/mocks/time_mocks.go#L52-L56", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/ttime/mocks/time_mocks.go", "func_name": "AfterFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AfterFunc mocks base method", "docstring_tokens": ["AfterFunc", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/ttime/mocks/time_mocks.go#L64-L68", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/ttime/mocks/time_mocks.go", "func_name": "Now", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Now mocks base method", "docstring_tokens": ["Now", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/ttime/mocks/time_mocks.go#L76-L80", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/ttime/mocks/time_mocks.go", "func_name": "Now", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Now indicates an expected call of Now", "docstring_tokens": ["Now", "indicates", "an", "expected", "call", "of", "Now"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/ttime/mocks/time_mocks.go#L83-L85", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/ttime/mocks/time_mocks.go", "func_name": "Sleep", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sleep mocks base method", "docstring_tokens": ["Sleep", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/ttime/mocks/time_mocks.go#L88-L90", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/ttime/mocks/time_mocks.go", "func_name": "Sleep", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sleep indicates an expected call of Sleep", "docstring_tokens": ["Sleep", "indicates", "an", "expected", "call", "of", "Sleep"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/ttime/mocks/time_mocks.go#L93-L95", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/ttime/mocks/time_mocks.go", "func_name": "NewMockTimer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockTimer creates a new mock instance", "docstring_tokens": ["NewMockTimer", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/ttime/mocks/time_mocks.go#L109-L113", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/ttime/mocks/time_mocks.go", "func_name": "Reset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reset mocks base method", "docstring_tokens": ["Reset", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/ttime/mocks/time_mocks.go#L121-L125", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/ttime/mocks/time_mocks.go", "func_name": "Reset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reset indicates an expected call of Reset", "docstring_tokens": ["Reset", "indicates", "an", "expected", "call", "of", "Reset"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/ttime/mocks/time_mocks.go#L128-L130", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/ttime/mocks/time_mocks.go", "func_name": "Stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stop mocks base method", "docstring_tokens": ["Stop", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/ttime/mocks/time_mocks.go#L133-L137", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/ttime/mocks/time_mocks.go", "func_name": "Stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stop indicates an expected call of Stop", "docstring_tokens": ["Stop", "indicates", "an", "expected", "call", "of", "Stop"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/ttime/mocks/time_mocks.go#L140-L142", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/update_handler/updater.go", "func_name": "AddAgentUpdateHandlers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddAgentUpdateHandlers adds the needed update handlers to perform agent\n// updates", "docstring_tokens": ["AddAgentUpdateHandlers", "adds", "the", "needed", "update", "handlers", "to", "perform", "agent", "updates"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/update_handler/updater.go#L79-L88", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerapi/docker_client.go", "func_name": "sdkDockerClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns the Docker SDK Client", "docstring_tokens": ["Returns", "the", "Docker", "SDK", "Client"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerapi/docker_client.go#L283-L288", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerapi/docker_client.go", "func_name": "DockerStateToState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DockerStateToState converts the container status from docker to status recognized by the agent", "docstring_tokens": ["DockerStateToState", "converts", "the", "container", "status", "from", "docker", "to", "status", "recognized", "by", "the", "agent"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerapi/docker_client.go#L593-L609", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerapi/docker_client.go", "func_name": "MetadataFromContainer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MetadataFromContainer translates dockerContainer into DockerContainerMetadata", "docstring_tokens": ["MetadataFromContainer", "translates", "dockerContainer", "into", "DockerContainerMetadata"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerapi/docker_client.go#L749-L811", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerapi/docker_client.go", "func_name": "ContainerEvents", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Listen to the docker event stream for container changes and pass them up", "docstring_tokens": ["Listen", "to", "the", "docker", "event", "stream", "for", "container", "changes", "and", "pass", "them", "up"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerapi/docker_client.go#L846-L894", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerapi/docker_client.go", "func_name": "ListContainers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListContainers returns a slice of container IDs.", "docstring_tokens": ["ListContainers", "returns", "a", "slice", "of", "container", "IDs", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerapi/docker_client.go#L956-L976", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerapi/docker_client.go", "func_name": "ListPluginsWithFilters", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListPluginsWithFilters takes in filter arguments and returns the string of filtered Plugin names", "docstring_tokens": ["ListPluginsWithFilters", "takes", "in", "filter", "arguments", "and", "returns", "the", "string", "of", "filtered", "Plugin", "names"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerapi/docker_client.go#L1221-L1239", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerapi/docker_client.go", "func_name": "APIVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// APIVersion returns the client api version", "docstring_tokens": ["APIVersion", "returns", "the", "client", "api", "version"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerapi/docker_client.go#L1282-L1288", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerapi/docker_client.go", "func_name": "LoadImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadImage invokes loads an image from an input stream, with a specified timeout", "docstring_tokens": ["LoadImage", "invokes", "loads", "an", "image", "from", "an", "input", "stream", "with", "a", "specified", "timeout"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerapi/docker_client.go#L1402-L1416", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/image/types.go", "func_name": "UpdateContainerReference", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateContainerReference updates container reference in image state", "docstring_tokens": ["UpdateContainerReference", "updates", "container", "reference", "in", "image", "state"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/image/types.go#L55-L60", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/image/types.go", "func_name": "AddImageName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddImageName adds image name to image state", "docstring_tokens": ["AddImageName", "adds", "image", "name", "to", "image", "state"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/image/types.go#L63-L70", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/image/types.go", "func_name": "GetImageNamesCount", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetImageNamesCount returns number of image names", "docstring_tokens": ["GetImageNamesCount", "returns", "number", "of", "image", "names"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/image/types.go#L73-L77", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/image/types.go", "func_name": "UpdateImageState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateImageState updates image name and container reference in image state", "docstring_tokens": ["UpdateImageState", "updates", "image", "name", "and", "container", "reference", "in", "image", "state"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/image/types.go#L85-L88", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/image/types.go", "func_name": "RemoveImageName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveImageName removes image name from image state", "docstring_tokens": ["RemoveImageName", "removes", "image", "name", "from", "image", "state"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/image/types.go#L91-L99", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/image/types.go", "func_name": "HasImageName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasImageName returns true if image state contains the containerImageName", "docstring_tokens": ["HasImageName", "returns", "true", "if", "image", "state", "contains", "the", "containerImageName"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/image/types.go#L102-L109", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/image/types.go", "func_name": "RemoveContainerReference", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveContainerReference removes container reference from image state", "docstring_tokens": ["RemoveContainerReference", "removes", "container", "reference", "from", "image", "state"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/image/types.go#L112-L127", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/image/types.go", "func_name": "SetPullSucceeded", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetPullSucceeded sets the PullSucceeded of the imageState", "docstring_tokens": ["SetPullSucceeded", "sets", "the", "PullSucceeded", "of", "the", "imageState"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/image/types.go#L130-L135", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/image/types.go", "func_name": "GetPullSucceeded", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPullSucceeded safely returns the PullSucceeded of the imageState", "docstring_tokens": ["GetPullSucceeded", "safely", "returns", "the", "PullSucceeded", "of", "the", "imageState"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/image/types.go#L138-L143", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/image/types.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON marshals image state", "docstring_tokens": ["MarshalJSON", "marshals", "image", "state"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/image/types.go#L146-L161", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/status/taskstatus.go", "func_name": "UnmarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalJSON overrides the logic for parsing the JSON-encoded TaskStatus data", "docstring_tokens": ["UnmarshalJSON", "overrides", "the", "logic", "for", "parsing", "the", "JSON", "-", "encoded", "TaskStatus", "data"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/status/taskstatus.go#L80-L107", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/status/taskstatus.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON overrides the logic for JSON-encoding the TaskStatus type", "docstring_tokens": ["MarshalJSON", "overrides", "the", "logic", "for", "JSON", "-", "encoding", "the", "TaskStatus", "type"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/status/taskstatus.go#L110-L115", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecscni/plugin.go", "func_name": "NewClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClient creates a client of ecscni which is used to invoke the plugin", "docstring_tokens": ["NewClient", "creates", "a", "client", "of", "ecscni", "which", "is", "used", "to", "invoke", "the", "plugin"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecscni/plugin.go#L65-L76", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecscni/plugin.go", "func_name": "SetupNS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetupNS will set up the namespace of container, including create the bridge\n// and the veth pair, move the eni to container namespace, setup the routes", "docstring_tokens": ["SetupNS", "will", "set", "up", "the", "namespace", "of", "container", "including", "create", "the", "bridge", "and", "the", "veth", "pair", "move", "the", "eni", "to", "container", "namespace", "setup", "the", "routes"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecscni/plugin.go#L80-L105", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecscni/plugin.go", "func_name": "CleanupNS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CleanupNS will clean up the container namespace, including remove the veth\n// pair and stop the dhclient", "docstring_tokens": ["CleanupNS", "will", "clean", "up", "the", "container", "namespace", "including", "remove", "the", "veth", "pair", "and", "stop", "the", "dhclient"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecscni/plugin.go#L157-L176", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecscni/plugin.go", "func_name": "ReleaseIPResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReleaseIPResource marks the ip available in the ipam db", "docstring_tokens": ["ReleaseIPResource", "marks", "the", "ip", "available", "in", "the", "ipam", "db"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecscni/plugin.go#L212-L222", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecscni/plugin.go", "func_name": "add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// add invokes the ADD command of the given plugin", "docstring_tokens": ["add", "invokes", "the", "ADD", "command", "of", "the", "given", "plugin"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecscni/plugin.go#L225-L236", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecscni/plugin.go", "func_name": "del", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// del invokes the DEL command of the given plugin", "docstring_tokens": ["del", "invokes", "the", "DEL", "command", "of", "the", "given", "plugin"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecscni/plugin.go#L239-L250", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecscni/plugin.go", "func_name": "createBridgeNetworkConfigWithIPAM", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// createBridgeNetworkConfigWithIPAM creates the config of bridge for ADD command, where\n// bridge plugin acquires the IP and route information from IPAM", "docstring_tokens": ["createBridgeNetworkConfigWithIPAM", "creates", "the", "config", "of", "bridge", "for", "ADD", "command", "where", "bridge", "plugin", "acquires", "the", "IP", "and", "route", "information", "from", "IPAM"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecscni/plugin.go#L254-L271", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecscni/plugin.go", "func_name": "createBridgeNetworkConfigWithoutIPAM", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// createBridgeNetworkConfigWithoutIPAM creates the config of the bridge for removal", "docstring_tokens": ["createBridgeNetworkConfigWithoutIPAM", "creates", "the", "config", "of", "the", "bridge", "for", "removal"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecscni/plugin.go#L274-L280", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecscni/plugin.go", "func_name": "constructNetworkConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// constructNetworkConfig takes in the config from agent and construct the configuration\n// that's accepted by the libcni", "docstring_tokens": ["constructNetworkConfig", "takes", "in", "the", "config", "from", "agent", "and", "construct", "the", "configuration", "that", "s", "accepted", "by", "the", "libcni"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecscni/plugin.go#L299-L313", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecscni/plugin.go", "func_name": "createIPAMNetworkConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// createIPAMNetworkConfig constructs the ipam configuration accepted by libcni", "docstring_tokens": ["createIPAMNetworkConfig", "constructs", "the", "ipam", "configuration", "accepted", "by", "libcni"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecscni/plugin.go#L353-L370", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecscni/plugin.go", "func_name": "Version", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Version returns the version of the plugin", "docstring_tokens": ["Version", "returns", "the", "version", "of", "the", "plugin"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecscni/plugin.go#L402-L427", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecscni/plugin.go", "func_name": "Capabilities", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Capabilities returns the capabilities supported by a plugin", "docstring_tokens": ["Capabilities", "returns", "the", "capabilities", "supported", "by", "a", "plugin"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecscni/plugin.go#L450-L474", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eni/watcher/watcher_linux.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New is used to return an instance of the UdevWatcher struct", "docstring_tokens": ["New", "is", "used", "to", "return", "an", "instance", "of", "the", "UdevWatcher", "struct"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eni/watcher/watcher_linux.go#L105-L108", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eni/watcher/watcher_linux.go", "func_name": "newWatcher", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newWatcher is used to nest the return of the UdevWatcher struct", "docstring_tokens": ["newWatcher", "is", "used", "to", "nest", "the", "return", "of", "the", "UdevWatcher", "struct"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eni/watcher/watcher_linux.go#L111-L129", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eni/watcher/watcher_linux.go", "func_name": "performPeriodicReconciliation", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// performPeriodicReconciliation is used to periodically invoke the\n// reconciliation process based on a ticker", "docstring_tokens": ["performPeriodicReconciliation", "is", "used", "to", "periodically", "invoke", "the", "reconciliation", "process", "based", "on", "a", "ticker"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eni/watcher/watcher_linux.go#L150-L163", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eni/watcher/watcher_linux.go", "func_name": "reconcileOnce", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// reconcileOnce is used to reconcile the state of ENIs attached to the instance", "docstring_tokens": ["reconcileOnce", "is", "used", "to", "reconcile", "the", "state", "of", "ENIs", "attached", "to", "the", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eni/watcher/watcher_linux.go#L166-L191", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eni/watcher/watcher_linux.go", "func_name": "sendENIStateChange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// sendENIStateChange handles the eni event from udev or reconcile phase", "docstring_tokens": ["sendENIStateChange", "handles", "the", "eni", "event", "from", "udev", "or", "reconcile", "phase"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eni/watcher/watcher_linux.go#L194-L226", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eni/watcher/watcher_linux.go", "func_name": "buildState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// buildState is used to build a state of the system for reconciliation", "docstring_tokens": ["buildState", "is", "used", "to", "build", "a", "state", "of", "the", "system", "for", "reconciliation"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eni/watcher/watcher_linux.go#L229-L247", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eni/watcher/watcher_linux.go", "func_name": "sendENIStateChangeWithRetries", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// sendENIStateChangeWithRetries invokes the sendENIStateChange method, with backoff and\n// retries. Retries are only effective if sendENIStateChange returns an unmanagedENIError.\n// We're effectively waiting for the ENI attachment message from ACS for a network device\n// at this point of time.", "docstring_tokens": ["sendENIStateChangeWithRetries", "invokes", "the", "sendENIStateChange", "method", "with", "backoff", "and", "retries", ".", "Retries", "are", "only", "effective", "if", "sendENIStateChange", "returns", "an", "unmanagedENIError", ".", "We", "re", "effectively", "waiting", "for", "the", "ENI", "attachment", "message", "from", "ACS", "for", "a", "network", "device", "at", "this", "point", "of", "time", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eni/watcher/watcher_linux.go#L300-L333", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/tcs/client/client.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close closes the underlying connection.", "docstring_tokens": ["Close", "closes", "the", "underlying", "connection", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/tcs/client/client.go#L110-L120", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/tcs/client/client.go", "func_name": "signRequestFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// signRequestFunc is a MakeRequestHookFunc that signs each generated request", "docstring_tokens": ["signRequestFunc", "is", "a", "MakeRequestHookFunc", "that", "signs", "each", "generated", "request"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/tcs/client/client.go#L123-L147", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/tcs/client/client.go", "func_name": "publishMetrics", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// publishMetrics invokes the PublishMetricsRequest on the clientserver object.", "docstring_tokens": ["publishMetrics", "invokes", "the", "PublishMetricsRequest", "on", "the", "clientserver", "object", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/tcs/client/client.go#L150-L175", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/tcs/client/client.go", "func_name": "publishMetricsOnce", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// publishMetricsOnce is invoked by the ticker to periodically publish metrics to backend.", "docstring_tokens": ["publishMetricsOnce", "is", "invoked", "by", "the", "ticker", "to", "periodically", "publish", "metrics", "to", "backend", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/tcs/client/client.go#L178-L193", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/tcs/client/client.go", "func_name": "metricsToPublishMetricRequests", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// metricsToPublishMetricRequests gets task metrics and converts them to a list of PublishMetricRequest\n// objects.", "docstring_tokens": ["metricsToPublishMetricRequests", "gets", "task", "metrics", "and", "converts", "them", "to", "a", "list", "of", "PublishMetricRequest", "objects", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/tcs/client/client.go#L197-L236", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/tcs/client/client.go", "func_name": "publishHealthMetrics", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// publishHealthMetrics send the container health information to backend", "docstring_tokens": ["publishHealthMetrics", "send", "the", "container", "health", "information", "to", "backend"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/tcs/client/client.go#L239-L263", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/tcs/client/client.go", "func_name": "publishHealthMetricsOnce", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// publishHealthMetricsOnce is invoked by the ticker to periodically publish metrics to backend.", "docstring_tokens": ["publishHealthMetricsOnce", "is", "invoked", "by", "the", "ticker", "to", "periodically", "publish", "metrics", "to", "backend", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/tcs/client/client.go#L266-L280", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/tcs/client/client.go", "func_name": "createPublishHealthRequests", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// createPublishHealthRequests creates the requests to publish container health", "docstring_tokens": ["createPublishHealthRequests", "creates", "the", "requests", "to", "publish", "container", "health"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/tcs/client/client.go#L283-L316", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/tcs/client/client.go", "func_name": "copyMetricsMetadata", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// copyMetricsMetadata creates a new MetricsMetadata object from a given MetricsMetadata object.\n// It copies all the fields from the source object to the new object and sets the 'Fin' field\n// as specified by the argument.", "docstring_tokens": ["copyMetricsMetadata", "creates", "a", "new", "MetricsMetadata", "object", "from", "a", "given", "MetricsMetadata", "object", ".", "It", "copies", "all", "the", "fields", "from", "the", "source", "object", "to", "the", "new", "object", "and", "sets", "the", "Fin", "field", "as", "specified", "by", "the", "argument", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/tcs/client/client.go#L321-L329", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/tcs/client/client.go", "func_name": "copyTaskMetrics", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// copyTaskMetrics copies a slice of TaskMetric objects to another slice. This is needed as we\n// reset the source slice after creating a new PublishMetricsRequest object.", "docstring_tokens": ["copyTaskMetrics", "copies", "a", "slice", "of", "TaskMetric", "objects", "to", "another", "slice", ".", "This", "is", "needed", "as", "we", "reset", "the", "source", "slice", "after", "creating", "a", "new", "PublishMetricsRequest", "object", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/tcs/client/client.go#L333-L337", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/tcs/client/client.go", "func_name": "copyHealthMetadata", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// copyHealthMetadata performs a deep copy of HealthMetadata object", "docstring_tokens": ["copyHealthMetadata", "performs", "a", "deep", "copy", "of", "HealthMetadata", "object"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/tcs/client/client.go#L340-L347", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/tcs/client/client.go", "func_name": "copyTaskHealthMetrics", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// copyTaskHealthMetrics copies a slice of taskHealthMetrics to another slice", "docstring_tokens": ["copyTaskHealthMetrics", "copies", "a", "slice", "of", "taskHealthMetrics", "to", "another", "slice"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/tcs/client/client.go#L350-L354", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/types/types.go", "func_name": "UnmarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalJSON unmarshals ResourcesMap object", "docstring_tokens": ["UnmarshalJSON", "unmarshals", "ResourcesMap", "object"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/types/types.go#L46-L81", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/volume/dockervolume.go", "func_name": "NewVolumeResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewVolumeResource returns a docker volume wrapper object", "docstring_tokens": ["NewVolumeResource", "returns", "a", "docker", "volume", "wrapper", "object"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/volume/dockervolume.go#L81-L110", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/volume/dockervolume.go", "func_name": "KnownCreated", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// KnownCreated returns true if the volume's known status is CREATED", "docstring_tokens": ["KnownCreated", "returns", "true", "if", "the", "volume", "s", "known", "status", "is", "CREATED"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/volume/dockervolume.go#L186-L191", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/volume/dockervolume.go", "func_name": "setMountPoint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setMountPoint sets the mountpoint of the created volume.\n// This is a read-only field, hence making this a private function.", "docstring_tokens": ["setMountPoint", "sets", "the", "mountpoint", "of", "the", "created", "volume", ".", "This", "is", "a", "read", "-", "only", "field", "hence", "making", "this", "a", "private", "function", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/volume/dockervolume.go#L260-L265", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/volume/dockervolume.go", "func_name": "GetMountPoint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMountPoint gets the mountpoint of the created volume.", "docstring_tokens": ["GetMountPoint", "gets", "the", "mountpoint", "of", "the", "created", "volume", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/volume/dockervolume.go#L268-L273", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/volume/dockervolume.go", "func_name": "Create", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create performs resource creation", "docstring_tokens": ["Create", "performs", "resource", "creation"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/volume/dockervolume.go#L281-L298", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/volume/dockervolume.go", "func_name": "Cleanup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Cleanup performs resource cleanup", "docstring_tokens": ["Cleanup", "performs", "resource", "cleanup"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/volume/dockervolume.go#L301-L315", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/volume/dockervolume.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON marshals VolumeResource object using duplicate struct VolumeResourceJSON", "docstring_tokens": ["MarshalJSON", "marshals", "VolumeResource", "object", "using", "duplicate", "struct", "VolumeResourceJSON"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/volume/dockervolume.go#L327-L338", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/volume/dockervolume.go", "func_name": "UnmarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalJSON unmarshals VolumeResource object using duplicate struct VolumeResourceJSON", "docstring_tokens": ["UnmarshalJSON", "unmarshals", "VolumeResource", "object", "using", "duplicate", "struct", "VolumeResourceJSON"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/volume/dockervolume.go#L341-L357", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/factory/mocks/factory_mocks.go", "func_name": "NewMockClientCreator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockClientCreator creates a new mock instance", "docstring_tokens": ["NewMockClientCreator", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/factory/mocks/factory_mocks.go#L40-L44", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/factory/mocks/factory_mocks.go", "func_name": "NewASMClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewASMClient mocks base method", "docstring_tokens": ["NewASMClient", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/factory/mocks/factory_mocks.go#L52-L56", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/factory/mocks/factory_mocks.go", "func_name": "NewASMClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewASMClient indicates an expected call of NewASMClient", "docstring_tokens": ["NewASMClient", "indicates", "an", "expected", "call", "of", "NewASMClient"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/factory/mocks/factory_mocks.go#L59-L61", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/transport.go", "func_name": "NewTransportProtocol", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTransportProtocol returns a TransportProtocol from a string in the task", "docstring_tokens": ["NewTransportProtocol", "returns", "a", "TransportProtocol", "from", "a", "string", "in", "the", "task"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/transport.go#L37-L46", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/transport.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String converts TransportProtocol to a string", "docstring_tokens": ["String", "converts", "TransportProtocol", "to", "a", "string"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/transport.go#L49-L62", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/transport.go", "func_name": "UnmarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalJSON for TransportProtocol determines whether to use TCP or UDP,\n// setting TCP as the zero-value but treating other unrecognized values as\n// errors", "docstring_tokens": ["UnmarshalJSON", "for", "TransportProtocol", "determines", "whether", "to", "use", "TCP", "or", "UDP", "setting", "TCP", "as", "the", "zero", "-", "value", "but", "treating", "other", "unrecognized", "values", "as", "errors"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/transport.go#L67-L83", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/transport.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON overrides the logic for JSON-encoding the TransportProtocol type", "docstring_tokens": ["MarshalJSON", "overrides", "the", "logic", "for", "JSON", "-", "encoding", "the", "TransportProtocol", "type"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/transport.go#L86-L91", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/credentials/mocks/credentials_mocks.go", "func_name": "NewMockManager", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockManager creates a new mock instance", "docstring_tokens": ["NewMockManager", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/credentials/mocks/credentials_mocks.go#L39-L43", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/credentials/mocks/credentials_mocks.go", "func_name": "GetTaskCredentials", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTaskCredentials mocks base method", "docstring_tokens": ["GetTaskCredentials", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/credentials/mocks/credentials_mocks.go#L51-L56", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/credentials/mocks/credentials_mocks.go", "func_name": "RemoveCredentials", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveCredentials mocks base method", "docstring_tokens": ["RemoveCredentials", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/credentials/mocks/credentials_mocks.go#L64-L66", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/credentials/mocks/credentials_mocks.go", "func_name": "SetTaskCredentials", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetTaskCredentials mocks base method", "docstring_tokens": ["SetTaskCredentials", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/credentials/mocks/credentials_mocks.go#L74-L78", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/asm.go", "func_name": "GetDockerAuthFromASM", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDockerAuthFromASM makes the api call to the AWS Secrets Manager service to\n// retrieve the docker auth data", "docstring_tokens": ["GetDockerAuthFromASM", "makes", "the", "api", "call", "to", "the", "AWS", "Secrets", "Manager", "service", "to", "retrieve", "the", "docker", "auth", "data"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/asm.go#L35-L47", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/asm.go", "func_name": "GetSecretFromASM", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSecretFromASM makes the api call to the AWS Secrets Manager service to\n// retrieve the secret value", "docstring_tokens": ["GetSecretFromASM", "makes", "the", "api", "call", "to", "the", "AWS", "Secrets", "Manager", "service", "to", "retrieve", "the", "secret", "value"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/asm.go#L92-L103", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/cgroup/control/factory/mock_factory/mock_cgroup_factory_linux.go", "func_name": "NewMockCgroupFactory", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockCgroupFactory creates a new mock instance", "docstring_tokens": ["NewMockCgroupFactory", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/cgroup/control/factory/mock_factory/mock_cgroup_factory_linux.go#L40-L44", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/cgroup/control/factory/mock_factory/mock_cgroup_factory_linux.go", "func_name": "Load", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Load mocks base method", "docstring_tokens": ["Load", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/cgroup/control/factory/mock_factory/mock_cgroup_factory_linux.go#L52-L57", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/cgroup/control/factory/mock_factory/mock_cgroup_factory_linux.go", "func_name": "Load", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Load indicates an expected call of Load", "docstring_tokens": ["Load", "indicates", "an", "expected", "call", "of", "Load"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/cgroup/control/factory/mock_factory/mock_cgroup_factory_linux.go#L60-L62", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eni/pause/pause_linux.go", "func_name": "LoadImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadImage helps load the pause container image for the agent", "docstring_tokens": ["LoadImage", "helps", "load", "the", "pause", "container", "image", "for", "the", "agent"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eni/pause/pause_linux.go#L33-L41", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/cgroup/cgroup.go", "func_name": "NewCgroupResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCgroupResource is used to return an object that implements the Resource interface", "docstring_tokens": ["NewCgroupResource", "is", "used", "to", "return", "an", "object", "that", "implements", "the", "Resource", "interface"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/cgroup/cgroup.go#L70-L86", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/cgroup/cgroup.go", "func_name": "Create", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create creates cgroup root for the task", "docstring_tokens": ["Create", "creates", "cgroup", "root", "for", "the", "task"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/cgroup/cgroup.go#L244-L251", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/cgroup/cgroup.go", "func_name": "Cleanup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Cleanup removes the cgroup root created for the task", "docstring_tokens": ["Cleanup", "removes", "the", "cgroup", "root", "created", "for", "the", "task"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/cgroup/cgroup.go#L283-L294", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/cgroup/cgroup.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON marshals CgroupResource object using duplicate struct CgroupResourceJSON", "docstring_tokens": ["MarshalJSON", "marshals", "CgroupResource", "object", "using", "duplicate", "struct", "CgroupResourceJSON"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/cgroup/cgroup.go#L307-L327", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/cgroup/cgroup.go", "func_name": "UnmarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalJSON unmarshals CgroupResource object using duplicate struct CgroupResourceJSON", "docstring_tokens": ["UnmarshalJSON", "unmarshals", "CgroupResource", "object", "using", "duplicate", "struct", "CgroupResourceJSON"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/cgroup/cgroup.go#L330-L347", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/cgroup/cgroup.go", "func_name": "GetCgroupRoot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCgroupRoot returns cgroup root of the resource", "docstring_tokens": ["GetCgroupRoot", "returns", "cgroup", "root", "of", "the", "resource"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/cgroup/cgroup.go#L350-L354", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/cgroup/cgroup.go", "func_name": "GetCgroupMountPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCgroupMountPath returns cgroup mount path of the resource", "docstring_tokens": ["GetCgroupMountPath", "returns", "cgroup", "mount", "path", "of", "the", "resource"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/cgroup/cgroup.go#L357-L361", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/cgroup/cgroup.go", "func_name": "Initialize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Initialize initializes the resource fileds in cgroup", "docstring_tokens": ["Initialize", "initializes", "the", "resource", "fileds", "in", "cgroup"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/cgroup/cgroup.go#L364-L373", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eni/pause/pause_unsupported.go", "func_name": "LoadImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadImage returns UnsupportedPlatformError on the unsupported platform", "docstring_tokens": ["LoadImage", "returns", "UnsupportedPlatformError", "on", "the", "unsupported", "platform"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eni/pause/pause_unsupported.go#L29-L33", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecr/factory.go", "func_name": "NewECRFactory", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewECRFactory returns an ECRFactory capable of producing ECRSDK clients", "docstring_tokens": ["NewECRFactory", "returns", "an", "ECRFactory", "capable", "of", "producing", "ECRSDK", "clients"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecr/factory.go#L45-L49", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecr/factory.go", "func_name": "GetClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetClient creates the ECR SDK client based on the authdata", "docstring_tokens": ["GetClient", "creates", "the", "ECR", "SDK", "client", "based", "on", "the", "authdata"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecr/factory.go#L52-L59", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecr/factory.go", "func_name": "getClientConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getClientConfig returns the config for the ecr client based on authData", "docstring_tokens": ["getClientConfig", "returns", "the", "config", "for", "the", "ecr", "client", "based", "on", "authData"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecr/factory.go#L62-L79", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/logger/audit/mocks/audit_log_mocks.go", "func_name": "NewMockAuditLogger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockAuditLogger creates a new mock instance", "docstring_tokens": ["NewMockAuditLogger", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/logger/audit/mocks/audit_log_mocks.go#L39-L43", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/logger/audit/mocks/audit_log_mocks.go", "func_name": "GetContainerInstanceArn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetContainerInstanceArn mocks base method", "docstring_tokens": ["GetContainerInstanceArn", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/logger/audit/mocks/audit_log_mocks.go#L63-L67", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/logger/audit/mocks/audit_log_mocks.go", "func_name": "GetContainerInstanceArn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetContainerInstanceArn indicates an expected call of GetContainerInstanceArn", "docstring_tokens": ["GetContainerInstanceArn", "indicates", "an", "expected", "call", "of", "GetContainerInstanceArn"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/logger/audit/mocks/audit_log_mocks.go#L70-L72", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/logger/audit/mocks/audit_log_mocks.go", "func_name": "Log", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Log mocks base method", "docstring_tokens": ["Log", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/logger/audit/mocks/audit_log_mocks.go#L75-L77", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/logger/audit/mocks/audit_log_mocks.go", "func_name": "Log", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Log indicates an expected call of Log", "docstring_tokens": ["Log", "indicates", "an", "expected", "call", "of", "Log"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/logger/audit/mocks/audit_log_mocks.go#L80-L82", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/logger/audit/mocks/audit_log_mocks.go", "func_name": "NewMockInfoLogger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockInfoLogger creates a new mock instance", "docstring_tokens": ["NewMockInfoLogger", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/logger/audit/mocks/audit_log_mocks.go#L96-L100", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/logger/audit/mocks/audit_log_mocks.go", "func_name": "Info", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Info mocks base method", "docstring_tokens": ["Info", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/logger/audit/mocks/audit_log_mocks.go#L108-L114", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/logger/audit/mocks/audit_log_mocks.go", "func_name": "Info", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Info indicates an expected call of Info", "docstring_tokens": ["Info", "indicates", "an", "expected", "call", "of", "Info"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/logger/audit/mocks/audit_log_mocks.go#L117-L119", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eventhandler/task_handler_types.go", "func_name": "taskShouldBeSent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// taskShouldBeSent checks whether the event should be sent, this includes\n// both task state change and container state change events", "docstring_tokens": ["taskShouldBeSent", "checks", "whether", "the", "event", "should", "be", "sent", "this", "includes", "both", "task", "state", "change", "and", "container", "state", "change", "events"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eventhandler/task_handler_types.go#L68-L101", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eventhandler/task_handler_types.go", "func_name": "send", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// send tries to send an event, specified by 'eventToSubmit', of type\n// 'eventType' to ECS", "docstring_tokens": ["send", "tries", "to", "send", "an", "event", "specified", "by", "eventToSubmit", "of", "type", "eventType", "to", "ECS"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eventhandler/task_handler_types.go#L141-L168", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eventhandler/task_handler_types.go", "func_name": "sendContainerStatusToECS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// sendContainerStatusToECS invokes the SubmitContainerStateChange API to send a\n// container status change to ECS", "docstring_tokens": ["sendContainerStatusToECS", "invokes", "the", "SubmitContainerStateChange", "API", "to", "send", "a", "container", "status", "change", "to", "ECS"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eventhandler/task_handler_types.go#L175-L177", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eventhandler/task_handler_types.go", "func_name": "sendTaskStatusToECS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// sendTaskStatusToECS invokes the SubmitTaskStateChange API to send a task\n// status change to ECS", "docstring_tokens": ["sendTaskStatusToECS", "invokes", "the", "SubmitTaskStateChange", "API", "to", "send", "a", "task", "status", "change", "to", "ECS"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eventhandler/task_handler_types.go#L181-L183", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eventhandler/task_handler_types.go", "func_name": "setContainerChangeSent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setContainerChangeSent sets the event's container change object as sent", "docstring_tokens": ["setContainerChangeSent", "sets", "the", "event", "s", "container", "change", "object", "as", "sent"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eventhandler/task_handler_types.go#L189-L195", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eventhandler/task_handler_types.go", "func_name": "setTaskChangeSent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setTaskChangeSent sets the event's task change object as sent", "docstring_tokens": ["setTaskChangeSent", "sets", "the", "event", "s", "task", "change", "object", "as", "sent"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eventhandler/task_handler_types.go#L198-L211", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eventhandler/task_handler_types.go", "func_name": "setTaskAttachmentSent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setTaskAttachmentSent sets the event's task attachment object as sent", "docstring_tokens": ["setTaskAttachmentSent", "sets", "the", "event", "s", "task", "attachment", "object", "as", "sent"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eventhandler/task_handler_types.go#L214-L219", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ssm/ssm.go", "func_name": "GetSecretsFromSSM", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSecretFromSSM makes the api call to the AWS SSM parameter store to\n// retrieve secrets value in batches", "docstring_tokens": ["GetSecretFromSSM", "makes", "the", "api", "call", "to", "the", "AWS", "SSM", "parameter", "store", "to", "retrieve", "secrets", "value", "in", "batches"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ssm/ssm.go#L27-L44", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/version/gen/version-gen.go", "func_name": "main", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// version-gen is a simple program that generates the agent's version file,\n// containing information about the agent's version, commit hash, and repository\n// cleanliness.", "docstring_tokens": ["version", "-", "gen", "is", "a", "simple", "program", "that", "generates", "the", "agent", "s", "version", "file", "containing", "information", "about", "the", "agent", "s", "version", "commit", "hash", "and", "repository", "cleanliness", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/version/gen/version-gen.go#L86-L120", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerapi/errors.go", "func_name": "IsRetriableError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsRetriableError returns a boolean indicating whether the call that\n// generated the error can be retried.\n// When stopping a container, most errors that we can get should be\n// considered retriable. However, in the case where the container is\n// already stopped or doesn't exist at all, there's no sense in\n// retrying.", "docstring_tokens": ["IsRetriableError", "returns", "a", "boolean", "indicating", "whether", "the", "call", "that", "generated", "the", "error", "can", "be", "retried", ".", "When", "stopping", "a", "container", "most", "errors", "that", "we", "can", "get", "should", "be", "considered", "retriable", ".", "However", "in", "the", "case", "where", "the", "container", "is", "already", "stopped", "or", "doesn", "t", "exist", "at", "all", "there", "s", "no", "sense", "in", "retrying", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerapi/errors.go#L116-L122", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/oswrapper/mocks/oswrapper_mocks.go", "func_name": "NewMockFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockFile creates a new mock instance", "docstring_tokens": ["NewMockFile", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/oswrapper/mocks/oswrapper_mocks.go#L40-L44", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/oswrapper/mocks/oswrapper_mocks.go", "func_name": "Chmod", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Chmod mocks base method", "docstring_tokens": ["Chmod", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/oswrapper/mocks/oswrapper_mocks.go#L52-L56", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/oswrapper/mocks/oswrapper_mocks.go", "func_name": "Chmod", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Chmod indicates an expected call of Chmod", "docstring_tokens": ["Chmod", "indicates", "an", "expected", "call", "of", "Chmod"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/oswrapper/mocks/oswrapper_mocks.go#L59-L61", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/oswrapper/mocks/oswrapper_mocks.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write mocks base method", "docstring_tokens": ["Write", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/oswrapper/mocks/oswrapper_mocks.go#L100-L105", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/oswrapper/mocks/oswrapper_mocks.go", "func_name": "NewMockOS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockOS creates a new mock instance", "docstring_tokens": ["NewMockOS", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/oswrapper/mocks/oswrapper_mocks.go#L124-L128", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/oswrapper/mocks/oswrapper_mocks.go", "func_name": "Create", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create indicates an expected call of Create", "docstring_tokens": ["Create", "indicates", "an", "expected", "call", "of", "Create"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/oswrapper/mocks/oswrapper_mocks.go#L144-L146", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/oswrapper/mocks/oswrapper_mocks.go", "func_name": "IsNotExist", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsNotExist mocks base method", "docstring_tokens": ["IsNotExist", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/oswrapper/mocks/oswrapper_mocks.go#L149-L153", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/oswrapper/mocks/oswrapper_mocks.go", "func_name": "OpenFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OpenFile mocks base method", "docstring_tokens": ["OpenFile", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/oswrapper/mocks/oswrapper_mocks.go#L173-L178", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/oswrapper/mocks/oswrapper_mocks.go", "func_name": "RemoveAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveAll mocks base method", "docstring_tokens": ["RemoveAll", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/oswrapper/mocks/oswrapper_mocks.go#L186-L190", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ssm/factory/mocks/factory_mocks.go", "func_name": "NewMockSSMClientCreator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockSSMClientCreator creates a new mock instance", "docstring_tokens": ["NewMockSSMClientCreator", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ssm/factory/mocks/factory_mocks.go#L40-L44", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ssm/factory/mocks/factory_mocks.go", "func_name": "NewSSMClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSSMClient mocks base method", "docstring_tokens": ["NewSSMClient", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ssm/factory/mocks/factory_mocks.go#L52-L56", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ssm/factory/mocks/factory_mocks.go", "func_name": "NewSSMClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSSMClient indicates an expected call of NewSSMClient", "docstring_tokens": ["NewSSMClient", "indicates", "an", "expected", "call", "of", "NewSSMClient"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ssm/factory/mocks/factory_mocks.go#L59-L61", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ec2/mocks/ec2_mocks.go", "func_name": "NewMockEC2MetadataClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockEC2MetadataClient creates a new mock instance", "docstring_tokens": ["NewMockEC2MetadataClient", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ec2/mocks/ec2_mocks.go#L42-L46", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ec2/mocks/ec2_mocks.go", "func_name": "DefaultCredentials", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DefaultCredentials mocks base method", "docstring_tokens": ["DefaultCredentials", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ec2/mocks/ec2_mocks.go#L54-L59", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ec2/mocks/ec2_mocks.go", "func_name": "DefaultCredentials", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DefaultCredentials indicates an expected call of DefaultCredentials", "docstring_tokens": ["DefaultCredentials", "indicates", "an", "expected", "call", "of", "DefaultCredentials"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ec2/mocks/ec2_mocks.go#L62-L64", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ec2/mocks/ec2_mocks.go", "func_name": "GetDynamicData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDynamicData mocks base method", "docstring_tokens": ["GetDynamicData", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ec2/mocks/ec2_mocks.go#L67-L72", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ec2/mocks/ec2_mocks.go", "func_name": "InstanceIdentityDocument", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InstanceIdentityDocument mocks base method", "docstring_tokens": ["InstanceIdentityDocument", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ec2/mocks/ec2_mocks.go#L119-L124", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ec2/mocks/ec2_mocks.go", "func_name": "NewMockHttpClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockHttpClient creates a new mock instance", "docstring_tokens": ["NewMockHttpClient", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ec2/mocks/ec2_mocks.go#L208-L212", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ec2/mocks/ec2_mocks.go", "func_name": "GetInstanceIdentityDocument", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetInstanceIdentityDocument mocks base method", "docstring_tokens": ["GetInstanceIdentityDocument", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ec2/mocks/ec2_mocks.go#L233-L238", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ec2/mocks/ec2_mocks.go", "func_name": "GetUserData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetUserData mocks base method", "docstring_tokens": ["GetUserData", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ec2/mocks/ec2_mocks.go#L259-L264", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ec2/mocks/ec2_mocks.go", "func_name": "GetUserData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetUserData indicates an expected call of GetUserData", "docstring_tokens": ["GetUserData", "indicates", "an", "expected", "call", "of", "GetUserData"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ec2/mocks/ec2_mocks.go#L267-L269", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ec2/mocks/ec2_mocks.go", "func_name": "NewMockClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockClient creates a new mock instance", "docstring_tokens": ["NewMockClient", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ec2/mocks/ec2_mocks.go#L296-L300", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ec2/mocks/ec2_mocks.go", "func_name": "DescribeECSTagsForInstance", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DescribeECSTagsForInstance mocks base method", "docstring_tokens": ["DescribeECSTagsForInstance", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ec2/mocks/ec2_mocks.go#L321-L326", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ec2/mocks/ec2_mocks.go", "func_name": "NewMockClientSDK", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockClientSDK creates a new mock instance", "docstring_tokens": ["NewMockClientSDK", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ec2/mocks/ec2_mocks.go#L345-L349", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ec2/mocks/ec2_mocks.go", "func_name": "CreateTags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateTags mocks base method", "docstring_tokens": ["CreateTags", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ec2/mocks/ec2_mocks.go#L357-L362", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ec2/mocks/ec2_mocks.go", "func_name": "DescribeTags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DescribeTags mocks base method", "docstring_tokens": ["DescribeTags", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ec2/mocks/ec2_mocks.go#L370-L375", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ec2/mocks/ec2_mocks.go", "func_name": "DescribeTags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DescribeTags indicates an expected call of DescribeTags", "docstring_tokens": ["DescribeTags", "indicates", "an", "expected", "call", "of", "DescribeTags"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ec2/mocks/ec2_mocks.go#L378-L380", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/statemanager/state_manager.go", "func_name": "NewStateManager", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewStateManager constructs a new StateManager which saves data at the\n// location specified in cfg and operates under the given options.\n// The returned StateManager will not save more often than every 10 seconds and\n// will not reliably return errors with Save, but will log them appropriately.", "docstring_tokens": ["NewStateManager", "constructs", "a", "new", "StateManager", "which", "saves", "data", "at", "the", "location", "specified", "in", "cfg", "and", "operates", "under", "the", "given", "options", ".", "The", "returned", "StateManager", "will", "not", "save", "more", "often", "than", "every", "10", "seconds", "and", "will", "not", "reliably", "return", "errors", "with", "Save", "but", "will", "log", "them", "appropriately", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/statemanager/state_manager.go#L163-L188", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/statemanager/state_manager.go", "func_name": "Save", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Save triggers a save to file, though respects a minimum save interval to wait\n// between saves.", "docstring_tokens": ["Save", "triggers", "a", "save", "to", "file", "though", "respects", "a", "minimum", "save", "interval", "to", "wait", "between", "saves", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/statemanager/state_manager.go#L207-L229", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/statemanager/state_manager.go", "func_name": "Load", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Load reads state off the disk from the well-known filepath and loads it into\n// the passed State object.", "docstring_tokens": ["Load", "reads", "state", "off", "the", "disk", "from", "the", "well", "-", "known", "filepath", "and", "loads", "it", "into", "the", "passed", "State", "object", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/statemanager/state_manager.go#L255-L300", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dependencygraph/graph.go", "func_name": "ValidDependencies", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidDependencies takes a task and verifies that it is possible to allow all\n// containers within it to reach the desired status by proceeding in some\n// order.", "docstring_tokens": ["ValidDependencies", "takes", "a", "task", "and", "verifies", "that", "it", "is", "possible", "to", "allow", "all", "containers", "within", "it", "to", "reach", "the", "desired", "status", "by", "proceeding", "in", "some", "order", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dependencygraph/graph.go#L64-L86", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dependencygraph/graph.go", "func_name": "dependenciesCanBeResolved", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DependenciesCanBeResolved verifies that it's possible to transition a `target`\n// given a group of already handled containers, `by`. Essentially, it asks \"is\n// `target` resolved by `by`\". It assumes that everything in `by` has reached\n// DesiredStatus and that `target` is also trying to get there\n//\n// This function is used for verifying that a state should be resolvable, not\n// for actually deciding what to do. `DependenciesAreResolved` should be used for\n// that purpose instead.", "docstring_tokens": ["DependenciesCanBeResolved", "verifies", "that", "it", "s", "possible", "to", "transition", "a", "target", "given", "a", "group", "of", "already", "handled", "containers", "by", ".", "Essentially", "it", "asks", "is", "target", "resolved", "by", "by", ".", "It", "assumes", "that", "everything", "in", "by", "has", "reached", "DesiredStatus", "and", "that", "target", "is", "also", "trying", "to", "get", "there", "This", "function", "is", "used", "for", "verifying", "that", "a", "state", "should", "be", "resolvable", "not", "for", "actually", "deciding", "what", "to", "do", ".", "DependenciesAreResolved", "should", "be", "used", "for", "that", "purpose", "instead", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dependencygraph/graph.go#L96-L106", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dependencygraph/graph.go", "func_name": "onSteadyStateIsResolved", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// onSteadyStateIsResolved defines a relationship where a target cannot be\n// created until 'dependency' has reached the steady state. Transitions include pulling.", "docstring_tokens": ["onSteadyStateIsResolved", "defines", "a", "relationship", "where", "a", "target", "cannot", "be", "created", "until", "dependency", "has", "reached", "the", "steady", "state", ".", "Transitions", "include", "pulling", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dependencygraph/graph.go#L449-L452", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/app/agent.go", "func_name": "newAgent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newAgent returns a new ecsAgent object, but does not start anything", "docstring_tokens": ["newAgent", "returns", "a", "new", "ecsAgent", "object", "but", "does", "not", "start", "anything"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/app/agent.go#L117-L181", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/app/agent.go", "func_name": "printECSAttributes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// printECSAttributes prints the Agent's ECS Attributes based on its\n// environment", "docstring_tokens": ["printECSAttributes", "prints", "the", "Agent", "s", "ECS", "Attributes", "based", "on", "its", "environment"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/app/agent.go#L185-L195", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/app/agent.go", "func_name": "start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// start starts the ECS Agent", "docstring_tokens": ["start", "starts", "the", "ECS", "Agent"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/app/agent.go#L202-L213", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/app/agent.go", "func_name": "doStart", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// doStart is the worker invoked by start for starting the ECS Agent. This involves\n// initializing the docker task engine, state saver, image manager, credentials\n// manager, poll and telemetry sessions, api handler etc", "docstring_tokens": ["doStart", "is", "the", "worker", "invoked", "by", "start", "for", "starting", "the", "ECS", "Agent", ".", "This", "involves", "initializing", "the", "docker", "task", "engine", "state", "saver", "image", "manager", "credentials", "manager", "poll", "and", "telemetry", "sessions", "api", "handler", "etc"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/app/agent.go#L218-L319", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/app/agent.go", "func_name": "newTaskEngine", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newTaskEngine creates a new docker task engine object. It tries to load the\n// local state if needed, else initializes a new one", "docstring_tokens": ["newTaskEngine", "creates", "a", "new", "docker", "task", "engine", "object", ".", "It", "tries", "to", "load", "the", "local", "state", "if", "needed", "else", "initializes", "a", "new", "one"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/app/agent.go#L323-L387", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/app/agent.go", "func_name": "setClusterInConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setClusterInConfig sets the cluster name in the config object based on\n// previous state. It returns an error if there's a mismatch between the\n// the current cluster name with what's restored from the cluster state", "docstring_tokens": ["setClusterInConfig", "sets", "the", "cluster", "name", "in", "the", "config", "object", "based", "on", "previous", "state", ".", "It", "returns", "an", "error", "if", "there", "s", "a", "mismatch", "between", "the", "the", "current", "cluster", "name", "with", "what", "s", "restored", "from", "the", "cluster", "state"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/app/agent.go#L406-L424", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/app/agent.go", "func_name": "getEC2InstanceID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getEC2InstanceID gets the EC2 instance ID from the metadata service", "docstring_tokens": ["getEC2InstanceID", "gets", "the", "EC2", "instance", "ID", "from", "the", "metadata", "service"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/app/agent.go#L427-L435", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/app/agent.go", "func_name": "constructVPCSubnetAttributes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// constructVPCSubnetAttributes returns vpc and subnet IDs of the instance as\n// an attribute list", "docstring_tokens": ["constructVPCSubnetAttributes", "returns", "vpc", "and", "subnet", "IDs", "of", "the", "instance", "as", "an", "attribute", "list"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/app/agent.go#L465-L476", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/app/agent.go", "func_name": "registerContainerInstance", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// registerContainerInstance registers the container instance ID for the ECS Agent", "docstring_tokens": ["registerContainerInstance", "registers", "the", "container", "instance", "ID", "for", "the", "ECS", "Agent"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/app/agent.go#L479-L538", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/app/agent.go", "func_name": "reregisterContainerInstance", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// reregisterContainerInstance registers a container instance that has already been\n// registered with ECS. This is for cases where the ECS Agent is being restored\n// from a check point.", "docstring_tokens": ["reregisterContainerInstance", "registers", "a", "container", "instance", "that", "has", "already", "been", "registered", "with", "ECS", ".", "This", "is", "for", "cases", "where", "the", "ECS", "Agent", "is", "being", "restored", "from", "a", "check", "point", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/app/agent.go#L543-L562", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/app/agent.go", "func_name": "startAsyncRoutines", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// startAsyncRoutines starts all of the background methods", "docstring_tokens": ["startAsyncRoutines", "starts", "all", "of", "the", "background", "methods"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/app/agent.go#L565-L612", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/app/agent.go", "func_name": "startACSSession", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// startACSSession starts a session with ECS's Agent Communication service. This\n// is a blocking call and only returns when the handler returns", "docstring_tokens": ["startACSSession", "starts", "a", "session", "with", "ECS", "s", "Agent", "Communication", "service", ".", "This", "is", "a", "blocking", "call", "and", "only", "returns", "when", "the", "handler", "returns"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/app/agent.go#L616-L646", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/app/agent.go", "func_name": "getContainerInstanceTagsFromEC2API", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getContainerInstanceTagsFromEC2API will retrieve the tags of this instance remotely.", "docstring_tokens": ["getContainerInstanceTagsFromEC2API", "will", "retrieve", "the", "tags", "of", "this", "instance", "remotely", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/app/agent.go#L672-L680", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/app/agent.go", "func_name": "mergeTags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// mergeTags will merge the local tags and ec2 tags, for the overlap part, ec2 tags\n// will be overridden by local tags.", "docstring_tokens": ["mergeTags", "will", "merge", "the", "local", "tags", "and", "ec2", "tags", "for", "the", "overlap", "part", "ec2", "tags", "will", "be", "overridden", "by", "local", "tags", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/app/agent.go#L684-L696", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/utils.go", "func_name": "SlicesDeepEqual", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SlicesDeepEqual checks if slice1 and slice2 are equal, disregarding order.", "docstring_tokens": ["SlicesDeepEqual", "checks", "if", "slice1", "and", "slice2", "are", "equal", "disregarding", "order", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/utils.go#L64-L94", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/utils.go", "func_name": "IsAWSErrorCodeEqual", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsAWSErrorCodeEqual returns true if the err implements Error\n// interface of awserr and it has the same error code as\n// the passed in error code.", "docstring_tokens": ["IsAWSErrorCodeEqual", "returns", "true", "if", "the", "err", "implements", "Error", "interface", "of", "awserr", "and", "it", "has", "the", "same", "error", "code", "as", "the", "passed", "in", "error", "code", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/utils.go#L142-L145", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/utils.go", "func_name": "MapToTags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MapToTags converts a map to a slice of tags.", "docstring_tokens": ["MapToTags", "converts", "a", "map", "to", "a", "slice", "of", "tags", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/utils.go#L148-L162", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/v1/credentials_handler.go", "func_name": "CredentialsHandlerImpl", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CredentialsHandlerImpl is the major logic in CredentialsHandler, abstract this out\n// because v2.CredentialsHandler also uses the same logic.", "docstring_tokens": ["CredentialsHandlerImpl", "is", "the", "major", "logic", "in", "CredentialsHandler", "abstract", "this", "out", "because", "v2", ".", "CredentialsHandler", "also", "uses", "the", "same", "logic", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/v1/credentials_handler.go#L70-L79", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/v1/credentials_handler.go", "func_name": "processCredentialsRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// processCredentialsRequest returns the response json containing credentials for the credentials id in the request", "docstring_tokens": ["processCredentialsRequest", "returns", "the", "response", "json", "containing", "credentials", "for", "the", "credentials", "id", "in", "the", "request"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/v1/credentials_handler.go#L82-L132", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eventhandler/task_handler.go", "func_name": "NewTaskHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTaskHandler returns a pointer to TaskHandler", "docstring_tokens": ["NewTaskHandler", "returns", "a", "pointer", "to", "TaskHandler"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eventhandler/task_handler.go#L102-L121", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eventhandler/task_handler.go", "func_name": "AddStateChangeEvent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddStateChangeEvent queues up the state change event to be sent to ECS.\n// If the event is for a container state change, it just gets added to the\n// handler.tasksToContainerStates map.\n// If the event is for task state change, it triggers the non-blocking\n// handler.submitTaskEvents method to submit the batched container state\n// changes and the task state change to ECS", "docstring_tokens": ["AddStateChangeEvent", "queues", "up", "the", "state", "change", "event", "to", "be", "sent", "to", "ECS", ".", "If", "the", "event", "is", "for", "a", "container", "state", "change", "it", "just", "gets", "added", "to", "the", "handler", ".", "tasksToContainerStates", "map", ".", "If", "the", "event", "is", "for", "task", "state", "change", "it", "triggers", "the", "non", "-", "blocking", "handler", ".", "submitTaskEvents", "method", "to", "submit", "the", "batched", "container", "state", "changes", "and", "the", "task", "state", "change", "to", "ECS"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eventhandler/task_handler.go#L129-L156", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eventhandler/task_handler.go", "func_name": "startDrainEventsTicker", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// startDrainEventsTicker starts a ticker that periodically drains the events queue\n// by submitting state change events to the ECS backend", "docstring_tokens": ["startDrainEventsTicker", "starts", "a", "ticker", "that", "periodically", "drains", "the", "events", "queue", "by", "submitting", "state", "change", "events", "to", "the", "ECS", "backend"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eventhandler/task_handler.go#L160-L183", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eventhandler/task_handler.go", "func_name": "taskStateChangesToSend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// taskStateChangesToSend gets a list task state changes for container events that\n// have been batched and not sent beyond the drainEventsFrequency threshold", "docstring_tokens": ["taskStateChangesToSend", "gets", "a", "list", "task", "state", "changes", "for", "container", "events", "that", "have", "been", "batched", "and", "not", "sent", "beyond", "the", "drainEventsFrequency", "threshold"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eventhandler/task_handler.go#L187-L220", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eventhandler/task_handler.go", "func_name": "batchContainerEventUnsafe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// batchContainerEventUnsafe collects container state change events for a given task arn", "docstring_tokens": ["batchContainerEventUnsafe", "collects", "container", "state", "change", "events", "for", "a", "given", "task", "arn"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eventhandler/task_handler.go#L223-L226", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eventhandler/task_handler.go", "func_name": "flushBatchUnsafe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flushBatchUnsafe attaches the task arn's container events to TaskStateChange event\n// by creating the sendable event list. It then submits this event to ECS asynchronously", "docstring_tokens": ["flushBatchUnsafe", "attaches", "the", "task", "arn", "s", "container", "events", "to", "TaskStateChange", "event", "by", "creating", "the", "sendable", "event", "list", ".", "It", "then", "submits", "this", "event", "to", "ECS", "asynchronously"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eventhandler/task_handler.go#L230-L245", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eventhandler/task_handler.go", "func_name": "getTaskEventsUnsafe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getTaskEventsUnsafe gets the event list for the task arn in the sendableEvent\n// from taskToEvent map", "docstring_tokens": ["getTaskEventsUnsafe", "gets", "the", "event", "list", "for", "the", "task", "arn", "in", "the", "sendableEvent", "from", "taskToEvent", "map"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eventhandler/task_handler.go#L249-L268", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eventhandler/task_handler.go", "func_name": "submitTaskEvents", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Continuously retries sending an event until it succeeds, sleeping between each\n// attempt", "docstring_tokens": ["Continuously", "retries", "sending", "an", "event", "until", "it", "succeeds", "sleeping", "between", "each", "attempt"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eventhandler/task_handler.go#L272-L299", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eventhandler/task_handler.go", "func_name": "sendChange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// sendChange adds the change to the sendable events queue. It triggers\n// the handler's submitTaskEvents async method to submit this change if\n// there's no go routines already sending changes for this event list", "docstring_tokens": ["sendChange", "adds", "the", "change", "to", "the", "sendable", "events", "queue", ".", "It", "triggers", "the", "handler", "s", "submitTaskEvents", "async", "method", "to", "submit", "this", "change", "if", "there", "s", "no", "go", "routines", "already", "sending", "changes", "for", "this", "event", "list"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eventhandler/task_handler.go#L311-L332", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eventhandler/task_handler.go", "func_name": "submitFirstEvent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// submitFirstEvent submits the first event for the task from the event list. It\n// returns true if the list became empty after submitting the event. Else, it returns\n// false. An error is returned if there was an error with submitting the state change\n// to ECS. The error is used by the backoff handler to backoff before retrying the\n// state change submission for the first event", "docstring_tokens": ["submitFirstEvent", "submits", "the", "first", "event", "for", "the", "task", "from", "the", "event", "list", ".", "It", "returns", "true", "if", "the", "list", "became", "empty", "after", "submitting", "the", "event", ".", "Else", "it", "returns", "false", ".", "An", "error", "is", "returned", "if", "there", "was", "an", "error", "with", "submitting", "the", "state", "change", "to", "ECS", ".", "The", "error", "is", "used", "by", "the", "backoff", "handler", "to", "backoff", "before", "retrying", "the", "state", "change", "submission", "for", "the", "first", "event"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eventhandler/task_handler.go#L339-L386", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eventhandler/task_handler.go", "func_name": "getTasksToEventsLen", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getTasksToEventsLen returns the length of the tasksToEvents map. It is\n// used only in the test code to ascertain that map has been cleaned up", "docstring_tokens": ["getTasksToEventsLen", "returns", "the", "length", "of", "the", "tasksToEvents", "map", ".", "It", "is", "used", "only", "in", "the", "test", "code", "to", "ascertain", "that", "map", "has", "been", "cleaned", "up"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eventhandler/task_handler.go#L395-L400", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eventhandler/task_handler.go", "func_name": "handleInvalidParamException", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handleInvalidParamException removes the event from event queue when its parameters are\n// invalid to reduce redundant API call", "docstring_tokens": ["handleInvalidParamException", "removes", "the", "event", "from", "event", "queue", "when", "its", "parameters", "are", "invalid", "to", "reduce", "redundant", "API", "call"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eventhandler/task_handler.go#L404-L410", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/cgroup/control/mock_control/mock_cgroup_control_linux.go", "func_name": "NewMockControl", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockControl creates a new mock instance", "docstring_tokens": ["NewMockControl", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/cgroup/control/mock_control/mock_cgroup_control_linux.go#L40-L44", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/cgroup/control/mock_control/mock_cgroup_control_linux.go", "func_name": "Exists", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Exists mocks base method", "docstring_tokens": ["Exists", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/cgroup/control/mock_control/mock_cgroup_control_linux.go#L65-L69", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/cgroup/control/mock_control/mock_cgroup_control_linux.go", "func_name": "Init", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Init indicates an expected call of Init", "docstring_tokens": ["Init", "indicates", "an", "expected", "call", "of", "Init"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/cgroup/control/mock_control/mock_cgroup_control_linux.go#L84-L86", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/stats/queue.go", "func_name": "NewQueue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewQueue creates a queue.", "docstring_tokens": ["NewQueue", "creates", "a", "queue", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/stats/queue.go#L44-L49", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/stats/queue.go", "func_name": "Reset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reset resets the stats queue.", "docstring_tokens": ["Reset", "resets", "the", "stats", "queue", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/stats/queue.go#L52-L57", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/stats/queue.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add adds a new set of container stats to the queue.", "docstring_tokens": ["Add", "adds", "a", "new", "set", "of", "container", "stats", "to", "the", "queue", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/stats/queue.go#L60-L68", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/stats/queue.go", "func_name": "GetLastStat", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLastStat returns the last recorded raw statistics object from docker", "docstring_tokens": ["GetLastStat", "returns", "the", "last", "recorded", "raw", "statistics", "object", "from", "docker"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/stats/queue.go#L111-L116", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/stats/queue.go", "func_name": "GetRawUsageStats", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRawUsageStats gets the array of most recent raw UsageStats, in descending\n// order of timestamps.", "docstring_tokens": ["GetRawUsageStats", "gets", "the", "array", "of", "most", "recent", "raw", "UsageStats", "in", "descending", "order", "of", "timestamps", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/stats/queue.go#L130-L155", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/stats/queue.go", "func_name": "getCWStatsSet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getCWStatsSet gets the stats set for either CPU or Memory based on the\n// function pointer.", "docstring_tokens": ["getCWStatsSet", "gets", "the", "stats", "set", "for", "either", "CPU", "or", "Memory", "based", "on", "the", "function", "pointer", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/stats/queue.go#L182-L217", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecscni/mocks/ecscni_mocks.go", "func_name": "NewMockCNIClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockCNIClient creates a new mock instance", "docstring_tokens": ["NewMockCNIClient", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecscni/mocks/ecscni_mocks.go#L42-L46", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecscni/mocks/ecscni_mocks.go", "func_name": "Capabilities", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Capabilities mocks base method", "docstring_tokens": ["Capabilities", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecscni/mocks/ecscni_mocks.go#L54-L59", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecscni/mocks/ecscni_mocks.go", "func_name": "Capabilities", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Capabilities indicates an expected call of Capabilities", "docstring_tokens": ["Capabilities", "indicates", "an", "expected", "call", "of", "Capabilities"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecscni/mocks/ecscni_mocks.go#L62-L64", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecscni/mocks/ecscni_mocks.go", "func_name": "CleanupNS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CleanupNS mocks base method", "docstring_tokens": ["CleanupNS", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecscni/mocks/ecscni_mocks.go#L67-L71", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecscni/mocks/ecscni_mocks.go", "func_name": "ReleaseIPResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReleaseIPResource mocks base method", "docstring_tokens": ["ReleaseIPResource", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecscni/mocks/ecscni_mocks.go#L79-L83", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecscni/mocks/ecscni_mocks.go", "func_name": "SetupNS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetupNS mocks base method", "docstring_tokens": ["SetupNS", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecscni/mocks/ecscni_mocks.go#L91-L96", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecscni/mocks/ecscni_mocks.go", "func_name": "SetupNS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetupNS indicates an expected call of SetupNS", "docstring_tokens": ["SetupNS", "indicates", "an", "expected", "call", "of", "SetupNS"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecscni/mocks/ecscni_mocks.go#L99-L101", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/v3/container_association_handler.go", "func_name": "ContainerAssociationsHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerAssociationHandler returns the handler method for handling container associations requests.", "docstring_tokens": ["ContainerAssociationHandler", "returns", "the", "handler", "method", "for", "handling", "container", "associations", "requests", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/v3/container_association_handler.go#L48-L78", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/v3/container_association_handler.go", "func_name": "ContainerAssociationHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerAssociationHandler returns the handler method for handling container association requests.", "docstring_tokens": ["ContainerAssociationHandler", "returns", "the", "handler", "method", "for", "handling", "container", "association", "requests", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/v3/container_association_handler.go#L81-L111", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/containermetadata/manager.go", "func_name": "NewManager", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewManager creates a metadataManager for a given DockerTaskEngine settings.", "docstring_tokens": ["NewManager", "creates", "a", "metadataManager", "for", "a", "given", "DockerTaskEngine", "settings", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/containermetadata/manager.go#L75-L84", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/containermetadata/manager.go", "func_name": "Create", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create creates the metadata file and adds the metadata directory to\n// the container's mounted host volumes\n// Pointer hostConfig is modified directly so there is risk of concurrency errors.", "docstring_tokens": ["Create", "creates", "the", "metadata", "file", "and", "adds", "the", "metadata", "directory", "to", "the", "container", "s", "mounted", "host", "volumes", "Pointer", "hostConfig", "is", "modified", "directly", "so", "there", "is", "risk", "of", "concurrency", "errors", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/containermetadata/manager.go#L107-L133", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/containermetadata/manager.go", "func_name": "Update", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Update updates the metadata file after container starts and dynamic metadata is available", "docstring_tokens": ["Update", "updates", "the", "metadata", "file", "after", "container", "starts", "and", "dynamic", "metadata", "is", "available"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/containermetadata/manager.go#L136-L151", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/containermetadata/manager.go", "func_name": "Clean", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Clean removes the metadata files of all containers associated with a task", "docstring_tokens": ["Clean", "removes", "the", "metadata", "files", "of", "all", "containers", "associated", "with", "a", "task"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/containermetadata/manager.go#L154-L160", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerauth/dockerauth.go", "func_name": "parseAuthData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Normalize all auth types into a uniform 'dockerAuths' type.\n// On error, any appropriate information will be logged and an empty dockerAuths will be returned", "docstring_tokens": ["Normalize", "all", "auth", "types", "into", "a", "uniform", "dockerAuths", "type", ".", "On", "error", "any", "appropriate", "information", "will", "be", "logged", "and", "an", "empty", "dockerAuths", "will", "be", "returned"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerauth/dockerauth.go#L95-L143", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/logging_handler.go", "func_name": "ServeHTTP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServeHTTP logs the method and remote address of the request.", "docstring_tokens": ["ServeHTTP", "logs", "the", "method", "and", "remote", "address", "of", "the", "request", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/logging_handler.go#L31-L34", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/ticker.go", "func_name": "NewJitteredTicker", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewJitteredTicker works like a time.Ticker except with randomly distributed ticks\n// between start and end duration.", "docstring_tokens": ["NewJitteredTicker", "works", "like", "a", "time", ".", "Ticker", "except", "with", "randomly", "distributed", "ticks", "between", "start", "and", "end", "duration", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/ticker.go#L23-L41", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/app/agent_capability.go", "func_name": "getTaskENIPluginVersionAttribute", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getTaskENIPluginVersionAttribute returns the version information of the ECS\n// CNI plugins. It just executes the ENI plugin as the assumption is that these\n// plugins are packaged with the ECS Agent, which means all of the other plugins\n// should also emit the same version information. Also, the version information\n// doesn't contribute to placement decisions and just serves as additional\n// debugging information", "docstring_tokens": ["getTaskENIPluginVersionAttribute", "returns", "the", "version", "information", "of", "the", "ECS", "CNI", "plugins", ".", "It", "just", "executes", "the", "ENI", "plugin", "as", "the", "assumption", "is", "that", "these", "plugins", "are", "packaged", "with", "the", "ECS", "Agent", "which", "means", "all", "of", "the", "other", "plugins", "should", "also", "emit", "the", "same", "version", "information", ".", "Also", "the", "version", "information", "doesn", "t", "contribute", "to", "placement", "decisions", "and", "just", "serves", "as", "additional", "debugging", "information"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/app/agent_capability.go#L267-L280", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/mocks/api_mocks.go", "func_name": "NewMockECSSDK", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockECSSDK creates a new mock instance", "docstring_tokens": ["NewMockECSSDK", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/mocks/api_mocks.go#L40-L44", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/mocks/api_mocks.go", "func_name": "CreateCluster", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateCluster mocks base method", "docstring_tokens": ["CreateCluster", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/mocks/api_mocks.go#L52-L57", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/mocks/api_mocks.go", "func_name": "ListTagsForResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListTagsForResource mocks base method", "docstring_tokens": ["ListTagsForResource", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/mocks/api_mocks.go#L78-L83", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/mocks/api_mocks.go", "func_name": "NewMockECSSubmitStateSDK", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockECSSubmitStateSDK creates a new mock instance", "docstring_tokens": ["NewMockECSSubmitStateSDK", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/mocks/api_mocks.go#L115-L119", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/mocks/api_mocks.go", "func_name": "SubmitContainerStateChange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SubmitContainerStateChange indicates an expected call of SubmitContainerStateChange", "docstring_tokens": ["SubmitContainerStateChange", "indicates", "an", "expected", "call", "of", "SubmitContainerStateChange"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/mocks/api_mocks.go#L135-L137", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/mocks/api_mocks.go", "func_name": "NewMockECSClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockECSClient creates a new mock instance", "docstring_tokens": ["NewMockECSClient", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/mocks/api_mocks.go#L164-L168", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/mocks/api_mocks.go", "func_name": "DiscoverPollEndpoint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DiscoverPollEndpoint indicates an expected call of DiscoverPollEndpoint", "docstring_tokens": ["DiscoverPollEndpoint", "indicates", "an", "expected", "call", "of", "DiscoverPollEndpoint"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/mocks/api_mocks.go#L184-L186", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/mocks/api_mocks.go", "func_name": "GetResourceTags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetResourceTags mocks base method", "docstring_tokens": ["GetResourceTags", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/mocks/api_mocks.go#L202-L207", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/default.go", "func_name": "NewTaskEngine", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTaskEngine returns a default TaskEngine", "docstring_tokens": ["NewTaskEngine", "returns", "a", "default", "TaskEngine"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/default.go#L29-L41", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/app/factory/mocks/factory_mocks.go", "func_name": "NewMockStateManager", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockStateManager creates a new mock instance", "docstring_tokens": ["NewMockStateManager", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/app/factory/mocks/factory_mocks.go#L40-L44", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/app/factory/mocks/factory_mocks.go", "func_name": "NewStateManager", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewStateManager mocks base method", "docstring_tokens": ["NewStateManager", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/app/factory/mocks/factory_mocks.go#L52-L61", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/app/factory/mocks/factory_mocks.go", "func_name": "NewStateManager", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewStateManager indicates an expected call of NewStateManager", "docstring_tokens": ["NewStateManager", "indicates", "an", "expected", "call", "of", "NewStateManager"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/app/factory/mocks/factory_mocks.go#L64-L67", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/app/factory/mocks/factory_mocks.go", "func_name": "NewMockSaveableOption", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockSaveableOption creates a new mock instance", "docstring_tokens": ["NewMockSaveableOption", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/app/factory/mocks/factory_mocks.go#L81-L85", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/app/factory/mocks/factory_mocks.go", "func_name": "AddSaveable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddSaveable mocks base method", "docstring_tokens": ["AddSaveable", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/app/factory/mocks/factory_mocks.go#L93-L97", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/app/factory/mocks/factory_mocks.go", "func_name": "AddSaveable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddSaveable indicates an expected call of AddSaveable", "docstring_tokens": ["AddSaveable", "indicates", "an", "expected", "call", "of", "AddSaveable"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/app/factory/mocks/factory_mocks.go#L100-L102", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/ecsclient/client.go", "func_name": "NewECSClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewECSClient creates a new ECSClient interface object", "docstring_tokens": ["NewECSClient", "creates", "a", "new", "ECSClient", "interface", "object"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/ecsclient/client.go#L58-L81", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/ecsclient/client.go", "func_name": "CreateCluster", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateCluster creates a cluster from a given name and returns its arn", "docstring_tokens": ["CreateCluster", "creates", "a", "cluster", "from", "a", "given", "name", "and", "returns", "its", "arn"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/ecsclient/client.go#L96-L104", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/ecsclient/client.go", "func_name": "RegisterContainerInstance", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterContainerInstance calculates the appropriate resources, creates\n// the default cluster if necessary, and returns the registered\n// ContainerInstanceARN if successful. Supplying a non-empty container\n// instance ARN allows a container instance to update its registered\n// resources.", "docstring_tokens": ["RegisterContainerInstance", "calculates", "the", "appropriate", "resources", "creates", "the", "default", "cluster", "if", "necessary", "and", "returns", "the", "registered", "ContainerInstanceARN", "if", "successful", ".", "Supplying", "a", "non", "-", "empty", "container", "instance", "ARN", "allows", "a", "container", "instance", "to", "update", "its", "registered", "resources", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/ecsclient/client.go#L111-L138", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/wsclient/client.go", "func_name": "Connect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Connect opens a connection to the backend and upgrades it to a websocket. Calls to\n// 'MakeRequest' can be made after calling this, but responses will not be\n// receivable until 'Serve' is also called.", "docstring_tokens": ["Connect", "opens", "a", "connection", "to", "the", "backend", "and", "upgrades", "it", "to", "a", "websocket", ".", "Calls", "to", "MakeRequest", "can", "be", "made", "after", "calling", "this", "but", "responses", "will", "not", "be", "receivable", "until", "Serve", "is", "also", "called", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/wsclient/client.go#L147-L227", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/wsclient/client.go", "func_name": "IsReady", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsReady gives a boolean response that informs the caller if the websocket\n// connection is fully established.", "docstring_tokens": ["IsReady", "gives", "a", "boolean", "response", "that", "informs", "the", "caller", "if", "the", "websocket", "connection", "is", "fully", "established", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/wsclient/client.go#L231-L236", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/wsclient/client.go", "func_name": "SetReadDeadline", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetReadDeadline sets the read deadline for the websocket connection\n// A read timeout results in an io error if there are any outstanding reads\n// that exceed the deadline", "docstring_tokens": ["SetReadDeadline", "sets", "the", "read", "deadline", "for", "the", "websocket", "connection", "A", "read", "timeout", "results", "in", "an", "io", "error", "if", "there", "are", "any", "outstanding", "reads", "that", "exceed", "the", "deadline"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/wsclient/client.go#L247-L265", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/wsclient/client.go", "func_name": "Disconnect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Disconnect disconnects the connection", "docstring_tokens": ["Disconnect", "disconnects", "the", "connection"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/wsclient/client.go#L289-L304", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/wsclient/client.go", "func_name": "WriteMessage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteMessage wraps the low level websocket write method with a lock", "docstring_tokens": ["WriteMessage", "wraps", "the", "low", "level", "websocket", "write", "method", "with", "a", "lock"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/wsclient/client.go#L353-L365", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/wsclient/client.go", "func_name": "ConsumeMessages", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ConsumeMessages reads messages from the websocket connection and handles read\n// messages from an active connection.", "docstring_tokens": ["ConsumeMessages", "reads", "messages", "from", "the", "websocket", "connection", "and", "handles", "read", "messages", "from", "an", "active", "connection", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/wsclient/client.go#L369-L396", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/wsclient/client.go", "func_name": "handleMessage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handleMessage dispatches a message to the correct 'requestHandler' for its\n// type. If no request handler is found, the message is discarded.", "docstring_tokens": ["handleMessage", "dispatches", "a", "message", "to", "the", "correct", "requestHandler", "for", "its", "type", ".", "If", "no", "request", "handler", "is", "found", "the", "message", "is", "discarded", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/wsclient/client.go#L429-L447", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/docker_task_engine_state.go", "func_name": "AllTasks", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AllTasks returns all of the tasks", "docstring_tokens": ["AllTasks", "returns", "all", "of", "the", "tasks"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/docker_task_engine_state.go#L140-L145", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/docker_task_engine_state.go", "func_name": "AllImageStates", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AllImageStates returns all of the image.ImageStates", "docstring_tokens": ["AllImageStates", "returns", "all", "of", "the", "image", ".", "ImageStates"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/docker_task_engine_state.go#L158-L163", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/docker_task_engine_state.go", "func_name": "AllENIAttachments", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AllENIAttachments returns all the enis managed by ecs on the instance", "docstring_tokens": ["AllENIAttachments", "returns", "all", "the", "enis", "managed", "by", "ecs", "on", "the", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/docker_task_engine_state.go#L174-L179", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/docker_task_engine_state.go", "func_name": "ENIByMac", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ENIByMac returns the eni object that match the give mac address", "docstring_tokens": ["ENIByMac", "returns", "the", "eni", "object", "that", "match", "the", "give", "mac", "address"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/docker_task_engine_state.go#L191-L197", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/docker_task_engine_state.go", "func_name": "AddENIAttachment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddENIAttachment adds the eni into the state", "docstring_tokens": ["AddENIAttachment", "adds", "the", "eni", "into", "the", "state"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/docker_task_engine_state.go#L200-L215", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/docker_task_engine_state.go", "func_name": "RemoveENIAttachment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveENIAttachment removes the eni from state and stop managing", "docstring_tokens": ["RemoveENIAttachment", "removes", "the", "eni", "from", "state", "and", "stop", "managing"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/docker_task_engine_state.go#L218-L231", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/docker_task_engine_state.go", "func_name": "GetAllContainerIDs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAllContainerIDs returns all of the Container Ids", "docstring_tokens": ["GetAllContainerIDs", "returns", "all", "of", "the", "Container", "Ids"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/docker_task_engine_state.go#L234-L244", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/docker_task_engine_state.go", "func_name": "ContainerByID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerByID returns an apicontainer.DockerContainer for a given container ID", "docstring_tokens": ["ContainerByID", "returns", "an", "apicontainer", ".", "DockerContainer", "for", "a", "given", "container", "ID"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/docker_task_engine_state.go#L247-L253", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/docker_task_engine_state.go", "func_name": "ContainerMapByArn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerMapByArn returns a map of containers belonging to a particular task ARN", "docstring_tokens": ["ContainerMapByArn", "returns", "a", "map", "of", "containers", "belonging", "to", "a", "particular", "task", "ARN"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/docker_task_engine_state.go#L256-L272", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/docker_task_engine_state.go", "func_name": "TaskByShortID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TaskByShortID retrieves the task of a given docker short container id", "docstring_tokens": ["TaskByShortID", "retrieves", "the", "task", "of", "a", "given", "docker", "short", "container", "id"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/docker_task_engine_state.go#L275-L286", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/docker_task_engine_state.go", "func_name": "TaskByID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TaskByID retrieves the task of a given docker container id", "docstring_tokens": ["TaskByID", "retrieves", "the", "task", "of", "a", "given", "docker", "container", "id"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/docker_task_engine_state.go#L289-L298", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/docker_task_engine_state.go", "func_name": "TaskByArn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TaskByArn returns a task for a given ARN", "docstring_tokens": ["TaskByArn", "returns", "a", "task", "for", "a", "given", "ARN"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/docker_task_engine_state.go#L301-L306", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/docker_task_engine_state.go", "func_name": "AddTask", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddTask adds a new task to the state", "docstring_tokens": ["AddTask", "adds", "a", "new", "task", "to", "the", "state"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/docker_task_engine_state.go#L314-L319", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/docker_task_engine_state.go", "func_name": "AddContainer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddContainer adds a container to the state.\n// If the container has been added with only a name and no docker-id, this\n// updates the state to include the docker id", "docstring_tokens": ["AddContainer", "adds", "a", "container", "to", "the", "state", ".", "If", "the", "container", "has", "been", "added", "with", "only", "a", "name", "and", "no", "docker", "-", "id", "this", "updates", "the", "state", "to", "include", "the", "docker", "id"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/docker_task_engine_state.go#L324-L354", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/docker_task_engine_state.go", "func_name": "AddImageState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddImageState adds an image.ImageState to be stored", "docstring_tokens": ["AddImageState", "adds", "an", "image", ".", "ImageState", "to", "be", "stored"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/docker_task_engine_state.go#L357-L370", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/docker_task_engine_state.go", "func_name": "RemoveTask", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveTask removes a task from this state. It removes all containers and\n// other associated metadata. It does acquire the write lock.", "docstring_tokens": ["RemoveTask", "removes", "a", "task", "from", "this", "state", ".", "It", "removes", "all", "containers", "and", "other", "associated", "metadata", ".", "It", "does", "acquire", "the", "write", "lock", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/docker_task_engine_state.go#L374-L400", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/docker_task_engine_state.go", "func_name": "taskToIPUnsafe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// taskToIPUnsafe gets the ip address for a given task arn", "docstring_tokens": ["taskToIPUnsafe", "gets", "the", "ip", "address", "for", "a", "given", "task", "arn"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/docker_task_engine_state.go#L403-L411", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/docker_task_engine_state.go", "func_name": "removeV3EndpointIDToTaskContainerUnsafe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// removeV3EndpointIDToTaskContainerUnsafe removes the container from v3EndpointIDToTask and v3EndpointIDToDockerID maps", "docstring_tokens": ["removeV3EndpointIDToTaskContainerUnsafe", "removes", "the", "container", "from", "v3EndpointIDToTask", "and", "v3EndpointIDToDockerID", "maps"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/docker_task_engine_state.go#L447-L452", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/docker_task_engine_state.go", "func_name": "RemoveImageState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveImageState removes an image.ImageState", "docstring_tokens": ["RemoveImageState", "removes", "an", "image", ".", "ImageState"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/docker_task_engine_state.go#L455-L469", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/docker_task_engine_state.go", "func_name": "AddTaskIPAddress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddTaskIPAddress adds ip adddress for a task arn into the state", "docstring_tokens": ["AddTaskIPAddress", "adds", "ip", "adddress", "for", "a", "task", "arn", "into", "the", "state"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/docker_task_engine_state.go#L472-L477", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/docker_task_engine_state.go", "func_name": "GetTaskByIPAddress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTaskByIPAddress gets the task arn for an IP address", "docstring_tokens": ["GetTaskByIPAddress", "gets", "the", "task", "arn", "for", "an", "IP", "address"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/docker_task_engine_state.go#L480-L486", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/docker_task_engine_state.go", "func_name": "storeV3EndpointIDToTaskUnsafe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// storeV3EndpointIDToTaskUnsafe adds v3EndpointID -> taskARN mapping to state", "docstring_tokens": ["storeV3EndpointIDToTaskUnsafe", "adds", "v3EndpointID", "-", ">", "taskARN", "mapping", "to", "state"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/docker_task_engine_state.go#L489-L491", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/docker_task_engine_state.go", "func_name": "storeV3EndpointIDToDockerIDUnsafe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// storeV3EndpointIDToContainerNameUnsafe adds v3EndpointID -> dockerID mapping to state", "docstring_tokens": ["storeV3EndpointIDToContainerNameUnsafe", "adds", "v3EndpointID", "-", ">", "dockerID", "mapping", "to", "state"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/docker_task_engine_state.go#L494-L496", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/docker_task_engine_state.go", "func_name": "DockerIDByV3EndpointID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DockerIDByV3EndpointID returns a docker ID for a given v3 endpoint ID", "docstring_tokens": ["DockerIDByV3EndpointID", "returns", "a", "docker", "ID", "for", "a", "given", "v3", "endpoint", "ID"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/docker_task_engine_state.go#L499-L505", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/docker_task_engine_state.go", "func_name": "TaskARNByV3EndpointID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TaskARNByV3EndpointID returns a taskARN for a given v3 endpoint ID", "docstring_tokens": ["TaskARNByV3EndpointID", "returns", "a", "taskARN", "for", "a", "given", "v3", "endpoint", "ID"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/docker_task_engine_state.go#L508-L514", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/introspection_server_setup.go", "func_name": "v1HandlersSetup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// v1HandlersSetup adds all handlers except CredentialsHandler in v1 package to the server mux.", "docstring_tokens": ["v1HandlersSetup", "adds", "all", "handlers", "except", "CredentialsHandler", "in", "v1", "package", "to", "the", "server", "mux", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/introspection_server_setup.go#L66-L73", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns a human readable string representation of DockerContainer", "docstring_tokens": ["String", "returns", "a", "human", "readable", "string", "representation", "of", "DockerContainer"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L299-L304", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "NewContainerWithSteadyState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewContainerWithSteadyState creates a new Container object with the specified\n// steady state. Containers that need the non default steady state set will\n// use this method instead of setting it directly", "docstring_tokens": ["NewContainerWithSteadyState", "creates", "a", "new", "Container", "object", "with", "the", "specified", "steady", "state", ".", "Containers", "that", "need", "the", "non", "default", "steady", "state", "set", "will", "use", "this", "method", "instead", "of", "setting", "it", "directly"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L309-L314", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "GetKnownStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetKnownStatus returns the known status of the container", "docstring_tokens": ["GetKnownStatus", "returns", "the", "known", "status", "of", "the", "container"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L327-L332", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "SetKnownStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetKnownStatus sets the known status of the container and update the container\n// applied status", "docstring_tokens": ["SetKnownStatus", "sets", "the", "known", "status", "of", "the", "container", "and", "update", "the", "container", "applied", "status"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L336-L342", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "GetDesiredStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDesiredStatus gets the desired status of the container", "docstring_tokens": ["GetDesiredStatus", "gets", "the", "desired", "status", "of", "the", "container"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L345-L350", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "SetDesiredStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetDesiredStatus sets the desired status of the container", "docstring_tokens": ["SetDesiredStatus", "sets", "the", "desired", "status", "of", "the", "container"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L353-L358", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "GetSentStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSentStatus safely returns the SentStatusUnsafe of the container", "docstring_tokens": ["GetSentStatus", "safely", "returns", "the", "SentStatusUnsafe", "of", "the", "container"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L361-L366", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "SetSentStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetSentStatus safely sets the SentStatusUnsafe of the container", "docstring_tokens": ["SetSentStatus", "safely", "sets", "the", "SentStatusUnsafe", "of", "the", "container"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L369-L374", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "SetKnownExitCode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetKnownExitCode sets exit code field in container struct", "docstring_tokens": ["SetKnownExitCode", "sets", "exit", "code", "field", "in", "container", "struct"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L377-L382", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "GetKnownExitCode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetKnownExitCode returns the container exit code", "docstring_tokens": ["GetKnownExitCode", "returns", "the", "container", "exit", "code"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L385-L390", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "SetRegistryAuthCredentials", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetRegistryAuthCredentials sets the credentials for pulling image from ECR", "docstring_tokens": ["SetRegistryAuthCredentials", "sets", "the", "credentials", "for", "pulling", "image", "from", "ECR"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L393-L398", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "ShouldPullWithExecutionRole", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ShouldPullWithExecutionRole returns whether this container has its own ECR credentials", "docstring_tokens": ["ShouldPullWithExecutionRole", "returns", "whether", "this", "container", "has", "its", "own", "ECR", "credentials"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L401-L409", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "GetSteadyStateStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSteadyStateStatus returns the steady state status for the container. If\n// Container.steadyState is not initialized, the default steady state status\n// defined by `defaultContainerSteadyStateStatus` is returned. The 'pause'\n// container's steady state differs from that of other containers, as the\n// 'pause' container can reach its teady state once networking resources\n// have been provisioned for it, which is done in the `ContainerResourcesProvisioned`\n// state", "docstring_tokens": ["GetSteadyStateStatus", "returns", "the", "steady", "state", "status", "for", "the", "container", ".", "If", "Container", ".", "steadyState", "is", "not", "initialized", "the", "default", "steady", "state", "status", "defined", "by", "defaultContainerSteadyStateStatus", "is", "returned", ".", "The", "pause", "container", "s", "steady", "state", "differs", "from", "that", "of", "other", "containers", "as", "the", "pause", "container", "can", "reach", "its", "teady", "state", "once", "networking", "resources", "have", "been", "provisioned", "for", "it", "which", "is", "done", "in", "the", "ContainerResourcesProvisioned", "state"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L428-L433", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "IsKnownSteadyState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsKnownSteadyState returns true if the `KnownState` of the container equals\n// the `steadyState` defined for the container", "docstring_tokens": ["IsKnownSteadyState", "returns", "true", "if", "the", "KnownState", "of", "the", "container", "equals", "the", "steadyState", "defined", "for", "the", "container"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L437-L440", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "IsMetadataFileUpdated", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsMetadataFileUpdated returns true if the metadata file has been once the\n// metadata file is ready and will no longer change", "docstring_tokens": ["IsMetadataFileUpdated", "returns", "true", "if", "the", "metadata", "file", "has", "been", "once", "the", "metadata", "file", "is", "ready", "and", "will", "no", "longer", "change"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L485-L490", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "SetMetadataFileUpdated", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetMetadataFileUpdated sets the container's MetadataFileUpdated status to true", "docstring_tokens": ["SetMetadataFileUpdated", "sets", "the", "container", "s", "MetadataFileUpdated", "status", "to", "true"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L493-L498", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "IsEssential", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsEssential returns whether the container is an essential container or not", "docstring_tokens": ["IsEssential", "returns", "whether", "the", "container", "is", "an", "essential", "container", "or", "not"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L501-L506", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "SetCreatedAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetCreatedAt sets the timestamp for container's creation time", "docstring_tokens": ["SetCreatedAt", "sets", "the", "timestamp", "for", "container", "s", "creation", "time"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L514-L522", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "SetStartedAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetStartedAt sets the timestamp for container's start time", "docstring_tokens": ["SetStartedAt", "sets", "the", "timestamp", "for", "container", "s", "start", "time"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L525-L534", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "SetFinishedAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetFinishedAt sets the timestamp for container's stopped time", "docstring_tokens": ["SetFinishedAt", "sets", "the", "timestamp", "for", "container", "s", "stopped", "time"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L537-L546", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "GetCreatedAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCreatedAt sets the timestamp for container's creation time", "docstring_tokens": ["GetCreatedAt", "sets", "the", "timestamp", "for", "container", "s", "creation", "time"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L549-L554", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "GetStartedAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetStartedAt sets the timestamp for container's start time", "docstring_tokens": ["GetStartedAt", "sets", "the", "timestamp", "for", "container", "s", "start", "time"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L557-L562", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "GetFinishedAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetFinishedAt sets the timestamp for container's stopped time", "docstring_tokens": ["GetFinishedAt", "sets", "the", "timestamp", "for", "container", "s", "stopped", "time"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L565-L570", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "SetLabels", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetLabels sets the labels for a container", "docstring_tokens": ["SetLabels", "sets", "the", "labels", "for", "a", "container"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L573-L578", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "GetLabels", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLabels gets the labels for a container", "docstring_tokens": ["GetLabels", "gets", "the", "labels", "for", "a", "container"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L581-L586", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "SetKnownPortBindings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetKnownPortBindings sets the ports for a container", "docstring_tokens": ["SetKnownPortBindings", "sets", "the", "ports", "for", "a", "container"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L589-L594", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "GetKnownPortBindings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetKnownPortBindings gets the ports for a container", "docstring_tokens": ["GetKnownPortBindings", "gets", "the", "ports", "for", "a", "container"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L597-L602", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "SetVolumes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetVolumes sets the volumes mounted in a container", "docstring_tokens": ["SetVolumes", "sets", "the", "volumes", "mounted", "in", "a", "container"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L605-L610", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "GetVolumes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetVolumes returns the volumes mounted in a container", "docstring_tokens": ["GetVolumes", "returns", "the", "volumes", "mounted", "in", "a", "container"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L613-L618", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "SetNetworkSettings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetNetworkSettings sets the networks field in a container", "docstring_tokens": ["SetNetworkSettings", "sets", "the", "networks", "field", "in", "a", "container"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L621-L626", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "GetNetworkSettings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetNetworkSettings returns the networks field in a container", "docstring_tokens": ["GetNetworkSettings", "returns", "the", "networks", "field", "in", "a", "container"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L629-L634", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "SetNetworkMode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetNetworkMode sets the network mode of the container", "docstring_tokens": ["SetNetworkMode", "sets", "the", "network", "mode", "of", "the", "container"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L637-L642", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "GetNetworkMode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetNetworkMode returns the network mode of the container", "docstring_tokens": ["GetNetworkMode", "returns", "the", "network", "mode", "of", "the", "container"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L645-L650", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "SetHealthStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetHealthStatus sets the container health status", "docstring_tokens": ["SetHealthStatus", "sets", "the", "container", "health", "status"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L659-L675", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "GetHealthStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetHealthStatus returns the container health information", "docstring_tokens": ["GetHealthStatus", "returns", "the", "container", "health", "information"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L678-L690", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "BuildContainerDependency", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BuildContainerDependency adds a new dependency container and satisfied status\n// to the dependent container", "docstring_tokens": ["BuildContainerDependency", "adds", "a", "new", "dependency", "container", "and", "satisfied", "status", "to", "the", "dependent", "container"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L694-L707", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "updateAppliedStatusUnsafe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// updateAppliedStatusUnsafe updates the container transitioning status", "docstring_tokens": ["updateAppliedStatusUnsafe", "updates", "the", "container", "transitioning", "status"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L731-L740", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "SetAppliedStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetAppliedStatus sets the applied status of container and returns whether\n// the container is already in a transition", "docstring_tokens": ["SetAppliedStatus", "sets", "the", "applied", "status", "of", "container", "and", "returns", "whether", "the", "container", "is", "already", "in", "a", "transition"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L744-L755", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "GetAppliedStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAppliedStatus returns the transitioning status of container", "docstring_tokens": ["GetAppliedStatus", "returns", "the", "transitioning", "status", "of", "container"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L758-L763", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "ShouldPullWithASMAuth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ShouldPullWithASMAuth returns true if this container needs to retrieve\n// private registry authentication data from ASM", "docstring_tokens": ["ShouldPullWithASMAuth", "returns", "true", "if", "this", "container", "needs", "to", "retrieve", "private", "registry", "authentication", "data", "from", "ASM"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L767-L774", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "SetASMDockerAuthConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetASMDockerAuthConfig add the docker auth config data to the\n// RegistryAuthentication struct held by the container, this is then passed down\n// to the docker client to pull the image", "docstring_tokens": ["SetASMDockerAuthConfig", "add", "the", "docker", "auth", "config", "data", "to", "the", "RegistryAuthentication", "struct", "held", "by", "the", "container", "this", "is", "then", "passed", "down", "to", "the", "docker", "client", "to", "pull", "the", "image"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L779-L781", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "SetV3EndpointID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetV3EndpointID sets the v3 endpoint id of container", "docstring_tokens": ["SetV3EndpointID", "sets", "the", "v3", "endpoint", "id", "of", "container"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L784-L789", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "GetV3EndpointID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetV3EndpointID returns the v3 endpoint id of container", "docstring_tokens": ["GetV3EndpointID", "returns", "the", "v3", "endpoint", "id", "of", "container"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L792-L797", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "InjectV3MetadataEndpoint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InjectV3MetadataEndpoint injects the v3 metadata endpoint as an environment variable for a container", "docstring_tokens": ["InjectV3MetadataEndpoint", "injects", "the", "v3", "metadata", "endpoint", "as", "an", "environment", "variable", "for", "a", "container"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L800-L811", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "ShouldCreateWithSSMSecret", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ShouldCreateWithSSMSecret returns true if this container needs to get secret\n// value from SSM Parameter Store", "docstring_tokens": ["ShouldCreateWithSSMSecret", "returns", "true", "if", "this", "container", "needs", "to", "get", "secret", "value", "from", "SSM", "Parameter", "Store"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L815-L830", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/container.go", "func_name": "ShouldCreateWithASMSecret", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ShouldCreateWithASMSecret returns true if this container needs to get secret\n// value from AWS Secrets Manager", "docstring_tokens": ["ShouldCreateWithASMSecret", "returns", "true", "if", "this", "container", "needs", "to", "get", "secret", "value", "from", "AWS", "Secrets", "Manager"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/container.go#L834-L849", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/containermetadata/utils.go", "func_name": "getMetadataFilePath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getMetadataFilePath gives the metadata file path for any agent-managed container", "docstring_tokens": ["getMetadataFilePath", "gives", "the", "metadata", "file", "path", "for", "any", "agent", "-", "managed", "container"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/containermetadata/utils.go#L47-L54", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/containermetadata/utils.go", "func_name": "getTaskMetadataDir", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getTaskMetadataDir acquires the directory with all of the metadata\n// files of a given task", "docstring_tokens": ["getTaskMetadataDir", "acquires", "the", "directory", "with", "all", "of", "the", "metadata", "files", "of", "a", "given", "task"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/containermetadata/utils.go#L58-L64", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/config/conditional.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON is used to serialize the type to json, per the Marshaller interface", "docstring_tokens": ["MarshalJSON", "is", "used", "to", "serialize", "the", "type", "to", "json", "per", "the", "Marshaller", "interface"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/config/conditional.go#L36-L45", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/config/conditional.go", "func_name": "UnmarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalJSON is used to deserialize json types into Conditional, per the Unmarshaller interface", "docstring_tokens": ["UnmarshalJSON", "is", "used", "to", "deserialize", "json", "types", "into", "Conditional", "per", "the", "Unmarshaller", "interface"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/config/conditional.go#L48-L64", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/asmsecret/asmsecret.go", "func_name": "NewASMSecretResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewASMSecretResource creates a new ASMSecretResource object", "docstring_tokens": ["NewASMSecretResource", "creates", "a", "new", "ASMSecretResource", "object"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/asmsecret/asmsecret.go#L74-L90", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/asmsecret/asmsecret.go", "func_name": "Create", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// It spins up multiple goroutines in order to retrieve values in parallel.", "docstring_tokens": ["It", "spins", "up", "multiple", "goroutines", "in", "order", "to", "retrieve", "values", "in", "parallel", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/asmsecret/asmsecret.go#L247-L287", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/asmsecret/asmsecret.go", "func_name": "retrieveASMSecretValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// retrieveASMSecretValue reads secret value from cache first, if not exists, call GetSecretFromASM to retrieve value\n// AWS secrets Manager", "docstring_tokens": ["retrieveASMSecretValue", "reads", "secret", "value", "from", "cache", "first", "if", "not", "exists", "call", "GetSecretFromASM", "to", "retrieve", "value", "AWS", "secrets", "Manager"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/asmsecret/asmsecret.go#L291-L309", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/asmsecret/asmsecret.go", "func_name": "getRequiredSecrets", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getRequiredSecrets returns the requiredSecrets field of asmsecret task resource", "docstring_tokens": ["getRequiredSecrets", "returns", "the", "requiredSecrets", "field", "of", "asmsecret", "task", "resource"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/asmsecret/asmsecret.go#L312-L317", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/asmsecret/asmsecret.go", "func_name": "clearASMSecretValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// clearASMSecretValue cycles through the collection of secret value data and\n// removes them from the task", "docstring_tokens": ["clearASMSecretValue", "cycles", "through", "the", "collection", "of", "secret", "value", "data", "and", "removes", "them", "from", "the", "task"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/asmsecret/asmsecret.go#L335-L342", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/asmsecret/asmsecret.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON serialises the ASMSecretResource struct to JSON", "docstring_tokens": ["MarshalJSON", "serialises", "the", "ASMSecretResource", "struct", "to", "JSON"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/asmsecret/asmsecret.go#L391-L412", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/asmsecret/asmsecret.go", "func_name": "UnmarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalJSON deserialises the raw JSON to a ASMSecretResource struct", "docstring_tokens": ["UnmarshalJSON", "deserialises", "the", "raw", "JSON", "to", "a", "ASMSecretResource", "struct"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/asmsecret/asmsecret.go#L415-L438", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/cgroup/control/cgroup_controller_linux.go", "func_name": "Create", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create creates a new cgroup based off the spec post validation", "docstring_tokens": ["Create", "creates", "a", "new", "cgroup", "based", "off", "the", "spec", "post", "validation"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/cgroup/control/cgroup_controller_linux.go#L44-L60", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/cgroup/control/cgroup_controller_linux.go", "func_name": "Remove", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Remove is used to delete the cgroup", "docstring_tokens": ["Remove", "is", "used", "to", "delete", "the", "cgroup"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/cgroup/control/cgroup_controller_linux.go#L63-L77", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/cgroup/control/cgroup_controller_linux.go", "func_name": "Exists", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Exists is used to verify the existence of a cgroup", "docstring_tokens": ["Exists", "is", "used", "to", "verify", "the", "existence", "of", "a", "cgroup"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/cgroup/control/cgroup_controller_linux.go#L80-L89", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/cgroup/control/cgroup_controller_linux.go", "func_name": "validateCgroupSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// validateCgroupSpec checks the cgroup spec for valid path and specifications", "docstring_tokens": ["validateCgroupSpec", "checks", "the", "cgroup", "spec", "for", "valid", "path", "and", "specifications"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/cgroup/control/cgroup_controller_linux.go#L92-L106", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerapi/inactivity_timeout_handler.go", "func_name": "handleInactivityTimeout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// When pulling an image, the docker api will pull and then subsequently unzip the downloaded artifacts. Docker does\n// not separate the \"pull\" from the \"unpack\" step. What this means is that this timeout doesn't 'tick' while unpacking\n// the downloaded files. This only causes noticeable impact with large files, but we should investigate improving this.", "docstring_tokens": ["When", "pulling", "an", "image", "the", "docker", "api", "will", "pull", "and", "then", "subsequently", "unzip", "the", "downloaded", "artifacts", ".", "Docker", "does", "not", "separate", "the", "pull", "from", "the", "unpack", "step", ".", "What", "this", "means", "is", "that", "this", "timeout", "doesn", "t", "tick", "while", "unpacking", "the", "downloaded", "files", ".", "This", "only", "causes", "noticeable", "impact", "with", "large", "files", "but", "we", "should", "investigate", "improving", "this", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerapi/inactivity_timeout_handler.go#L39-L60", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/docker_image_manager.go", "func_name": "NewImageManager", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewImageManager returns a new ImageManager", "docstring_tokens": ["NewImageManager", "returns", "a", "new", "ImageManager"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/docker_image_manager.go#L73-L86", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/docker_image_manager.go", "func_name": "RecordContainerReference", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RecordContainerReference adds container reference to the corresponding imageState object", "docstring_tokens": ["RecordContainerReference", "adds", "container", "reference", "to", "the", "corresponding", "imageState", "object"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/docker_image_manager.go#L107-L136", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/docker_image_manager.go", "func_name": "RemoveContainerReferenceFromImageState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveContainerReferenceFromImageState removes container reference from the corresponding imageState object", "docstring_tokens": ["RemoveContainerReferenceFromImageState", "removes", "container", "reference", "from", "the", "corresponding", "imageState", "object"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/docker_image_manager.go#L175-L192", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/docker_image_manager.go", "func_name": "getImageState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getImageState returns the ImageState object that the container is referenced at", "docstring_tokens": ["getImageState", "returns", "the", "ImageState", "object", "that", "the", "container", "is", "referenced", "at"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/docker_image_manager.go#L204-L211", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/docker_image_manager.go", "func_name": "removeImageState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// removeImageState removes the imageState from the list of imageState objects in ImageManager", "docstring_tokens": ["removeImageState", "removes", "the", "imageState", "from", "the", "list", "of", "imageState", "objects", "in", "ImageManager"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/docker_image_manager.go#L214-L223", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/config/config.go", "func_name": "Merge", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Merge merges two config files, preferring the ones on the left. Any nil or\n// zero values present in the left that are not present in the right will be\n// overridden", "docstring_tokens": ["Merge", "merges", "two", "config", "files", "preferring", "the", "ones", "on", "the", "left", ".", "Any", "nil", "or", "zero", "values", "present", "in", "the", "left", "that", "are", "not", "present", "in", "the", "right", "will", "be", "overridden"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/config/config.go#L180-L192", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/config/config.go", "func_name": "NewConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewConfig returns a config struct created by merging environment variables,\n// a config file, and EC2 Metadata info.\n// The 'config' struct it returns can be used, even if an error is returned. An\n// error is returned, however, if the config is incomplete in some way that is\n// considered fatal.", "docstring_tokens": ["NewConfig", "returns", "a", "config", "struct", "created", "by", "merging", "environment", "variables", "a", "config", "file", "and", "EC2", "Metadata", "info", ".", "The", "config", "struct", "it", "returns", "can", "be", "used", "even", "if", "an", "error", "is", "returned", ".", "An", "error", "is", "returned", "however", "if", "the", "config", "is", "incomplete", "in", "some", "way", "that", "is", "considered", "fatal", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/config/config.go#L199-L235", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/config/config.go", "func_name": "trimWhitespace", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// trimWhitespace trims whitespace from all string cfg values with the\n// `trim` tag", "docstring_tokens": ["trimWhitespace", "trims", "whitespace", "from", "all", "string", "cfg", "values", "with", "the", "trim", "tag"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/config/config.go#L252-L273", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/config/config.go", "func_name": "validateAndOverrideBounds", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// validateAndOverrideBounds performs validation over members of the Config struct\n// and check the value against the minimum required value.", "docstring_tokens": ["validateAndOverrideBounds", "performs", "validation", "over", "members", "of", "the", "Config", "struct", "and", "check", "the", "value", "against", "the", "minimum", "required", "value", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/config/config.go#L277-L335", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/v2/stats_response.go", "func_name": "NewTaskStatsResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTaskStatsResponse returns a new task stats response object", "docstring_tokens": ["NewTaskStatsResponse", "returns", "a", "new", "task", "stats", "response", "object"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/v2/stats_response.go#L25-L51", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/handler/acs_handler.go", "func_name": "NewSession", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSession creates a new Session object", "docstring_tokens": ["NewSession", "creates", "a", "new", "Session", "object"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/handler/acs_handler.go#L136-L171", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/handler/acs_handler.go", "func_name": "startSessionOnce", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// startSessionOnce creates a session with ACS and handles requests using the passed\n// in arguments", "docstring_tokens": ["startSessionOnce", "creates", "a", "session", "with", "ACS", "and", "handles", "requests", "using", "the", "passed", "in", "arguments"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/handler/acs_handler.go#L240-L252", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/handler/acs_handler.go", "func_name": "startACSSession", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// startACSSession starts a session with ACS. It adds request handlers for various\n// kinds of messages expected from ACS. It returns on server disconnection or when\n// the context is cancelled", "docstring_tokens": ["startACSSession", "starts", "a", "session", "with", "ACS", ".", "It", "adds", "request", "handlers", "for", "various", "kinds", "of", "messages", "expected", "from", "ACS", ".", "It", "returns", "on", "server", "disconnection", "or", "when", "the", "context", "is", "cancelled"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/handler/acs_handler.go#L257-L348", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/handler/acs_handler.go", "func_name": "waitForDuration", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// waitForDuration waits for the specified duration of time. If the wait is interrupted,\n// it returns a false value. Else, it returns true, indicating completion of wait time.", "docstring_tokens": ["waitForDuration", "waits", "for", "the", "specified", "duration", "of", "time", ".", "If", "the", "wait", "is", "interrupted", "it", "returns", "a", "false", "value", ".", "Else", "it", "returns", "true", "indicating", "completion", "of", "wait", "time", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/handler/acs_handler.go#L360-L369", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/handler/acs_handler.go", "func_name": "createACSClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// createACSClient creates the ACS Client using the specified URL", "docstring_tokens": ["createACSClient", "creates", "the", "ACS", "Client", "using", "the", "specified", "URL"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/handler/acs_handler.go#L380-L382", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/handler/acs_handler.go", "func_name": "acsWsURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// acsWsURL returns the websocket url for ACS given the endpoint", "docstring_tokens": ["acsWsURL", "returns", "the", "websocket", "url", "for", "ACS", "given", "the", "endpoint"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/handler/acs_handler.go#L404-L421", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/handler/acs_handler.go", "func_name": "newDisconnectionTimer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newDisconnectionTimer creates a new time object, with a callback to\n// disconnect from ACS on inactivity", "docstring_tokens": ["newDisconnectionTimer", "creates", "a", "new", "time", "object", "with", "a", "callback", "to", "disconnect", "from", "ACS", "on", "inactivity"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/handler/acs_handler.go#L425-L435", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/handler/acs_handler.go", "func_name": "anyMessageHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// anyMessageHandler handles any server message. Any server message means the\n// connection is active and thus the heartbeat disconnect should not occur", "docstring_tokens": ["anyMessageHandler", "handles", "any", "server", "message", ".", "Any", "server", "message", "means", "the", "connection", "is", "active", "and", "thus", "the", "heartbeat", "disconnect", "should", "not", "occur"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/handler/acs_handler.go#L439-L450", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "misc/appmesh-plugin-validator/appmesh-plugin-validator.go", "func_name": "validateIPRules", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// validateIPRules validates IP rules created in the container network namespace.", "docstring_tokens": ["validateIPRules", "validates", "IP", "rules", "created", "in", "the", "container", "network", "namespace", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/misc/appmesh-plugin-validator/appmesh-plugin-validator.go#L43-L99", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/utils/helpers.go", "func_name": "WriteJSONToResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteJSONToResponse writes the header, JSON response to a ResponseWriter, and\n// log the error if necessary.", "docstring_tokens": ["WriteJSONToResponse", "writes", "the", "header", "JSON", "response", "to", "a", "ResponseWriter", "and", "log", "the", "error", "if", "necessary", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/utils/helpers.go#L73-L82", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/utils/helpers.go", "func_name": "ValueFromRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValueFromRequest returns the value of a field in the http request. The boolean value is\n// set to true if the field exists in the query.", "docstring_tokens": ["ValueFromRequest", "returns", "the", "value", "of", "a", "field", "in", "the", "http", "request", ".", "The", "boolean", "value", "is", "set", "to", "true", "if", "the", "field", "exists", "in", "the", "query", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/utils/helpers.go#L86-L90", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/utils/helpers.go", "func_name": "GetMuxValueFromRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMuxValueFromRequest extracts the mux value from the request using a gorilla\n// mux name", "docstring_tokens": ["GetMuxValueFromRequest", "extracts", "the", "mux", "value", "from", "the", "request", "using", "a", "gorilla", "mux", "name"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/utils/helpers.go#L94-L98", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/utils/helpers.go", "func_name": "LimitReachedHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LimitReachedHandler logs the throttled request in the credentials audit log", "docstring_tokens": ["LimitReachedHandler", "logs", "the", "throttled", "request", "in", "the", "credentials", "audit", "log"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/utils/helpers.go#L111-L118", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/transitiondependency.go", "func_name": "UnmarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalJSON decodes the TransitionDependencySet tag in the JSON encoded string\n// into the TransitionDependenciesMap object", "docstring_tokens": ["UnmarshalJSON", "decodes", "the", "TransitionDependencySet", "tag", "in", "the", "JSON", "encoded", "string", "into", "the", "TransitionDependenciesMap", "object"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/transitiondependency.go#L69-L96", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/sync/sequential_waitgroup.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add adds the given delta to the waitgroup at the given sequence", "docstring_tokens": ["Add", "adds", "the", "given", "delta", "to", "the", "waitgroup", "at", "the", "given", "sequence"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/sync/sequential_waitgroup.go#L40-L54", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/sync/sequential_waitgroup.go", "func_name": "Done", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Done decrements the waitgroup at the given sequence by one", "docstring_tokens": ["Done", "decrements", "the", "waitgroup", "at", "the", "given", "sequence", "by", "one"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/sync/sequential_waitgroup.go#L57-L68", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/cgroup/control/factory/mock/mock_cgroups_linux.go", "func_name": "NewMockCgroup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockCgroup creates a new mock instance", "docstring_tokens": ["NewMockCgroup", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/cgroup/control/factory/mock/mock_cgroups_linux.go#L40-L44", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/cgroup/control/factory/mock/mock_cgroups_linux.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add mocks base method", "docstring_tokens": ["Add", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/cgroup/control/factory/mock/mock_cgroups_linux.go#L52-L56", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/cgroup/control/factory/mock/mock_cgroups_linux.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add indicates an expected call of Add", "docstring_tokens": ["Add", "indicates", "an", "expected", "call", "of", "Add"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/cgroup/control/factory/mock/mock_cgroups_linux.go#L59-L61", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/cgroup/control/factory/mock/mock_cgroups_linux.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete indicates an expected call of Delete", "docstring_tokens": ["Delete", "indicates", "an", "expected", "call", "of", "Delete"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/cgroup/control/factory/mock/mock_cgroups_linux.go#L71-L73", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/cgroup/control/factory/mock/mock_cgroups_linux.go", "func_name": "MoveTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MoveTo mocks base method", "docstring_tokens": ["MoveTo", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/cgroup/control/factory/mock/mock_cgroups_linux.go#L88-L92", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/cgroup/control/factory/mock/mock_cgroups_linux.go", "func_name": "OOMEventFD", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OOMEventFD mocks base method", "docstring_tokens": ["OOMEventFD", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/cgroup/control/factory/mock/mock_cgroups_linux.go#L113-L118", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/cgroup/control/factory/mock/mock_cgroups_linux.go", "func_name": "Processes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Processes mocks base method", "docstring_tokens": ["Processes", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/cgroup/control/factory/mock/mock_cgroups_linux.go#L126-L131", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/cgroup/control/factory/mock/mock_cgroups_linux.go", "func_name": "Stat", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stat mocks base method", "docstring_tokens": ["Stat", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/cgroup/control/factory/mock/mock_cgroups_linux.go#L139-L148", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/cgroup/control/factory/mock/mock_cgroups_linux.go", "func_name": "Subsystems", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Subsystems mocks base method", "docstring_tokens": ["Subsystems", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/cgroup/control/factory/mock/mock_cgroups_linux.go#L168-L172", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/v3/task_stats_handler.go", "func_name": "TaskStatsHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TaskStatsHandler returns the handler method for handling task stats requests.", "docstring_tokens": ["TaskStatsHandler", "returns", "the", "handler", "method", "for", "handling", "task", "stats", "requests", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/v3/task_stats_handler.go#L32-L47", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/versions.go", "func_name": "GetKnownAPIVersions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetKnownAPIVersions returns all of the API versions that we know about.\n// It doesn't care if the version is supported by Docker or ECS agent", "docstring_tokens": ["GetKnownAPIVersions", "returns", "all", "of", "the", "API", "versions", "that", "we", "know", "about", ".", "It", "doesn", "t", "care", "if", "the", "version", "is", "supported", "by", "Docker", "or", "ECS", "agent"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/versions.go#L43-L62", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eni/udevwrapper/mocks/mock_udevwrapper_linux.go", "func_name": "NewMockUdev", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockUdev creates a new mock instance", "docstring_tokens": ["NewMockUdev", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eni/udevwrapper/mocks/mock_udevwrapper_linux.go#L39-L43", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eni/udevwrapper/mocks/mock_udevwrapper_linux.go", "func_name": "Monitor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Monitor mocks base method", "docstring_tokens": ["Monitor", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eni/udevwrapper/mocks/mock_udevwrapper_linux.go#L63-L67", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eni/udevwrapper/mocks/mock_udevwrapper_linux.go", "func_name": "Monitor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Monitor indicates an expected call of Monitor", "docstring_tokens": ["Monitor", "indicates", "an", "expected", "call", "of", "Monitor"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eni/udevwrapper/mocks/mock_udevwrapper_linux.go#L70-L72", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecs_client/model/ecs/api.go", "func_name": "SetInferenceDevices", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetInferenceDevices sets the InferenceDevices field's value.", "docstring_tokens": ["SetInferenceDevices", "sets", "the", "InferenceDevices", "field", "s", "value", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecs_client/model/ecs/api.go#L4788-L4791", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecs_client/model/ecs/api.go", "func_name": "SetDeviceName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetDeviceName sets the DeviceName field's value.", "docstring_tokens": ["SetDeviceName", "sets", "the", "DeviceName", "field", "s", "value", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecs_client/model/ecs/api.go#L7102-L7105", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecs_client/model/ecs/api.go", "func_name": "SetDeviceType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetDeviceType sets the DeviceType field's value.", "docstring_tokens": ["SetDeviceType", "sets", "the", "DeviceType", "field", "s", "value", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecs_client/model/ecs/api.go#L7108-L7111", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/config/config_unix.go", "func_name": "DefaultConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DefaultConfig returns the default configuration for Linux", "docstring_tokens": ["DefaultConfig", "returns", "the", "default", "configuration", "for", "Linux"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/config/config_unix.go#L46-L84", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/config/config_unix.go", "func_name": "platformString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// platformString returns platform-specific config data that can be serialized\n// to string for debugging", "docstring_tokens": ["platformString", "returns", "platform", "-", "specific", "config", "data", "that", "can", "be", "serialized", "to", "string", "for", "debugging"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/config/config_unix.go#L95-L104", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/status/statusmapping.go", "func_name": "MapTaskToContainerStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MapTaskToContainerStatus maps the task status to the corresponding container status", "docstring_tokens": ["MapTaskToContainerStatus", "maps", "the", "task", "status", "to", "the", "corresponding", "container", "status"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/status/statusmapping.go#L46-L58", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/errors/error_types.go", "func_name": "Error", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Error returns the error string for MultiErr", "docstring_tokens": ["Error", "returns", "the", "error", "string", "for", "MultiErr"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/errors/error_types.go#L93-L100", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/errors/error_types.go", "func_name": "NewMultiError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMultiError creates a new MultErr object", "docstring_tokens": ["NewMultiError", "creates", "a", "new", "MultErr", "object"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/errors/error_types.go#L103-L111", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/registryauth.go", "func_name": "GetPullCredentials", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPullCredentials returns the pull credentials in the auth", "docstring_tokens": ["GetPullCredentials", "returns", "the", "pull", "credentials", "in", "the", "auth"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/registryauth.go#L57-L62", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/registryauth.go", "func_name": "SetPullCredentials", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetPullCredentials sets the credentials to pull from ECR in the auth", "docstring_tokens": ["SetPullCredentials", "sets", "the", "credentials", "to", "pull", "from", "ECR", "in", "the", "auth"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/registryauth.go#L65-L70", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/registryauth.go", "func_name": "GetDockerAuthConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDockerAuthConfig returns the pull credentials in the auth", "docstring_tokens": ["GetDockerAuthConfig", "returns", "the", "pull", "credentials", "in", "the", "auth"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/registryauth.go#L73-L78", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/registryauth.go", "func_name": "SetDockerAuthConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetDockerAuthConfig sets the credentials to pull from ECR in the\n// auth", "docstring_tokens": ["SetDockerAuthConfig", "sets", "the", "credentials", "to", "pull", "from", "ECR", "in", "the", "auth"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/registryauth.go#L82-L87", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "NewMockSecretsManagerAPI", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockSecretsManagerAPI creates a new mock instance", "docstring_tokens": ["NewMockSecretsManagerAPI", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L41-L45", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "CancelRotateSecret", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CancelRotateSecret mocks base method", "docstring_tokens": ["CancelRotateSecret", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L53-L58", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "CancelRotateSecret", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CancelRotateSecret indicates an expected call of CancelRotateSecret", "docstring_tokens": ["CancelRotateSecret", "indicates", "an", "expected", "call", "of", "CancelRotateSecret"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L61-L63", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "CancelRotateSecretRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CancelRotateSecretRequest mocks base method", "docstring_tokens": ["CancelRotateSecretRequest", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L66-L71", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "CancelRotateSecretWithContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CancelRotateSecretWithContext mocks base method", "docstring_tokens": ["CancelRotateSecretWithContext", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L79-L88", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "CreateSecret", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateSecret mocks base method", "docstring_tokens": ["CreateSecret", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L97-L102", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "CreateSecretRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateSecretRequest mocks base method", "docstring_tokens": ["CreateSecretRequest", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L110-L115", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "CreateSecretWithContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateSecretWithContext mocks base method", "docstring_tokens": ["CreateSecretWithContext", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L123-L132", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "DeleteResourcePolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteResourcePolicy mocks base method", "docstring_tokens": ["DeleteResourcePolicy", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L141-L146", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "DeleteResourcePolicyRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteResourcePolicyRequest mocks base method", "docstring_tokens": ["DeleteResourcePolicyRequest", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L154-L159", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "DeleteResourcePolicyWithContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteResourcePolicyWithContext mocks base method", "docstring_tokens": ["DeleteResourcePolicyWithContext", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L167-L176", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "DeleteSecret", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteSecret mocks base method", "docstring_tokens": ["DeleteSecret", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L185-L190", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "DeleteSecretRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteSecretRequest mocks base method", "docstring_tokens": ["DeleteSecretRequest", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L198-L203", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "DeleteSecretWithContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteSecretWithContext mocks base method", "docstring_tokens": ["DeleteSecretWithContext", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L211-L220", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "DescribeSecret", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DescribeSecret mocks base method", "docstring_tokens": ["DescribeSecret", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L229-L234", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "DescribeSecretRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DescribeSecretRequest mocks base method", "docstring_tokens": ["DescribeSecretRequest", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L242-L247", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "DescribeSecretWithContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DescribeSecretWithContext mocks base method", "docstring_tokens": ["DescribeSecretWithContext", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L255-L264", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "GetRandomPassword", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRandomPassword mocks base method", "docstring_tokens": ["GetRandomPassword", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L273-L278", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "GetRandomPasswordRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRandomPasswordRequest mocks base method", "docstring_tokens": ["GetRandomPasswordRequest", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L286-L291", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "GetRandomPasswordWithContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRandomPasswordWithContext mocks base method", "docstring_tokens": ["GetRandomPasswordWithContext", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L299-L308", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "GetResourcePolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetResourcePolicy mocks base method", "docstring_tokens": ["GetResourcePolicy", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L317-L322", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "GetResourcePolicyRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetResourcePolicyRequest mocks base method", "docstring_tokens": ["GetResourcePolicyRequest", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L330-L335", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "GetResourcePolicyWithContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetResourcePolicyWithContext mocks base method", "docstring_tokens": ["GetResourcePolicyWithContext", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L343-L352", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "GetSecretValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSecretValue mocks base method", "docstring_tokens": ["GetSecretValue", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L361-L366", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "GetSecretValueRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSecretValueRequest mocks base method", "docstring_tokens": ["GetSecretValueRequest", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L374-L379", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "GetSecretValueWithContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSecretValueWithContext mocks base method", "docstring_tokens": ["GetSecretValueWithContext", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L387-L396", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "ListSecretVersionIds", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListSecretVersionIds mocks base method", "docstring_tokens": ["ListSecretVersionIds", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L405-L410", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "ListSecretVersionIdsPages", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListSecretVersionIdsPages mocks base method", "docstring_tokens": ["ListSecretVersionIdsPages", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L418-L422", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "ListSecretVersionIdsPagesWithContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListSecretVersionIdsPagesWithContext mocks base method", "docstring_tokens": ["ListSecretVersionIdsPagesWithContext", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L430-L438", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "ListSecretVersionIdsRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListSecretVersionIdsRequest mocks base method", "docstring_tokens": ["ListSecretVersionIdsRequest", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L447-L452", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "ListSecrets", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListSecrets mocks base method", "docstring_tokens": ["ListSecrets", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L478-L483", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "ListSecretsPages", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListSecretsPages mocks base method", "docstring_tokens": ["ListSecretsPages", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L491-L495", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "ListSecretsRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListSecretsRequest mocks base method", "docstring_tokens": ["ListSecretsRequest", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L520-L525", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "ListSecretsWithContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListSecretsWithContext mocks base method", "docstring_tokens": ["ListSecretsWithContext", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L533-L542", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "PutResourcePolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PutResourcePolicy mocks base method", "docstring_tokens": ["PutResourcePolicy", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L551-L556", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "PutResourcePolicyRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PutResourcePolicyRequest mocks base method", "docstring_tokens": ["PutResourcePolicyRequest", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L564-L569", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "PutResourcePolicyWithContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PutResourcePolicyWithContext mocks base method", "docstring_tokens": ["PutResourcePolicyWithContext", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L577-L586", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "PutSecretValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PutSecretValue mocks base method", "docstring_tokens": ["PutSecretValue", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L595-L600", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "PutSecretValueRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PutSecretValueRequest mocks base method", "docstring_tokens": ["PutSecretValueRequest", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L608-L613", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "PutSecretValueWithContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PutSecretValueWithContext mocks base method", "docstring_tokens": ["PutSecretValueWithContext", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L621-L630", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "RestoreSecret", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RestoreSecret mocks base method", "docstring_tokens": ["RestoreSecret", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L639-L644", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "RestoreSecretRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RestoreSecretRequest mocks base method", "docstring_tokens": ["RestoreSecretRequest", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L652-L657", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "RestoreSecretWithContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RestoreSecretWithContext mocks base method", "docstring_tokens": ["RestoreSecretWithContext", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L665-L674", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "RotateSecret", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RotateSecret mocks base method", "docstring_tokens": ["RotateSecret", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L683-L688", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "RotateSecretRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RotateSecretRequest mocks base method", "docstring_tokens": ["RotateSecretRequest", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L696-L701", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "RotateSecretWithContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RotateSecretWithContext mocks base method", "docstring_tokens": ["RotateSecretWithContext", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L709-L718", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "TagResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TagResource mocks base method", "docstring_tokens": ["TagResource", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L727-L732", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "TagResourceRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TagResourceRequest mocks base method", "docstring_tokens": ["TagResourceRequest", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L740-L745", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "UntagResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UntagResource mocks base method", "docstring_tokens": ["UntagResource", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L771-L776", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "UntagResourceRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UntagResourceRequest mocks base method", "docstring_tokens": ["UntagResourceRequest", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L784-L789", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "UntagResourceWithContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UntagResourceWithContext mocks base method", "docstring_tokens": ["UntagResourceWithContext", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L797-L806", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "UpdateSecret", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateSecret mocks base method", "docstring_tokens": ["UpdateSecret", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L815-L820", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "UpdateSecretRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateSecretRequest mocks base method", "docstring_tokens": ["UpdateSecretRequest", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L828-L833", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "UpdateSecretVersionStage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateSecretVersionStage mocks base method", "docstring_tokens": ["UpdateSecretVersionStage", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L841-L846", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "UpdateSecretVersionStageRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateSecretVersionStageRequest mocks base method", "docstring_tokens": ["UpdateSecretVersionStageRequest", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L854-L859", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "UpdateSecretVersionStageWithContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateSecretVersionStageWithContext mocks base method", "docstring_tokens": ["UpdateSecretVersionStageWithContext", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L867-L876", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "UpdateSecretVersionStageWithContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateSecretVersionStageWithContext indicates an expected call of UpdateSecretVersionStageWithContext", "docstring_tokens": ["UpdateSecretVersionStageWithContext", "indicates", "an", "expected", "call", "of", "UpdateSecretVersionStageWithContext"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L879-L882", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/asm/mocks/secretsmanagerapi_mocks.go", "func_name": "UpdateSecretWithContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateSecretWithContext mocks base method", "docstring_tokens": ["UpdateSecretWithContext", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/asm/mocks/secretsmanagerapi_mocks.go#L885-L894", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/containermetadata/write_metadata_unix.go", "func_name": "createBindsEnv", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// createBindsEnv will do the appropriate formatting to add a new mount in a container's HostConfig\n// and add the metadata file path as an environment variable ECS_CONTAINER_METADATA_FILE\n// We add an additional uuid to the path to ensure it does not conflict with user mounts", "docstring_tokens": ["createBindsEnv", "will", "do", "the", "appropriate", "formatting", "to", "add", "a", "new", "mount", "in", "a", "container", "s", "HostConfig", "and", "add", "the", "metadata", "file", "path", "as", "an", "environment", "variable", "ECS_CONTAINER_METADATA_FILE", "We", "add", "an", "additional", "uuid", "to", "the", "path", "to", "ensure", "it", "does", "not", "conflict", "with", "user", "mounts"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/containermetadata/write_metadata_unix.go#L36-L43", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/containermetadata/parse_metadata.go", "func_name": "parseMetadataAtContainerCreate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseMetadataAtContainerCreate gathers metadata from task and cluster configurations\n// then packages it for JSON Marshaling. We use this version to get data\n// available prior to container creation\n// Since we accept incomplete metadata fields, we should not return\n// errors here and handle them at this or the above stage.", "docstring_tokens": ["parseMetadataAtContainerCreate", "gathers", "metadata", "from", "task", "and", "cluster", "configurations", "then", "packages", "it", "for", "JSON", "Marshaling", ".", "We", "use", "this", "version", "to", "get", "data", "available", "prior", "to", "container", "creation", "Since", "we", "accept", "incomplete", "metadata", "fields", "we", "should", "not", "return", "errors", "here", "and", "handle", "them", "at", "this", "or", "the", "above", "stage", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/containermetadata/parse_metadata.go#L32-L46", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/containermetadata/parse_metadata.go", "func_name": "parseMetadata", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseMetadata gathers metadata from a docker container, and task\n// configuration and data then packages it for JSON Marshaling\n// Since we accept incomplete metadata fields, we should not return\n// errors here and handle them at this or the above stage.", "docstring_tokens": ["parseMetadata", "gathers", "metadata", "from", "a", "docker", "container", "and", "task", "configuration", "and", "data", "then", "packages", "it", "for", "JSON", "Marshaling", "Since", "we", "accept", "incomplete", "metadata", "fields", "we", "should", "not", "return", "errors", "here", "and", "handle", "them", "at", "this", "or", "the", "above", "stage", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/containermetadata/parse_metadata.go#L52-L68", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/containermetadata/parse_metadata.go", "func_name": "parseDockerContainerMetadata", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseDockerContainerMetadata parses the metadata in a docker container\n// and packages this data for JSON marshaling\n// Since we accept incomplete metadata fields, we should not return\n// errors here and handle them at this stage.", "docstring_tokens": ["parseDockerContainerMetadata", "parses", "the", "metadata", "in", "a", "docker", "container", "and", "packages", "this", "data", "for", "JSON", "marshaling", "Since", "we", "accept", "incomplete", "metadata", "fields", "we", "should", "not", "return", "errors", "here", "and", "handle", "them", "at", "this", "stage", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/containermetadata/parse_metadata.go#L74-L117", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/containermetadata/parse_metadata.go", "func_name": "parseNetworkMetadata", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseNetworkMetadata parses the docker.NetworkSettings struct and\n// packages the desired metadata for JSON marshaling\n// Since we accept incomplete metadata fields, we should not return\n// errors here and handle them at this stage.", "docstring_tokens": ["parseNetworkMetadata", "parses", "the", "docker", ".", "NetworkSettings", "struct", "and", "packages", "the", "desired", "metadata", "for", "JSON", "marshaling", "Since", "we", "accept", "incomplete", "metadata", "fields", "we", "should", "not", "return", "errors", "here", "and", "handle", "them", "at", "this", "stage", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/containermetadata/parse_metadata.go#L123-L160", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/gpu/nvidia_gpu_manager_unix.go", "func_name": "Initialize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Initialize sets the fields of Nvidia GPU Manager struct", "docstring_tokens": ["Initialize", "sets", "the", "fields", "of", "Nvidia", "GPU", "Manager", "struct"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/gpu/nvidia_gpu_manager_unix.go#L63-L85", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/gpu/nvidia_gpu_manager_unix.go", "func_name": "SetGPUIDs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetGPUIDs sets the GPUIDs", "docstring_tokens": ["SetGPUIDs", "sets", "the", "GPUIDs"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/gpu/nvidia_gpu_manager_unix.go#L111-L115", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/gpu/nvidia_gpu_manager_unix.go", "func_name": "SetDriverVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetDriverVersion is a setter for nvidia driver version", "docstring_tokens": ["SetDriverVersion", "is", "a", "setter", "for", "nvidia", "driver", "version"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/gpu/nvidia_gpu_manager_unix.go#L123-L127", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/gpu/nvidia_gpu_manager_unix.go", "func_name": "GetDriverVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDriverVersion is a getter for nvidia driver version", "docstring_tokens": ["GetDriverVersion", "is", "a", "getter", "for", "nvidia", "driver", "version"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/gpu/nvidia_gpu_manager_unix.go#L130-L134", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/gpu/nvidia_gpu_manager_unix.go", "func_name": "GetDevices", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDevices returns the GPU devices as PlatformDevices", "docstring_tokens": ["GetDevices", "returns", "the", "GPU", "devices", "as", "PlatformDevices"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/gpu/nvidia_gpu_manager_unix.go#L151-L155", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/mocks/utils_mocks.go", "func_name": "NewMockLicenseProvider", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockLicenseProvider creates a new mock instance", "docstring_tokens": ["NewMockLicenseProvider", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/mocks/utils_mocks.go#L39-L43", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/mocks/utils_mocks.go", "func_name": "GetText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetText mocks base method", "docstring_tokens": ["GetText", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/mocks/utils_mocks.go#L51-L56", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/mocks/utils_mocks.go", "func_name": "GetText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetText indicates an expected call of GetText", "docstring_tokens": ["GetText", "indicates", "an", "expected", "call", "of", "GetText"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/mocks/utils_mocks.go#L59-L61", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/mocks/utils_mocks.go", "func_name": "NewMockBackoff", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockBackoff creates a new mock instance", "docstring_tokens": ["NewMockBackoff", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/mocks/utils_mocks.go#L75-L79", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/mocks/utils_mocks.go", "func_name": "Duration", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Duration mocks base method", "docstring_tokens": ["Duration", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/mocks/utils_mocks.go#L87-L91", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/mocks/utils_mocks.go", "func_name": "Duration", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Duration indicates an expected call of Duration", "docstring_tokens": ["Duration", "indicates", "an", "expected", "call", "of", "Duration"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/mocks/utils_mocks.go#L94-L96", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "misc/container-metadata-file-validator-windows/container-metadata-file-validator-windows.go", "func_name": "UnmarshalText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Allows unmarshaling from byte to MetadataStatus text form", "docstring_tokens": ["Allows", "unmarshaling", "from", "byte", "to", "MetadataStatus", "text", "form"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/misc/container-metadata-file-validator-windows/container-metadata-file-validator-windows.go#L150-L161", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/ttime/ttime.go", "func_name": "After", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// After sleeps for the given duration and then writes to to the returned channel", "docstring_tokens": ["After", "sleeps", "for", "the", "given", "duration", "and", "then", "writes", "to", "to", "the", "returned", "channel"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/ttime/ttime.go#L35-L37", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/ttime/ttime.go", "func_name": "AfterFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AfterFunc waits for the duration to elapse and then calls f in its own\n// goroutine. It returns a Timer that can be used to cancel the call using its\n// Stop method.", "docstring_tokens": ["AfterFunc", "waits", "for", "the", "duration", "to", "elapse", "and", "then", "calls", "f", "in", "its", "own", "goroutine", ".", "It", "returns", "a", "Timer", "that", "can", "be", "used", "to", "cancel", "the", "call", "using", "its", "Stop", "method", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/ttime/ttime.go#L42-L44", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/ttime/ttime.go", "func_name": "Since", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Since returns the time different from Now and the given time t", "docstring_tokens": ["Since", "returns", "the", "time", "different", "from", "Now", "and", "the", "given", "time", "t"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/ttime/ttime.go#L58-L60", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/mocks/taskresource_mocks.go", "func_name": "NewMockTaskResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockTaskResource creates a new mock instance", "docstring_tokens": ["NewMockTaskResource", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/mocks/taskresource_mocks.go#L42-L46", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/mocks/taskresource_mocks.go", "func_name": "ApplyTransition", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ApplyTransition mocks base method", "docstring_tokens": ["ApplyTransition", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/mocks/taskresource_mocks.go#L54-L58", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/mocks/taskresource_mocks.go", "func_name": "Cleanup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Cleanup mocks base method", "docstring_tokens": ["Cleanup", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/mocks/taskresource_mocks.go#L66-L70", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/mocks/taskresource_mocks.go", "func_name": "GetCreatedAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCreatedAt mocks base method", "docstring_tokens": ["GetCreatedAt", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/mocks/taskresource_mocks.go#L102-L106", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/mocks/taskresource_mocks.go", "func_name": "GetTerminalReason", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTerminalReason mocks base method", "docstring_tokens": ["GetTerminalReason", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/mocks/taskresource_mocks.go#L150-L154", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/mocks/taskresource_mocks.go", "func_name": "Initialize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Initialize indicates an expected call of Initialize", "docstring_tokens": ["Initialize", "indicates", "an", "expected", "call", "of", "Initialize"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/mocks/taskresource_mocks.go#L167-L169", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/mocks/taskresource_mocks.go", "func_name": "KnownCreated", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// KnownCreated mocks base method", "docstring_tokens": ["KnownCreated", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/mocks/taskresource_mocks.go#L172-L176", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/mocks/taskresource_mocks.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON indicates an expected call of MarshalJSON", "docstring_tokens": ["MarshalJSON", "indicates", "an", "expected", "call", "of", "MarshalJSON"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/mocks/taskresource_mocks.go#L192-L194", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/mocks/taskresource_mocks.go", "func_name": "NextKnownState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NextKnownState mocks base method", "docstring_tokens": ["NextKnownState", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/mocks/taskresource_mocks.go#L197-L201", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/mocks/taskresource_mocks.go", "func_name": "SetAppliedStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetAppliedStatus mocks base method", "docstring_tokens": ["SetAppliedStatus", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/mocks/taskresource_mocks.go#L209-L213", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/mocks/taskresource_mocks.go", "func_name": "SetAppliedStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetAppliedStatus indicates an expected call of SetAppliedStatus", "docstring_tokens": ["SetAppliedStatus", "indicates", "an", "expected", "call", "of", "SetAppliedStatus"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/mocks/taskresource_mocks.go#L216-L218", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/mocks/taskresource_mocks.go", "func_name": "SetCreatedAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetCreatedAt mocks base method", "docstring_tokens": ["SetCreatedAt", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/mocks/taskresource_mocks.go#L221-L223", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/mocks/taskresource_mocks.go", "func_name": "SetDesiredStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetDesiredStatus mocks base method", "docstring_tokens": ["SetDesiredStatus", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/mocks/taskresource_mocks.go#L231-L233", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/mocks/taskresource_mocks.go", "func_name": "SetKnownStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetKnownStatus mocks base method", "docstring_tokens": ["SetKnownStatus", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/mocks/taskresource_mocks.go#L241-L243", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/mocks/taskresource_mocks.go", "func_name": "StatusString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StatusString mocks base method", "docstring_tokens": ["StatusString", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/mocks/taskresource_mocks.go#L251-L255", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eni/pause/mocks/load_mocks.go", "func_name": "NewMockLoader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockLoader creates a new mock instance", "docstring_tokens": ["NewMockLoader", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eni/pause/mocks/load_mocks.go#L42-L46", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eni/pause/mocks/load_mocks.go", "func_name": "LoadImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadImage indicates an expected call of LoadImage", "docstring_tokens": ["LoadImage", "indicates", "an", "expected", "call", "of", "LoadImage"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eni/pause/mocks/load_mocks.go#L62-L64", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerapi/types.go", "func_name": "Error", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Error returns an error string for the ContainerNotFound error", "docstring_tokens": ["Error", "returns", "an", "error", "string", "for", "the", "ContainerNotFound", "error"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerapi/types.go#L36-L39", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerapi/types.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns a human readable string of the container change event", "docstring_tokens": ["String", "returns", "a", "human", "readable", "string", "of", "the", "container", "change", "event"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerapi/types.go#L120-L155", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/taskvolume.go", "func_name": "UnmarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalJSON for TaskVolume determines the name and volume type, and\n// unmarshals it into the appropriate HostVolume fulfilling interfaces", "docstring_tokens": ["UnmarshalJSON", "for", "TaskVolume", "determines", "the", "name", "and", "volume", "type", "and", "unmarshals", "it", "into", "the", "appropriate", "HostVolume", "fulfilling", "interfaces"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/taskvolume.go#L39-L70", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/taskvolume.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON overrides the logic for JSON-encoding a TaskVolume object", "docstring_tokens": ["MarshalJSON", "overrides", "the", "logic", "for", "JSON", "-", "encoding", "a", "TaskVolume", "object"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/taskvolume.go#L73-L93", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ssm/factory/factory.go", "func_name": "NewSSMClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//SSM Client will automatically retry 3 times when has throttling error", "docstring_tokens": ["SSM", "Client", "will", "automatically", "retry", "3", "times", "when", "has", "throttling", "error"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ssm/factory/factory.go#L43-L53", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/sdkclientfactory/versionsupport_windows.go", "func_name": "GetClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetClient will replace some versions of Docker on Windows. We need this because\n// agent assumes that it can always call older versions of the docker API.", "docstring_tokens": ["GetClient", "will", "replace", "some", "versions", "of", "Docker", "on", "Windows", ".", "We", "need", "this", "because", "agent", "assumes", "that", "it", "can", "always", "call", "older", "versions", "of", "the", "docker", "API", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/sdkclientfactory/versionsupport_windows.go#L27-L35", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/sdkclientfactory/versionsupport_windows.go", "func_name": "getWindowsReplaceableVersions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getWindowsReplaceableVersions returns the set of versions that agent will report\n// as Docker 1.24", "docstring_tokens": ["getWindowsReplaceableVersions", "returns", "the", "set", "of", "versions", "that", "agent", "will", "report", "as", "Docker", "1", ".", "24"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/sdkclientfactory/versionsupport_windows.go#L39-L49", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/sdkclientfactory/versionsupport_windows.go", "func_name": "getWindowsSupportedVersions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getWindowsSupportedVersions returns the set of remote api versions that are\n// supported by agent in windows", "docstring_tokens": ["getWindowsSupportedVersions", "returns", "the", "set", "of", "remote", "api", "versions", "that", "are", "supported", "by", "agent", "in", "windows"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/sdkclientfactory/versionsupport_windows.go#L53-L63", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/port_binding.go", "func_name": "PortBindingFromDockerPortBinding", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PortBindingFromDockerPortBinding constructs a PortBinding slice from a docker\n// NetworkSettings.Ports map.", "docstring_tokens": ["PortBindingFromDockerPortBinding", "constructs", "a", "PortBinding", "slice", "from", "a", "docker", "NetworkSettings", ".", "Ports", "map", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/port_binding.go#L44-L71", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/asmauth/asmauth.go", "func_name": "NewASMAuthResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewASMAuthResource creates a new ASMAuthResource object", "docstring_tokens": ["NewASMAuthResource", "creates", "a", "new", "ASMAuthResource", "object"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/asmauth/asmauth.go#L77-L93", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/asmauth/asmauth.go", "func_name": "Create", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create fetches credentials from ASM", "docstring_tokens": ["Create", "fetches", "credentials", "from", "ASM"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/asmauth/asmauth.go#L250-L264", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/asmauth/asmauth.go", "func_name": "GetRequiredASMResources", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRequiredASMResources returns the list of ASMAuthData that has to be\n// retrieved from AWS Secrets Manager", "docstring_tokens": ["GetRequiredASMResources", "returns", "the", "list", "of", "ASMAuthData", "that", "has", "to", "be", "retrieved", "from", "AWS", "Secrets", "Manager"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/asmauth/asmauth.go#L297-L302", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/asmauth/asmauth.go", "func_name": "GetExecutionCredentialsID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetExecutionCredentialsID returns the execution role's credential ID", "docstring_tokens": ["GetExecutionCredentialsID", "returns", "the", "execution", "role", "s", "credential", "ID"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/asmauth/asmauth.go#L305-L310", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/asmauth/asmauth.go", "func_name": "clearASMDockerAuthConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// clearASMDockerAuthConfig cycles through the collection of docker private\n// registry auth data and removes them from the task", "docstring_tokens": ["clearASMDockerAuthConfig", "cycles", "through", "the", "collection", "of", "docker", "private", "registry", "auth", "data", "and", "removes", "them", "from", "the", "task"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/asmauth/asmauth.go#L320-L327", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/asmauth/asmauth.go", "func_name": "GetASMDockerAuthConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetASMDockerAuthConfig retrieves the docker private registry auth data from\n// the task", "docstring_tokens": ["GetASMDockerAuthConfig", "retrieves", "the", "docker", "private", "registry", "auth", "data", "from", "the", "task"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/asmauth/asmauth.go#L331-L337", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/asmauth/asmauth.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON serialises the ASMAuthResource struct to JSON", "docstring_tokens": ["MarshalJSON", "serialises", "the", "ASMAuthResource", "struct", "to", "JSON"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/asmauth/asmauth.go#L363-L384", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/asmauth/asmauth.go", "func_name": "UnmarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalJSON deserialises the raw JSON to a ASMAuthResource struct", "docstring_tokens": ["UnmarshalJSON", "deserialises", "the", "raw", "JSON", "to", "a", "ASMAuthResource", "struct"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/asmauth/asmauth.go#L387-L410", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/v3/container_metadata_handler.go", "func_name": "ContainerMetadataHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerMetadataHandler returns the handler method for handling container metadata requests.", "docstring_tokens": ["ContainerMetadataHandler", "returns", "the", "handler", "method", "for", "handling", "container", "metadata", "requests", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/v3/container_metadata_handler.go#L33-L53", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/v3/container_metadata_handler.go", "func_name": "GetContainerResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetContainerResponse gets container response for v3 metadata", "docstring_tokens": ["GetContainerResponse", "gets", "container", "response", "for", "v3", "metadata"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/v3/container_metadata_handler.go#L56-L68", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/v3/container_metadata_handler.go", "func_name": "GetContainerNetworkMetadata", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetContainerNetworkMetadata returns the network metadata for the container", "docstring_tokens": ["GetContainerNetworkMetadata", "returns", "the", "network", "metadata", "for", "the", "container"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/v3/container_metadata_handler.go#L71-L104", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/cgroup/cgroup_unsupported.go", "func_name": "Initialize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Initialize fills the resource fileds", "docstring_tokens": ["Initialize", "fills", "the", "resource", "fileds"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/cgroup/cgroup_unsupported.go#L125-L128", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/sighandlers/termination_handler.go", "func_name": "StartDefaultTerminationHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StartDefaultTerminationHandler defines a default termination handler suitable for running in a process", "docstring_tokens": ["StartDefaultTerminationHandler", "defines", "a", "default", "termination", "handler", "suitable", "for", "running", "in", "a", "process"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/sighandlers/termination_handler.go#L45-L59", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/sighandlers/termination_handler.go", "func_name": "FinalSave", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FinalSave should be called immediately before exiting, and only before\n// exiting, in order to flush tasks to disk. It waits a short timeout for state\n// to settle if necessary. If unable to reach a steady-state and save within\n// this short timeout, it returns an error", "docstring_tokens": ["FinalSave", "should", "be", "called", "immediately", "before", "exiting", "and", "only", "before", "exiting", "in", "order", "to", "flush", "tasks", "to", "disk", ".", "It", "waits", "a", "short", "timeout", "for", "state", "to", "settle", "if", "necessary", ".", "If", "unable", "to", "reach", "a", "steady", "-", "state", "and", "save", "within", "this", "short", "timeout", "it", "returns", "an", "error"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/sighandlers/termination_handler.go#L65-L97", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerauth/ecr.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String formats the cachKey as a string", "docstring_tokens": ["String", "formats", "the", "cachKey", "as", "a", "string"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerauth/ecr.go#L54-L56", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerauth/ecr.go", "func_name": "NewECRAuthProvider", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewECRAuthProvider returns a DockerAuthProvider that can handle retrieve\n// credentials for pulling from Amazon EC2 Container Registry", "docstring_tokens": ["NewECRAuthProvider", "returns", "a", "DockerAuthProvider", "that", "can", "handle", "retrieve", "credentials", "for", "pulling", "from", "Amazon", "EC2", "Container", "Registry"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerauth/ecr.go#L60-L65", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerauth/ecr.go", "func_name": "getAuthConfigFromCache", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getAuthconfigFromCache retrieves the token from cache", "docstring_tokens": ["getAuthconfigFromCache", "retrieves", "the", "token", "from", "cache"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerauth/ecr.go#L107-L133", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerauth/ecr.go", "func_name": "getAuthConfigFromECR", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getAuthConfigFromECR calls the ECR API to get docker auth config", "docstring_tokens": ["getAuthConfigFromECR", "calls", "the", "ECR", "API", "to", "get", "docker", "auth", "config"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerauth/ecr.go#L136-L162", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerauth/ecr.go", "func_name": "IsTokenValid", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsTokenValid checks the token is still within it's expiration window. We early expire to allow\n// for timing in calls and add jitter to avoid refreshing all of the tokens at once.", "docstring_tokens": ["IsTokenValid", "checks", "the", "token", "is", "still", "within", "it", "s", "expiration", "window", ".", "We", "early", "expire", "to", "allow", "for", "timing", "in", "calls", "and", "add", "jitter", "to", "avoid", "refreshing", "all", "of", "the", "tokens", "at", "once", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerauth/ecr.go#L179-L188", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/v1/task_container_metadata_handler.go", "func_name": "createTaskResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// createTaskResponse creates JSON response and sets the http status code for the task queried.", "docstring_tokens": ["createTaskResponse", "creates", "JSON", "response", "and", "sets", "the", "http", "status", "code", "for", "the", "task", "queried", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/v1/task_container_metadata_handler.go#L35-L47", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/statechange.go", "func_name": "NewTaskStateChangeEvent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTaskStateChangeEvent creates a new task state change event", "docstring_tokens": ["NewTaskStateChangeEvent", "creates", "a", "new", "task", "state", "change", "event"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/statechange.go#L82-L106", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/statechange.go", "func_name": "NewContainerStateChangeEvent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewContainerStateChangeEvent creates a new container state change event", "docstring_tokens": ["NewContainerStateChangeEvent", "creates", "a", "new", "container", "state", "change", "event"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/statechange.go#L109-L142", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/statechange.go", "func_name": "SetTaskTimestamps", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetTaskTimestamps adds the timestamp information of task into the event\n// to be sent by SubmitTaskStateChange", "docstring_tokens": ["SetTaskTimestamps", "adds", "the", "timestamp", "information", "of", "task", "into", "the", "event", "to", "be", "sent", "by", "SubmitTaskStateChange"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/statechange.go#L164-L179", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/statechange.go", "func_name": "ShouldBeReported", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ShouldBeReported checks if the statechange should be reported to backend", "docstring_tokens": ["ShouldBeReported", "checks", "if", "the", "statechange", "should", "be", "reported", "to", "backend"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/statechange.go#L182-L197", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/eni/eni.go", "func_name": "GetIPV4Addresses", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetIPV4Addresses returns a list of ipv4 addresses allocated to the ENI", "docstring_tokens": ["GetIPV4Addresses", "returns", "a", "list", "of", "ipv4", "addresses", "allocated", "to", "the", "ENI"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/eni/eni.go#L50-L57", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/eni/eni.go", "func_name": "GetIPV6Addresses", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetIPV6Addresses returns a list of ipv6 addresses allocated to the ENI", "docstring_tokens": ["GetIPV6Addresses", "returns", "a", "list", "of", "ipv6", "addresses", "allocated", "to", "the", "ENI"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/eni/eni.go#L60-L67", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/eni/eni.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns a human readable version of the ENI object", "docstring_tokens": ["String", "returns", "a", "human", "readable", "version", "of", "the", "ENI", "object"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/eni/eni.go#L81-L94", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/eni/eni.go", "func_name": "ENIFromACS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ENIFromACS validates the information from acs message and create the ENI object", "docstring_tokens": ["ENIFromACS", "validates", "the", "information", "from", "acs", "message", "and", "create", "the", "ENI", "object"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/eni/eni.go#L111-L151", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/eni/eni.go", "func_name": "ValidateTaskENI", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidateTaskENI validates the eni informaiton sent from acs", "docstring_tokens": ["ValidateTaskENI", "validates", "the", "eni", "informaiton", "sent", "from", "acs"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/eni/eni.go#L154-L175", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/mobypkgwrapper/mocks/pluginswrapper_mocks.go", "func_name": "NewMockPlugins", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockPlugins creates a new mock instance", "docstring_tokens": ["NewMockPlugins", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/mobypkgwrapper/mocks/pluginswrapper_mocks.go#L38-L42", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/mobypkgwrapper/mocks/pluginswrapper_mocks.go", "func_name": "Scan", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Scan mocks base method", "docstring_tokens": ["Scan", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/mobypkgwrapper/mocks/pluginswrapper_mocks.go#L50-L55", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/mobypkgwrapper/mocks/pluginswrapper_mocks.go", "func_name": "Scan", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Scan indicates an expected call of Scan", "docstring_tokens": ["Scan", "indicates", "an", "expected", "call", "of", "Scan"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/mobypkgwrapper/mocks/pluginswrapper_mocks.go#L58-L60", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "TaskFromACS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TaskFromACS translates ecsacs.Task to apitask.Task by first marshaling the received\n// ecsacs.Task to json and unmarshaling it as apitask.Task", "docstring_tokens": ["TaskFromACS", "translates", "ecsacs", ".", "Task", "to", "apitask", ".", "Task", "by", "first", "marshaling", "the", "received", "ecsacs", ".", "Task", "to", "json", "and", "unmarshaling", "it", "as", "apitask", ".", "Task"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L214-L240", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "initializeDockerVolumes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// initializeDockerVolumes checks the volume resource in the task to determine if the agent\n// should create the volume before creating the container", "docstring_tokens": ["initializeDockerVolumes", "checks", "the", "volume", "resource", "in", "the", "task", "to", "determine", "if", "the", "agent", "should", "create", "the", "volume", "before", "creating", "the", "container"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L408-L434", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "addTaskScopedVolumes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// addTaskScopedVolumes adds the task scoped volume into task resources and updates container dependency", "docstring_tokens": ["addTaskScopedVolumes", "adds", "the", "task", "scoped", "volume", "into", "task", "resources", "and", "updates", "container", "dependency"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L437-L456", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "updateContainerVolumeDependency", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// updateContainerVolumeDependency adds the volume resource to container dependency", "docstring_tokens": ["updateContainerVolumeDependency", "adds", "the", "volume", "resource", "to", "container", "dependency"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L527-L538", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "initializeCredentialsEndpoint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// initializeCredentialsEndpoint sets the credentials endpoint for all containers in a task if needed.", "docstring_tokens": ["initializeCredentialsEndpoint", "sets", "the", "credentials", "endpoint", "for", "all", "containers", "in", "a", "task", "if", "needed", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L541-L568", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "initializeContainersV3MetadataEndpoint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// initializeContainersV3MetadataEndpoint generates an v3 endpoint id for each container, constructs the\n// v3 metadata endpoint, and injects it as an environment variable", "docstring_tokens": ["initializeContainersV3MetadataEndpoint", "generates", "an", "v3", "endpoint", "id", "for", "each", "container", "constructs", "the", "v3", "metadata", "endpoint", "and", "injects", "it", "as", "an", "environment", "variable"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L572-L581", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "requiresASMDockerAuthData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// requiresASMDockerAuthData returns true if atleast one container in the task\n// needs to retrieve private registry authentication data from ASM", "docstring_tokens": ["requiresASMDockerAuthData", "returns", "true", "if", "atleast", "one", "container", "in", "the", "task", "needs", "to", "retrieve", "private", "registry", "authentication", "data", "from", "ASM"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L585-L592", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "initializeASMAuthResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// initializeASMAuthResource builds the resource dependency map for the ASM auth resource", "docstring_tokens": ["initializeASMAuthResource", "builds", "the", "resource", "dependency", "map", "for", "the", "ASM", "auth", "resource"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L595-L607", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "requiresSSMSecret", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// requiresSSMSecret returns true if at least one container in the task\n// needs to retrieve secret from SSM parameter", "docstring_tokens": ["requiresSSMSecret", "returns", "true", "if", "at", "least", "one", "container", "in", "the", "task", "needs", "to", "retrieve", "secret", "from", "SSM", "parameter"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L621-L628", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "initializeSSMSecretResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// initializeSSMSecretResource builds the resource dependency map for the SSM ssmsecret resource", "docstring_tokens": ["initializeSSMSecretResource", "builds", "the", "resource", "dependency", "map", "for", "the", "SSM", "ssmsecret", "resource"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L631-L645", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "getAllSSMSecretRequirements", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getAllSSMSecretRequirements stores all secrets in a map whose key is region and value is all\n// secrets in that region", "docstring_tokens": ["getAllSSMSecretRequirements", "stores", "all", "secrets", "in", "a", "map", "whose", "key", "is", "region", "and", "value", "is", "all", "secrets", "in", "that", "region"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L649-L664", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "requiresASMSecret", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// requiresASMSecret returns true if at least one container in the task\n// needs to retrieve secret from AWS Secrets Manager", "docstring_tokens": ["requiresASMSecret", "returns", "true", "if", "at", "least", "one", "container", "in", "the", "task", "needs", "to", "retrieve", "secret", "from", "AWS", "Secrets", "Manager"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L668-L675", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "initializeASMSecretResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// initializeASMSecretResource builds the resource dependency map for the asmsecret resource", "docstring_tokens": ["initializeASMSecretResource", "builds", "the", "resource", "dependency", "map", "for", "the", "asmsecret", "resource"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L678-L692", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "getAllASMSecretRequirements", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getAllASMSecretRequirements stores secrets in a task in a map", "docstring_tokens": ["getAllASMSecretRequirements", "stores", "secrets", "in", "a", "task", "in", "a", "map"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L695-L709", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "BuildCNIConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BuildCNIConfig constructs the cni configuration from eni", "docstring_tokens": ["BuildCNIConfig", "constructs", "the", "cni", "configuration", "from", "eni"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L712-L724", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "convertENIToCNIConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// convertENIToCNIConfig converts input eni config into cni config", "docstring_tokens": ["convertENIToCNIConfig", "converts", "input", "eni", "config", "into", "cni", "config"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L727-L742", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "convertAppMeshToCNIConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// convertAppMeshToCNIConfig converts input app mesh config into cni config", "docstring_tokens": ["convertAppMeshToCNIConfig", "converts", "input", "app", "mesh", "config", "into", "cni", "config"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L745-L755", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "HostVolumeByName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HostVolumeByName returns the task Volume for the given a volume name in that\n// task. The second return value indicates the presence of that volume", "docstring_tokens": ["HostVolumeByName", "returns", "the", "task", "Volume", "for", "the", "given", "a", "volume", "name", "in", "that", "task", ".", "The", "second", "return", "value", "indicates", "the", "presence", "of", "that", "volume"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L860-L867", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "UpdateMountPoints", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateMountPoints updates the mount points of volumes that were created\n// without specifying a host path. This is used as part of the empty host\n// volume feature.", "docstring_tokens": ["UpdateMountPoints", "updates", "the", "mount", "points", "of", "volumes", "that", "were", "created", "without", "specifying", "a", "host", "path", ".", "This", "is", "used", "as", "part", "of", "the", "empty", "host", "volume", "feature", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L872-L887", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "DockerConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DockerConfig converts the given container in this task to the format of\n// the Docker SDK 'Config' struct", "docstring_tokens": ["DockerConfig", "converts", "the", "given", "container", "in", "this", "task", "to", "the", "format", "of", "the", "Docker", "SDK", "Config", "struct"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L961-L963", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "DockerHostConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DockerHostConfig construct the configuration recognized by docker", "docstring_tokens": ["DockerHostConfig", "construct", "the", "configuration", "recognized", "by", "docker"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1018-L1020", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "ApplyExecutionRoleLogsAuth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ApplyExecutionRoleLogsAuth will check whether the task has execution role\n// credentials, and add the genereated credentials endpoint to the associated HostConfig", "docstring_tokens": ["ApplyExecutionRoleLogsAuth", "will", "check", "whether", "the", "task", "has", "execution", "role", "credentials", "and", "add", "the", "genereated", "credentials", "endpoint", "to", "the", "associated", "HostConfig"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1024-L1042", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "shouldOverrideNetworkMode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// shouldOverrideNetworkMode returns true if the network mode of the container needs\n// to be overridden. It also returns the override string in this case. It returns\n// false otherwise", "docstring_tokens": ["shouldOverrideNetworkMode", "returns", "true", "if", "the", "network", "mode", "of", "the", "container", "needs", "to", "be", "overridden", ".", "It", "also", "returns", "the", "override", "string", "in", "this", "case", ".", "It", "returns", "false", "otherwise"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1144-L1183", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "applyENIHostname", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// applyENIHostname adds the hostname provided by the ENI message to the\n// container's docker config. At the time of implmentation, we are only using it\n// to configure the pause container for awsvpc tasks", "docstring_tokens": ["applyENIHostname", "adds", "the", "hostname", "provided", "by", "the", "ENI", "message", "to", "the", "container", "s", "docker", "config", ".", "At", "the", "time", "of", "implmentation", "we", "are", "only", "using", "it", "to", "configure", "the", "pause", "container", "for", "awsvpc", "tasks"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1206-L1219", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "shouldOverridePIDMode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// shouldOverridePIDMode returns true if the PIDMode of the container needs\n// to be overridden. It also returns the override string in this case. It returns\n// false otherwise", "docstring_tokens": ["shouldOverridePIDMode", "returns", "true", "if", "the", "PIDMode", "of", "the", "container", "needs", "to", "be", "overridden", ".", "It", "also", "returns", "the", "override", "string", "in", "this", "case", ".", "It", "returns", "false", "otherwise"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1246-L1278", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "shouldOverrideIPCMode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// shouldOverrideIPCMode returns true if the IPCMode of the container needs\n// to be overridden. It also returns the override string in this case. It returns\n// false otherwise", "docstring_tokens": ["shouldOverrideIPCMode", "returns", "true", "if", "the", "IPCMode", "of", "the", "container", "needs", "to", "be", "overridden", ".", "It", "also", "returns", "the", "override", "string", "in", "this", "case", ".", "It", "returns", "false", "otherwise"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1283-L1330", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "UpdateStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateStatus updates a task's known and desired statuses to be compatible\n// with all of its containers\n// It will return a bool indicating if there was a change", "docstring_tokens": ["UpdateStatus", "updates", "a", "task", "s", "known", "and", "desired", "statuses", "to", "be", "compatible", "with", "all", "of", "its", "containers", "It", "will", "return", "a", "bool", "indicating", "if", "there", "was", "a", "change"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1460-L1465", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "UpdateDesiredStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateDesiredStatus sets the known status of the task", "docstring_tokens": ["UpdateDesiredStatus", "sets", "the", "known", "status", "of", "the", "task"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1468-L1474", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "SetKnownStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetKnownStatus sets the known status of the task", "docstring_tokens": ["SetKnownStatus", "sets", "the", "known", "status", "of", "the", "task"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1524-L1527", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "GetKnownStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetKnownStatus gets the KnownStatus of the task", "docstring_tokens": ["GetKnownStatus", "gets", "the", "KnownStatus", "of", "the", "task"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1544-L1549", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "GetKnownStatusTime", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetKnownStatusTime gets the KnownStatusTime of the task", "docstring_tokens": ["GetKnownStatusTime", "gets", "the", "KnownStatusTime", "of", "the", "task"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1552-L1557", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "SetCredentialsID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetCredentialsID sets the credentials ID for the task", "docstring_tokens": ["SetCredentialsID", "sets", "the", "credentials", "ID", "for", "the", "task"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1560-L1565", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "GetCredentialsID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCredentialsID gets the credentials ID for the task", "docstring_tokens": ["GetCredentialsID", "gets", "the", "credentials", "ID", "for", "the", "task"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1568-L1573", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "SetExecutionRoleCredentialsID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetExecutionRoleCredentialsID sets the ID for the task execution role credentials", "docstring_tokens": ["SetExecutionRoleCredentialsID", "sets", "the", "ID", "for", "the", "task", "execution", "role", "credentials"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1576-L1581", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "GetExecutionCredentialsID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetExecutionCredentialsID gets the credentials ID for the task", "docstring_tokens": ["GetExecutionCredentialsID", "gets", "the", "credentials", "ID", "for", "the", "task"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1584-L1589", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "GetDesiredStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDesiredStatus gets the desired status of the task", "docstring_tokens": ["GetDesiredStatus", "gets", "the", "desired", "status", "of", "the", "task"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1592-L1597", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "SetDesiredStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetDesiredStatus sets the desired status of the task", "docstring_tokens": ["SetDesiredStatus", "sets", "the", "desired", "status", "of", "the", "task"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1600-L1605", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "GetSentStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSentStatus safely returns the SentStatus of the task", "docstring_tokens": ["GetSentStatus", "safely", "returns", "the", "SentStatus", "of", "the", "task"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1608-L1613", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "SetSentStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetSentStatus safely sets the SentStatus of the task", "docstring_tokens": ["SetSentStatus", "safely", "sets", "the", "SentStatus", "of", "the", "task"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1616-L1621", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "SetTaskENI", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetTaskENI sets the eni information of the task", "docstring_tokens": ["SetTaskENI", "sets", "the", "eni", "information", "of", "the", "task"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1624-L1629", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "GetTaskENI", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTaskENI returns the eni of task, for now task can only have one enis", "docstring_tokens": ["GetTaskENI", "returns", "the", "eni", "of", "task", "for", "now", "task", "can", "only", "have", "one", "enis"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1632-L1637", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "SetAppMesh", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetAppMesh sets the app mesh config of the task", "docstring_tokens": ["SetAppMesh", "sets", "the", "app", "mesh", "config", "of", "the", "task"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1640-L1645", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "GetAppMesh", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAppMesh returns the app mesh config of the task", "docstring_tokens": ["GetAppMesh", "returns", "the", "app", "mesh", "config", "of", "the", "task"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1648-L1653", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "GetStopSequenceNumber", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetStopSequenceNumber returns the stop sequence number of a task", "docstring_tokens": ["GetStopSequenceNumber", "returns", "the", "stop", "sequence", "number", "of", "a", "task"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1656-L1661", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "SetStopSequenceNumber", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetStopSequenceNumber sets the stop seqence number of a task", "docstring_tokens": ["SetStopSequenceNumber", "sets", "the", "stop", "seqence", "number", "of", "a", "task"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1664-L1669", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "SetPullStartedAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetPullStartedAt sets the task pullstartedat timestamp and returns whether\n// this field was updated or not", "docstring_tokens": ["SetPullStartedAt", "sets", "the", "task", "pullstartedat", "timestamp", "and", "returns", "whether", "this", "field", "was", "updated", "or", "not"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1673-L1683", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "GetPullStartedAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPullStartedAt returns the PullStartedAt timestamp", "docstring_tokens": ["GetPullStartedAt", "returns", "the", "PullStartedAt", "timestamp"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1686-L1691", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "SetPullStoppedAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetPullStoppedAt sets the task pullstoppedat timestamp", "docstring_tokens": ["SetPullStoppedAt", "sets", "the", "task", "pullstoppedat", "timestamp"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1694-L1699", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "GetPullStoppedAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPullStoppedAt returns the PullStoppedAt timestamp", "docstring_tokens": ["GetPullStoppedAt", "returns", "the", "PullStoppedAt", "timestamp"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1702-L1707", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "SetExecutionStoppedAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetExecutionStoppedAt sets the ExecutionStoppedAt timestamp of the task", "docstring_tokens": ["SetExecutionStoppedAt", "sets", "the", "ExecutionStoppedAt", "timestamp", "of", "the", "task"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1710-L1719", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "GetExecutionStoppedAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetExecutionStoppedAt returns the task executionStoppedAt timestamp", "docstring_tokens": ["GetExecutionStoppedAt", "returns", "the", "task", "executionStoppedAt", "timestamp"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1722-L1727", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "stringUnsafe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// stringUnsafe returns a human readable string representation of this object", "docstring_tokens": ["stringUnsafe", "returns", "a", "human", "readable", "string", "representation", "of", "this", "object"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1737-L1750", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "RecordExecutionStoppedAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RecordExecutionStoppedAt checks if this is an essential container stopped\n// and set the task executionStoppedAt timestamps", "docstring_tokens": ["RecordExecutionStoppedAt", "checks", "if", "this", "is", "an", "essential", "container", "stopped", "and", "set", "the", "task", "executionStoppedAt", "timestamps"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1780-L1796", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "GetResources", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetResources returns the list of task resources from ResourcesMap", "docstring_tokens": ["GetResources", "returns", "the", "list", "of", "task", "resources", "from", "ResourcesMap"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1799-L1803", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "getResourcesUnsafe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getResourcesUnsafe returns the list of task resources from ResourcesMap", "docstring_tokens": ["getResourcesUnsafe", "returns", "the", "list", "of", "task", "resources", "from", "ResourcesMap"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1806-L1812", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "AddResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddResource adds a resource to ResourcesMap", "docstring_tokens": ["AddResource", "adds", "a", "resource", "to", "ResourcesMap"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1815-L1819", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "SetTerminalReason", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetTerminalReason sets the terminalReason string and this can only be set\n// once per the task's lifecycle. This field does not accept updates.", "docstring_tokens": ["SetTerminalReason", "sets", "the", "terminalReason", "string", "and", "this", "can", "only", "be", "set", "once", "per", "the", "task", "s", "lifecycle", ".", "This", "field", "does", "not", "accept", "updates", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1823-L1833", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "GetTerminalReason", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTerminalReason retrieves the terminalReason string", "docstring_tokens": ["GetTerminalReason", "retrieves", "the", "terminalReason", "string"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1836-L1841", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "PopulateASMAuthData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PopulateASMAuthData sets docker auth credentials for a container", "docstring_tokens": ["PopulateASMAuthData", "sets", "docker", "auth", "credentials", "for", "a", "container"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1844-L1860", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "getSSMSecretsResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getSSMSecretsResource retrieves ssmsecret resource from resource map", "docstring_tokens": ["getSSMSecretsResource", "retrieves", "ssmsecret", "resource", "from", "resource", "map"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1871-L1877", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "PopulateSecrets", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PopulateSecrets appends secrets to container's env var map and hostconfig section", "docstring_tokens": ["PopulateSecrets", "appends", "secrets", "to", "container", "s", "env", "var", "map", "and", "hostconfig", "section"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1880-L1940", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "getASMSecretsResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getASMSecretsResource retrieves asmsecret resource from resource map", "docstring_tokens": ["getASMSecretsResource", "retrieves", "asmsecret", "resource", "from", "resource", "map"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1943-L1949", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "getPIDMode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Retrieves a Task's PIDMode", "docstring_tokens": ["Retrieves", "a", "Task", "s", "PIDMode"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1966-L1971", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "getIPCMode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Retrieves a Task's IPCMode", "docstring_tokens": ["Retrieves", "a", "Task", "s", "IPCMode"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1974-L1979", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "AssociationsByTypeAndContainer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AssociationByTypeAndContainer gets a list of names of all the associations associated with a container and of a\n// certain type", "docstring_tokens": ["AssociationByTypeAndContainer", "gets", "a", "list", "of", "names", "of", "all", "the", "associations", "associated", "with", "a", "container", "and", "of", "a", "certain", "type"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L1983-L1999", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task.go", "func_name": "AssociationByTypeAndName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AssociationByTypeAndName gets an association of a certain type and name", "docstring_tokens": ["AssociationByTypeAndName", "gets", "an", "association", "of", "a", "certain", "type", "and", "name"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task.go#L2002-L2013", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/handler/attach_eni_handler.go", "func_name": "newAttachENIHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newAttachENIHandler returns an instance of the attachENIHandler struct", "docstring_tokens": ["newAttachENIHandler", "returns", "an", "instance", "of", "the", "attachENIHandler", "struct"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/handler/attach_eni_handler.go#L45-L64", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/handler/attach_eni_handler.go", "func_name": "handlerFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handlerFunc returns a function to enqueue requests onto attachENIHandler buffer", "docstring_tokens": ["handlerFunc", "returns", "a", "function", "to", "enqueue", "requests", "onto", "attachENIHandler", "buffer"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/handler/attach_eni_handler.go#L67-L71", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/handler/attach_eni_handler.go", "func_name": "handleMessages", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handleMessages handles each message one at a time", "docstring_tokens": ["handleMessages", "handles", "each", "message", "one", "at", "a", "time"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/handler/attach_eni_handler.go#L84-L95", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/handler/attach_eni_handler.go", "func_name": "handleSingleMessage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handleSingleMessage acks the message received", "docstring_tokens": ["handleSingleMessage", "acks", "the", "message", "received"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/handler/attach_eni_handler.go#L98-L131", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/handler/attach_eni_handler.go", "func_name": "addENIAttachmentToState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// addENIAttachmentToState adds the eni info to the state", "docstring_tokens": ["addENIAttachmentToState", "adds", "the", "eni", "info", "to", "the", "state"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/handler/attach_eni_handler.go#L134-L154", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/handler/attach_eni_handler.go", "func_name": "validateAttachTaskNetworkInterfacesMessage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// validateAttachTaskNetworkInterfacesMessage performs validation checks on the\n// AttachTaskNetworkInterfacesMessage", "docstring_tokens": ["validateAttachTaskNetworkInterfacesMessage", "performs", "validation", "checks", "on", "the", "AttachTaskNetworkInterfacesMessage"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/handler/attach_eni_handler.go#L176-L218", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/statemanager/mocks/statemanager_mocks.go", "func_name": "ForceSave", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ForceSave mocks base method", "docstring_tokens": ["ForceSave", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/statemanager/mocks/statemanager_mocks.go#L50-L54", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/statemanager/mocks/statemanager_mocks.go", "func_name": "ForceSave", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ForceSave indicates an expected call of ForceSave", "docstring_tokens": ["ForceSave", "indicates", "an", "expected", "call", "of", "ForceSave"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/statemanager/mocks/statemanager_mocks.go#L57-L59", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/wsclient/mock/client.go", "func_name": "NewMockClientServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockClientServer creates a new mock instance", "docstring_tokens": ["NewMockClientServer", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/wsclient/mock/client.go#L41-L45", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/wsclient/mock/client.go", "func_name": "AddRequestHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddRequestHandler mocks base method", "docstring_tokens": ["AddRequestHandler", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/wsclient/mock/client.go#L53-L55", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/wsclient/mock/client.go", "func_name": "AddRequestHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddRequestHandler indicates an expected call of AddRequestHandler", "docstring_tokens": ["AddRequestHandler", "indicates", "an", "expected", "call", "of", "AddRequestHandler"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/wsclient/mock/client.go#L58-L60", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/wsclient/mock/client.go", "func_name": "Connect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Connect indicates an expected call of Connect", "docstring_tokens": ["Connect", "indicates", "an", "expected", "call", "of", "Connect"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/wsclient/mock/client.go#L82-L84", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/wsclient/mock/client.go", "func_name": "Disconnect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Disconnect mocks base method", "docstring_tokens": ["Disconnect", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/wsclient/mock/client.go#L87-L95", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/wsclient/mock/client.go", "func_name": "IsConnected", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsConnected mocks base method", "docstring_tokens": ["IsConnected", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/wsclient/mock/client.go#L103-L107", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/wsclient/mock/client.go", "func_name": "MakeRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MakeRequest mocks base method", "docstring_tokens": ["MakeRequest", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/wsclient/mock/client.go#L115-L119", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/wsclient/mock/client.go", "func_name": "SetAnyRequestHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetAnyRequestHandler mocks base method", "docstring_tokens": ["SetAnyRequestHandler", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/wsclient/mock/client.go#L139-L141", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/wsclient/mock/client.go", "func_name": "SetConnection", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetConnection mocks base method", "docstring_tokens": ["SetConnection", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/wsclient/mock/client.go#L149-L151", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/wsclient/mock/client.go", "func_name": "SetReadDeadline", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetReadDeadline mocks base method", "docstring_tokens": ["SetReadDeadline", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/wsclient/mock/client.go#L159-L163", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/status/containerstatus.go", "func_name": "ShouldReportToBackend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ShouldReportToBackend returns true if the container status is recognized as a\n// valid state by ECS. Note that not all container statuses are recognized by ECS\n// or map to ECS states", "docstring_tokens": ["ShouldReportToBackend", "returns", "true", "if", "the", "container", "status", "is", "recognized", "as", "a", "valid", "state", "by", "ECS", ".", "Note", "that", "not", "all", "container", "statuses", "are", "recognized", "by", "ECS", "or", "map", "to", "ECS", "states"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/status/containerstatus.go#L97-L99", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/status/containerstatus.go", "func_name": "BackendStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BackendStatus maps the internal container status in the agent to that in the\n// backend", "docstring_tokens": ["BackendStatus", "maps", "the", "internal", "container", "status", "in", "the", "agent", "to", "that", "in", "the", "backend"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/status/containerstatus.go#L103-L113", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/status/containerstatus.go", "func_name": "UnmarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalJSON overrides the logic for parsing the JSON-encoded ContainerStatus data", "docstring_tokens": ["UnmarshalJSON", "overrides", "the", "logic", "for", "parsing", "the", "JSON", "-", "encoded", "ContainerStatus", "data"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/status/containerstatus.go#L121-L148", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/status/containerstatus.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON overrides the logic for JSON-encoding the ContainerStatus type", "docstring_tokens": ["MarshalJSON", "overrides", "the", "logic", "for", "JSON", "-", "encoding", "the", "ContainerStatus", "type"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/status/containerstatus.go#L151-L156", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/status/containerstatus.go", "func_name": "UnmarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalJSON overrides the logic for parsing the JSON-encoded container health data", "docstring_tokens": ["UnmarshalJSON", "overrides", "the", "logic", "for", "parsing", "the", "JSON", "-", "encoded", "container", "health", "data"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/status/containerstatus.go#L159-L181", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/status/containerstatus.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON overrides the logic for JSON-encoding the ContainerHealthStatus type", "docstring_tokens": ["MarshalJSON", "overrides", "the", "logic", "for", "JSON", "-", "encoding", "the", "ContainerHealthStatus", "type"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/status/containerstatus.go#L184-L189", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/metrics/metrics_engine.go", "func_name": "publishMetrics", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Function that exposes all Agent Metrics on a given port.", "docstring_tokens": ["Function", "that", "exposes", "all", "Agent", "Metrics", "on", "a", "given", "port", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/metrics/metrics_engine.go#L146-L157", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go", "func_name": "NewMockDockerClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockDockerClient creates a new mock instance", "docstring_tokens": ["NewMockDockerClient", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go#L48-L52", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go", "func_name": "APIVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// APIVersion mocks base method", "docstring_tokens": ["APIVersion", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go#L60-L65", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go", "func_name": "ContainerEvents", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerEvents mocks base method", "docstring_tokens": ["ContainerEvents", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go#L73-L78", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go", "func_name": "ContainerEvents", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerEvents indicates an expected call of ContainerEvents", "docstring_tokens": ["ContainerEvents", "indicates", "an", "expected", "call", "of", "ContainerEvents"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go#L81-L83", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go", "func_name": "CreateContainer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateContainer mocks base method", "docstring_tokens": ["CreateContainer", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go#L86-L90", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go", "func_name": "CreateVolume", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateVolume mocks base method", "docstring_tokens": ["CreateVolume", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go#L98-L102", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go", "func_name": "DescribeContainer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DescribeContainer mocks base method", "docstring_tokens": ["DescribeContainer", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go#L110-L115", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go", "func_name": "InspectContainer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InspectContainer mocks base method", "docstring_tokens": ["InspectContainer", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go#L123-L128", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go", "func_name": "InspectImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InspectImage mocks base method", "docstring_tokens": ["InspectImage", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go#L136-L141", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go", "func_name": "KnownVersions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// KnownVersions mocks base method", "docstring_tokens": ["KnownVersions", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go#L161-L165", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go", "func_name": "KnownVersions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// KnownVersions indicates an expected call of KnownVersions", "docstring_tokens": ["KnownVersions", "indicates", "an", "expected", "call", "of", "KnownVersions"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go#L168-L170", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go", "func_name": "ListContainers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListContainers mocks base method", "docstring_tokens": ["ListContainers", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go#L173-L177", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go", "func_name": "ListImages", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListImages mocks base method", "docstring_tokens": ["ListImages", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go#L185-L189", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go", "func_name": "ListPlugins", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListPlugins mocks base method", "docstring_tokens": ["ListPlugins", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go#L197-L201", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go", "func_name": "ListPluginsWithFilters", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListPluginsWithFilters mocks base method", "docstring_tokens": ["ListPluginsWithFilters", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go#L209-L214", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go", "func_name": "PullImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PullImage mocks base method", "docstring_tokens": ["PullImage", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go#L234-L238", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go", "func_name": "RemoveImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveImage mocks base method", "docstring_tokens": ["RemoveImage", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go#L258-L262", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go", "func_name": "StopContainer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StopContainer mocks base method", "docstring_tokens": ["StopContainer", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go#L307-L311", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go", "func_name": "WithVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithVersion mocks base method", "docstring_tokens": ["WithVersion", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerapi/mocks/dockerapi_mocks.go#L344-L348", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/async/mocks/async_mocks.go", "func_name": "NewMockCache", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockCache creates a new mock instance", "docstring_tokens": ["NewMockCache", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/async/mocks/async_mocks.go#L39-L43", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/async/mocks/async_mocks.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete mocks base method", "docstring_tokens": ["Delete", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/async/mocks/async_mocks.go#L51-L53", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/async/mocks/async_mocks.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get mocks base method", "docstring_tokens": ["Get", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/async/mocks/async_mocks.go#L61-L66", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/async/mocks/async_mocks.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set mocks base method", "docstring_tokens": ["Set", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/async/mocks/async_mocks.go#L74-L76", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/async/mocks/async_mocks.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set indicates an expected call of Set", "docstring_tokens": ["Set", "indicates", "an", "expected", "call", "of", "Set"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/async/mocks/async_mocks.go#L79-L81", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/task_manager.go", "func_name": "newManagedTask", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newManagedTask is a method on DockerTaskEngine to create a new managedTask.\n// This method must only be called when the engine.processTasks write lock is\n// already held.", "docstring_tokens": ["newManagedTask", "is", "a", "method", "on", "DockerTaskEngine", "to", "create", "a", "new", "managedTask", ".", "This", "method", "must", "only", "be", "called", "when", "the", "engine", ".", "processTasks", "write", "lock", "is", "already", "held", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/task_manager.go#L165-L186", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/task_manager.go", "func_name": "overseeTask", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// overseeTask is the main goroutine of the managedTask. It runs an infinite\n// loop of receiving messages and attempting to take action based on those\n// messages.", "docstring_tokens": ["overseeTask", "is", "the", "main", "goroutine", "of", "the", "managedTask", ".", "It", "runs", "an", "infinite", "loop", "of", "receiving", "messages", "and", "attempting", "to", "take", "action", "based", "on", "those", "messages", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/task_manager.go#L191-L251", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/task_manager.go", "func_name": "emitCurrentStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// emitCurrentStatus emits a container event for every container and a task\n// event for the task", "docstring_tokens": ["emitCurrentStatus", "emits", "a", "container", "event", "for", "every", "container", "and", "a", "task", "event", "for", "the", "task"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/task_manager.go#L255-L260", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/task_manager.go", "func_name": "waitForHostResources", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// waitForHostResources waits for host resources to become available to start\n// the task. This involves waiting for previous stops to complete so the\n// resources become free.", "docstring_tokens": ["waitForHostResources", "waits", "for", "host", "resources", "to", "become", "available", "to", "start", "the", "task", ".", "This", "involves", "waiting", "for", "previous", "stops", "to", "complete", "so", "the", "resources", "become", "free", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/task_manager.go#L265-L296", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/task_manager.go", "func_name": "waitSteady", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// waitSteady waits for a task to leave steady-state by waiting for a new\n// event, or a timeout.", "docstring_tokens": ["waitSteady", "waits", "for", "a", "task", "to", "leave", "steady", "-", "state", "by", "waiting", "for", "a", "new", "event", "or", "a", "timeout", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/task_manager.go#L300-L311", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/task_manager.go", "func_name": "steadyState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// steadyState returns if the task is in a steady state. Steady state is when task's desired\n// and known status are both RUNNING", "docstring_tokens": ["steadyState", "returns", "if", "the", "task", "is", "in", "a", "steady", "state", ".", "Steady", "state", "is", "when", "task", "s", "desired", "and", "known", "status", "are", "both", "RUNNING"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/task_manager.go#L315-L324", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/task_manager.go", "func_name": "cleanupCredentials", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// cleanupCredentials removes credentials for a stopped task", "docstring_tokens": ["cleanupCredentials", "removes", "credentials", "for", "a", "stopped", "task"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/task_manager.go#L327-L332", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/task_manager.go", "func_name": "waitEvent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// waitEvent waits for any event to occur. If an event occurs, the appropriate\n// handler is called. Generally the stopWaiting arg is the context's Done\n// channel. When the Done channel is signalled by the context, waitEvent will\n// return true.", "docstring_tokens": ["waitEvent", "waits", "for", "any", "event", "to", "occur", ".", "If", "an", "event", "occurs", "the", "appropriate", "handler", "is", "called", ".", "Generally", "the", "stopWaiting", "arg", "is", "the", "context", "s", "Done", "channel", ".", "When", "the", "Done", "channel", "is", "signalled", "by", "the", "context", "waitEvent", "will", "return", "true", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/task_manager.go#L338-L360", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/task_manager.go", "func_name": "handleResourceStateChange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handleResourceStateChange attempts to update resource's known status depending on\n// the current status and errors during transition", "docstring_tokens": ["handleResourceStateChange", "attempts", "to", "update", "resource", "s", "known", "status", "depending", "on", "the", "current", "status", "and", "errors", "during", "transition"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/task_manager.go#L456-L489", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/task_manager.go", "func_name": "emitContainerEvent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// emitContainerEvent passes a given event up through the containerEvents channel if necessary.\n// It will omit events the backend would not process and will perform best-effort deduplication of events.", "docstring_tokens": ["emitContainerEvent", "passes", "a", "given", "event", "up", "through", "the", "containerEvents", "channel", "if", "necessary", ".", "It", "will", "omit", "events", "the", "backend", "would", "not", "process", "and", "will", "perform", "best", "-", "effort", "deduplication", "of", "events", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/task_manager.go#L513-L526", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/task_manager.go", "func_name": "releaseIPInIPAM", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// releaseIPInIPAM releases the ip used by the task for awsvpc", "docstring_tokens": ["releaseIPInIPAM", "releases", "the", "ip", "used", "by", "the", "task", "for", "awsvpc"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/task_manager.go#L565-L583", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/task_manager.go", "func_name": "handleStoppedToRunningContainerTransition", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handleStoppedToRunningContainerTransition detects a \"backwards\" container\n// transition where a known-stopped container is found to be running again and\n// handles it.", "docstring_tokens": ["handleStoppedToRunningContainerTransition", "detects", "a", "backwards", "container", "transition", "where", "a", "known", "-", "stopped", "container", "is", "found", "to", "be", "running", "again", "and", "handles", "it", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/task_manager.go#L588-L613", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/task_manager.go", "func_name": "handleEventError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handleEventError handles a container change event error and decides whether\n// we should proceed to transition the container", "docstring_tokens": ["handleEventError", "handles", "a", "container", "change", "event", "error", "and", "decides", "whether", "we", "should", "proceed", "to", "transition", "the", "container"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/task_manager.go#L617-L680", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/task_manager.go", "func_name": "handleContainerStoppedTransitionError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handleContainerStoppedTransitionError handles an error when transitioning a container to\n// STOPPED. It returns a boolean indicating whether the tak can continue with updating its\n// state", "docstring_tokens": ["handleContainerStoppedTransitionError", "handles", "an", "error", "when", "transitioning", "a", "container", "to", "STOPPED", ".", "It", "returns", "a", "boolean", "indicating", "whether", "the", "tak", "can", "continue", "with", "updating", "its", "state"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/task_manager.go#L685-L722", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/task_manager.go", "func_name": "progressTask", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// progressTask tries to step forwards all containers and resources that are able to be\n// transitioned in the task's current state.\n// It will continue listening to events from all channels while it does so, but\n// none of those changes will be acted upon until this set of requests to\n// docker completes.\n// Container changes may also prompt the task status to change as well.", "docstring_tokens": ["progressTask", "tries", "to", "step", "forwards", "all", "containers", "and", "resources", "that", "are", "able", "to", "be", "transitioned", "in", "the", "task", "s", "current", "state", ".", "It", "will", "continue", "listening", "to", "events", "from", "all", "channels", "while", "it", "does", "so", "but", "none", "of", "those", "changes", "will", "be", "acted", "upon", "until", "this", "set", "of", "requests", "to", "docker", "completes", ".", "Container", "changes", "may", "also", "prompt", "the", "task", "status", "to", "change", "as", "well", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/task_manager.go#L730-L810", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/task_manager.go", "func_name": "isWaitingForACSExecutionCredentials", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isWaitingForACSExecutionCredentials checks if the container that can't be transitioned\n// was caused by waiting for credentials and start waiting", "docstring_tokens": ["isWaitingForACSExecutionCredentials", "checks", "if", "the", "container", "that", "can", "t", "be", "transitioned", "was", "caused", "by", "waiting", "for", "credentials", "and", "start", "waiting"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/task_manager.go#L814-L830", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/task_manager.go", "func_name": "startContainerTransitions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// startContainerTransitions steps through each container in the task and calls\n// the passed transition function when a transition should occur.", "docstring_tokens": ["startContainerTransitions", "steps", "through", "each", "container", "in", "the", "task", "and", "calls", "the", "passed", "transition", "function", "when", "a", "transition", "should", "occur", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/task_manager.go#L834-L880", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/task_manager.go", "func_name": "startResourceTransitions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// startResourceTransitions steps through each resource in the task and calls\n// the passed transition function when a transition should occur", "docstring_tokens": ["startResourceTransitions", "steps", "through", "each", "resource", "in", "the", "task", "and", "calls", "the", "passed", "transition", "function", "when", "a", "transition", "should", "occur"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/task_manager.go#L884-L917", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/task_manager.go", "func_name": "transitionResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// transitionResource calls applyResourceState, and then notifies the managed\n// task of the change. transitionResource is called by progressTask", "docstring_tokens": ["transitionResource", "calls", "applyResourceState", "and", "then", "notifies", "the", "managed", "task", "of", "the", "change", ".", "transitionResource", "is", "called", "by", "progressTask"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/task_manager.go#L921-L932", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/task_manager.go", "func_name": "applyResourceState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// applyResourceState moves the resource to the given state by calling the\n// function defined in the transitionFunctionMap for the state", "docstring_tokens": ["applyResourceState", "moves", "the", "resource", "to", "the", "given", "state", "by", "calling", "the", "function", "defined", "in", "the", "transitionFunctionMap", "for", "the", "state"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/task_manager.go#L936-L949", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/task_manager.go", "func_name": "waitForStopReported", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// waitForStopReported will wait for the task to be reported stopped and return true, or will time-out and return false.\n// Messages on the mtask.dockerMessages and mtask.acsMessages channels will be handled while this function is waiting.", "docstring_tokens": ["waitForStopReported", "will", "wait", "for", "the", "task", "to", "be", "reported", "stopped", "and", "return", "true", "or", "will", "time", "-", "out", "and", "return", "false", ".", "Messages", "on", "the", "mtask", ".", "dockerMessages", "and", "mtask", ".", "acsMessages", "channels", "will", "be", "handled", "while", "this", "function", "is", "waiting", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/task_manager.go#L1157-L1179", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/sdkclientfactory/sdkclientfactory.go", "func_name": "NewFactory", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewFactory initializes a client factory using a specified endpoint.", "docstring_tokens": ["NewFactory", "initializes", "a", "client", "factory", "using", "a", "specified", "endpoint", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/sdkclientfactory/sdkclientfactory.go#L78-L83", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/sdkclientfactory/sdkclientfactory.go", "func_name": "FindClientAPIVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FindClientAPIVersion returns the version of the client from the map", "docstring_tokens": ["FindClientAPIVersion", "returns", "the", "version", "of", "the", "client", "from", "the", "map"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/sdkclientfactory/sdkclientfactory.go#L114-L116", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/sdkclientfactory/sdkclientfactory.go", "func_name": "getClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getClient returns a client specified by the docker version. It's wrapped\n// by GetClient so that it can do platform-specific magic.", "docstring_tokens": ["getClient", "returns", "a", "client", "specified", "by", "the", "docker", "version", ".", "It", "s", "wrapped", "by", "GetClient", "so", "that", "it", "can", "do", "platform", "-", "specific", "magic", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/sdkclientfactory/sdkclientfactory.go#L120-L126", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/sdkclientfactory/sdkclientfactory.go", "func_name": "findDockerVersions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// findDockerVersions loops over all known API versions and finds which ones\n// are supported by the docker daemon on the host", "docstring_tokens": ["findDockerVersions", "loops", "over", "all", "known", "API", "versions", "and", "finds", "which", "ones", "are", "supported", "by", "the", "docker", "daemon", "on", "the", "host"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/sdkclientfactory/sdkclientfactory.go#L130-L159", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/app/agent_windows.go", "func_name": "runAgent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// runAgent runs the ECS agent inside a goroutine and waits to be told to exit.", "docstring_tokens": ["runAgent", "runs", "the", "ECS", "agent", "inside", "a", "goroutine", "and", "waits", "to", "be", "told", "to", "exit", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/app/agent_windows.go#L152-L196", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/app/agent_windows.go", "func_name": "sleepCtx", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// sleepCtx provides a cancelable sleep", "docstring_tokens": ["sleepCtx", "provides", "a", "cancelable", "sleep"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/app/agent_windows.go#L199-L202", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/v3/task_metadata_handler.go", "func_name": "TaskMetadataHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TaskMetadataHandler returns the handler method for handling task metadata requests.", "docstring_tokens": ["TaskMetadataHandler", "returns", "the", "handler", "method", "for", "handling", "task", "metadata", "requests", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/v3/task_metadata_handler.go#L39-L76", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eventstream/eventstream.go", "func_name": "Subscribe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Subscribe adds the handler to be called into EventStream", "docstring_tokens": ["Subscribe", "adds", "the", "handler", "to", "be", "called", "into", "EventStream"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eventstream/eventstream.go#L51-L61", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eventstream/eventstream.go", "func_name": "broadcast", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// broadcast calls all handler's handler function", "docstring_tokens": ["broadcast", "calls", "all", "handler", "s", "handler", "function"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eventstream/eventstream.go#L64-L73", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eventstream/eventstream.go", "func_name": "Unsubscribe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Unsubscribe deletes the handler from the EventStream", "docstring_tokens": ["Unsubscribe", "deletes", "the", "handler", "from", "the", "EventStream"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eventstream/eventstream.go#L76-L87", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eventstream/eventstream.go", "func_name": "WriteToEventStream", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteToEventStream writes event to the event stream", "docstring_tokens": ["WriteToEventStream", "writes", "event", "to", "the", "event", "stream"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eventstream/eventstream.go#L90-L99", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eventstream/eventstream.go", "func_name": "listen", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// listen listens to the event channel", "docstring_tokens": ["listen", "listens", "to", "the", "event", "channel"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eventstream/eventstream.go#L107-L123", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eventstream/eventstream.go", "func_name": "StartListening", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StartListening mark the event stream as open and start listening", "docstring_tokens": ["StartListening", "mark", "the", "event", "stream", "as", "open", "and", "start", "listening"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eventstream/eventstream.go#L126-L132", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/logger/log.go", "func_name": "SetLevel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetLevel sets the log level for logging", "docstring_tokens": ["SetLevel", "sets", "the", "log", "level", "for", "logging"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/logger/log.go#L76-L85", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/logger/log.go", "func_name": "ForModule", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ForModule returns an OldLogger instance. OldLogger is deprecated and kept\n// for compatibility reasons. Prefer using Seelog directly.", "docstring_tokens": ["ForModule", "returns", "an", "OldLogger", "instance", ".", "OldLogger", "is", "deprecated", "and", "kept", "for", "compatibility", "reasons", ".", "Prefer", "using", "Seelog", "directly", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/logger/log.go#L97-L100", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/wsclient/wsconn/mock/conn.go", "func_name": "NewMockWebsocketConn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockWebsocketConn creates a new mock instance", "docstring_tokens": ["NewMockWebsocketConn", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/wsclient/wsconn/mock/conn.go#L39-L43", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/wsclient/wsconn/mock/conn.go", "func_name": "ReadMessage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadMessage mocks base method", "docstring_tokens": ["ReadMessage", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/wsclient/wsconn/mock/conn.go#L63-L69", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/wsclient/wsconn/mock/conn.go", "func_name": "SetWriteDeadline", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetWriteDeadline indicates an expected call of SetWriteDeadline", "docstring_tokens": ["SetWriteDeadline", "indicates", "an", "expected", "call", "of", "SetWriteDeadline"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/wsclient/wsconn/mock/conn.go#L96-L98", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ec2/http/mocks/http_mocks.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get indicates an expected call of Get", "docstring_tokens": ["Get", "indicates", "an", "expected", "call", "of", "Get"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ec2/http/mocks/http_mocks.go#L59-L61", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/ssmsecret/ssmsecret.go", "func_name": "NewSSMSecretResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSSMSecretResource creates a new SSMSecretResource object", "docstring_tokens": ["NewSSMSecretResource", "creates", "a", "new", "SSMSecretResource", "object"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/ssmsecret/ssmsecret.go#L76-L92", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/ssmsecret/ssmsecret.go", "func_name": "Create", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create fetches secret value from SSM in batches. It spins up multiple goroutines in order to\n// retrieve values in parallel.", "docstring_tokens": ["Create", "fetches", "secret", "value", "from", "SSM", "in", "batches", ".", "It", "spins", "up", "multiple", "goroutines", "in", "order", "to", "retrieve", "values", "in", "parallel", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/ssmsecret/ssmsecret.go#L250-L287", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/ssmsecret/ssmsecret.go", "func_name": "getGoRoutineMaxNum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getGoRoutineMaxNum calculates the maximum number of goroutines that we need to spin up\n// to retrieve secret values from SSM parameter store. Assume each goroutine initiates one\n// SSM GetParameters call and each call will have 10 parameters", "docstring_tokens": ["getGoRoutineMaxNum", "calculates", "the", "maximum", "number", "of", "goroutines", "that", "we", "need", "to", "spin", "up", "to", "retrieve", "secret", "values", "from", "SSM", "parameter", "store", ".", "Assume", "each", "goroutine", "initiates", "one", "SSM", "GetParameters", "call", "and", "each", "call", "will", "have", "10", "parameters"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/ssmsecret/ssmsecret.go#L292-L298", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/ssmsecret/ssmsecret.go", "func_name": "retrieveSSMSecretValuesByRegion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// retrieveSSMSecretValuesByRegion reads secret values from cache first, if not exists, batches secrets based on field\n// valueFrom and call retrieveSSMSecretValues to retrieve values from SSM", "docstring_tokens": ["retrieveSSMSecretValuesByRegion", "reads", "secret", "values", "from", "cache", "first", "if", "not", "exists", "batches", "secrets", "based", "on", "field", "valueFrom", "and", "call", "retrieveSSMSecretValues", "to", "retrieve", "values", "from", "SSM"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/ssmsecret/ssmsecret.go#L302-L329", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/ssmsecret/ssmsecret.go", "func_name": "retrieveSSMSecretValues", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// retrieveSSMSecretValues retrieves secret values from SSM parameter store and caches them into memory", "docstring_tokens": ["retrieveSSMSecretValues", "retrieves", "secret", "values", "from", "SSM", "parameter", "store", "and", "caches", "them", "into", "memory"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/ssmsecret/ssmsecret.go#L332-L351", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/ssmsecret/ssmsecret.go", "func_name": "clearSSMSecretValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// clearSSMSecretValue cycles through the collection of secret value data and\n// removes them from the task", "docstring_tokens": ["clearSSMSecretValue", "cycles", "through", "the", "collection", "of", "secret", "value", "data", "and", "removes", "them", "from", "the", "task"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/ssmsecret/ssmsecret.go#L377-L384", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/ssmsecret/ssmsecret.go", "func_name": "GetCachedSecretValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCachedSecretValue retrieves the secret value from secretData field", "docstring_tokens": ["GetCachedSecretValue", "retrieves", "the", "secret", "value", "from", "secretData", "field"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/ssmsecret/ssmsecret.go#L387-L393", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/ssmsecret/ssmsecret.go", "func_name": "SetCachedSecretValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetCachedSecretValue set the secret value in the secretData field given the key and value", "docstring_tokens": ["SetCachedSecretValue", "set", "the", "secret", "value", "in", "the", "secretData", "field", "given", "the", "key", "and", "value"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/ssmsecret/ssmsecret.go#L396-L405", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/containermetadata/mocks/containermetadata_mocks.go", "func_name": "Clean", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Clean mocks base method", "docstring_tokens": ["Clean", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/containermetadata/mocks/containermetadata_mocks.go#L55-L59", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/containermetadata/mocks/containermetadata_mocks.go", "func_name": "SetAvailabilityZone", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetAvailabilityZone mocks base method", "docstring_tokens": ["SetAvailabilityZone", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/containermetadata/mocks/containermetadata_mocks.go#L79-L81", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/containermetadata/mocks/containermetadata_mocks.go", "func_name": "SetContainerInstanceARN", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetContainerInstanceARN mocks base method", "docstring_tokens": ["SetContainerInstanceARN", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/containermetadata/mocks/containermetadata_mocks.go#L89-L91", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/containermetadata/mocks/containermetadata_mocks.go", "func_name": "SetHostPublicIPv4Address", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetHostPublicIPv4Address mocks base method", "docstring_tokens": ["SetHostPublicIPv4Address", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/containermetadata/mocks/containermetadata_mocks.go#L99-L101", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/containermetadata/mocks/containermetadata_mocks.go", "func_name": "NewMockDockerMetadataClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockDockerMetadataClient creates a new mock instance", "docstring_tokens": ["NewMockDockerMetadataClient", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/containermetadata/mocks/containermetadata_mocks.go#L132-L136", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/containermetadata/mocks/containermetadata_mocks.go", "func_name": "InspectContainer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InspectContainer indicates an expected call of InspectContainer", "docstring_tokens": ["InspectContainer", "indicates", "an", "expected", "call", "of", "InspectContainer"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/containermetadata/mocks/containermetadata_mocks.go#L152-L154", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/json.go", "func_name": "JsonKeys", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// JsonKeys takes an arbitrary byte array representing a json stringified object\n// and returns all the keys of that object.", "docstring_tokens": ["JsonKeys", "takes", "an", "arbitrary", "byte", "array", "representing", "a", "json", "stringified", "object", "and", "returns", "all", "the", "keys", "of", "that", "object", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/json.go#L25-L40", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/v2/task_container_metadata_handler.go", "func_name": "TaskContainerMetadataHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TaskContainerMetadataHandler returns the handler method for handling task and container metadata requests.", "docstring_tokens": ["TaskContainerMetadataHandler", "returns", "the", "handler", "method", "for", "handling", "task", "and", "container", "metadata", "requests", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/v2/task_container_metadata_handler.go#L49-L67", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/v2/task_container_metadata_handler.go", "func_name": "WriteContainerMetadataResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteContainerMetadataResponse writes the container metadata to response writer.", "docstring_tokens": ["WriteContainerMetadataResponse", "writes", "the", "container", "metadata", "to", "response", "writer", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/v2/task_container_metadata_handler.go#L70-L80", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/v2/task_container_metadata_handler.go", "func_name": "WriteTaskMetadataResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteTaskMetadataResponse writes the task metadata to response writer.", "docstring_tokens": ["WriteTaskMetadataResponse", "writes", "the", "task", "metadata", "to", "response", "writer", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/v2/task_container_metadata_handler.go#L83-L94", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/cgroup/control/init_linux.go", "func_name": "Init", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Init is used to setup the cgroup root for ecs", "docstring_tokens": ["Init", "is", "used", "to", "setup", "the", "cgroup", "root", "for", "ecs"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/cgroup/control/init_linux.go#L26-L36", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/wsclient/error.go", "func_name": "Error", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Error returns an error string", "docstring_tokens": ["Error", "returns", "an", "error", "string"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/wsclient/error.go#L39-L63", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/wsclient/error.go", "func_name": "Retry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Retry returns true if this error should be considered retriable", "docstring_tokens": ["Retry", "returns", "true", "if", "this", "error", "should", "be", "considered", "retriable"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/wsclient/error.go#L66-L73", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/mocks/handlers_mocks.go", "func_name": "NewMockDockerStateResolver", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockDockerStateResolver creates a new mock instance", "docstring_tokens": ["NewMockDockerStateResolver", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/mocks/handlers_mocks.go#L39-L43", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/mocks/handlers_mocks.go", "func_name": "State", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// State indicates an expected call of State", "docstring_tokens": ["State", "indicates", "an", "expected", "call", "of", "State"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/mocks/handlers_mocks.go#L58-L60", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/app/license.go", "func_name": "printLicense", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// printLicense prints the Agent's license text", "docstring_tokens": ["printLicense", "prints", "the", "Agent", "s", "license", "text"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/app/license.go#L25-L34", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/cgroup/control/factory/factory_linux.go", "func_name": "Load", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Load is used to load the cgroup hierarchy based off the cgroup path", "docstring_tokens": ["Load", "is", "used", "to", "load", "the", "cgroup", "hierarchy", "based", "off", "the", "cgroup", "path"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/cgroup/control/factory/factory_linux.go#L35-L37", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/taskresource/cgroup/control/factory/factory_linux.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New is used to create a new cgroup hierarchy", "docstring_tokens": ["New", "is", "used", "to", "create", "a", "new", "cgroup", "hierarchy"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/taskresource/cgroup/control/factory/factory_linux.go#L40-L42", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "misc/gremlin/gremlin.go", "func_name": "timeoutAndMoveOn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// timeoutAndMoveOn executes the long running function pointed to by 'fp' and\n// times out after 'timeout' duration.", "docstring_tokens": ["timeoutAndMoveOn", "executes", "the", "long", "running", "function", "pointed", "to", "by", "fp", "and", "times", "out", "after", "timeout", "duration", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/misc/gremlin/gremlin.go#L46-L56", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/docker_task_engine.go", "func_name": "UnmarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalJSON restores a previously marshaled task-engine state from json", "docstring_tokens": ["UnmarshalJSON", "restores", "a", "previously", "marshaled", "task", "-", "engine", "state", "from", "json"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/docker_task_engine.go#L190-L192", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/docker_task_engine.go", "func_name": "Init", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Init initializes a DockerTaskEngine such that it may communicate with docker\n// and operate normally.\n// This function must be called before any other function, except serializing and deserializing, can succeed without error.", "docstring_tokens": ["Init", "initializes", "a", "DockerTaskEngine", "such", "that", "it", "may", "communicate", "with", "docker", "and", "operate", "normally", ".", "This", "function", "must", "be", "called", "before", "any", "other", "function", "except", "serializing", "and", "deserializing", "can", "succeed", "without", "error", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/docker_task_engine.go#L202-L221", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/docker_task_engine.go", "func_name": "MustInit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustInit blocks and retries until an engine can be initialized.", "docstring_tokens": ["MustInit", "blocks", "and", "retries", "until", "an", "engine", "can", "be", "initialized", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/docker_task_engine.go#L224-L246", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/docker_task_engine.go", "func_name": "isTaskManaged", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isTaskManaged checks if task for the corresponding arn is present", "docstring_tokens": ["isTaskManaged", "checks", "if", "task", "for", "the", "corresponding", "arn", "is", "present"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/docker_task_engine.go#L266-L271", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/docker_task_engine.go", "func_name": "synchronizeState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// synchronizeState explicitly goes through each docker container stored in\n// \"state\" and updates its KnownStatus appropriately, as well as queueing up\n// events to push upstream.", "docstring_tokens": ["synchronizeState", "explicitly", "goes", "through", "each", "docker", "container", "stored", "in", "state", "and", "updates", "its", "KnownStatus", "appropriately", "as", "well", "as", "queueing", "up", "events", "to", "push", "upstream", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/docker_task_engine.go#L276-L295", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/docker_task_engine.go", "func_name": "filterTasksToStartUnsafe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// filterTasksToStartUnsafe filters only the tasks that need to be started after\n// the agent has been restarted. It also synchronizes states of all of the containers\n// in tasks that need to be started.", "docstring_tokens": ["filterTasksToStartUnsafe", "filters", "only", "the", "tasks", "that", "need", "to", "be", "started", "after", "the", "agent", "has", "been", "restarted", ".", "It", "also", "synchronizes", "states", "of", "all", "of", "the", "containers", "in", "tasks", "that", "need", "to", "be", "started", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/docker_task_engine.go#L300-L323", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/docker_task_engine.go", "func_name": "updateContainerMetadata", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// updateContainerMetadata sets the container metadata from the docker inspect", "docstring_tokens": ["updateContainerMetadata", "sets", "the", "container", "metadata", "from", "the", "docker", "inspect"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/docker_task_engine.go#L326-L360", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/docker_task_engine.go", "func_name": "synchronizeContainerStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// synchronizeContainerStatus checks and updates the container status with docker", "docstring_tokens": ["synchronizeContainerStatus", "checks", "and", "updates", "the", "container", "status", "with", "docker"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/docker_task_engine.go#L363-L417", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/docker_task_engine.go", "func_name": "checkTaskState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// checkTaskState inspects the state of all containers within a task and writes\n// their state to the managed task's container channel.", "docstring_tokens": ["checkTaskState", "inspects", "the", "state", "of", "all", "containers", "within", "a", "task", "and", "writes", "their", "state", "to", "the", "managed", "task", "s", "container", "channel", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/docker_task_engine.go#L421-L448", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/docker_task_engine.go", "func_name": "sweepTask", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// sweepTask deletes all the containers associated with a task", "docstring_tokens": ["sweepTask", "deletes", "all", "the", "containers", "associated", "with", "a", "task"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/docker_task_engine.go#L451-L477", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/docker_task_engine.go", "func_name": "startTask", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// startTask creates a managedTask construct to track the task and then begins\n// pushing it towards its desired state when allowed startTask is protected by\n// the tasksLock lock of 'AddTask'. It should not be called from anywhere\n// else and should exit quickly to allow AddTask to do more work.", "docstring_tokens": ["startTask", "creates", "a", "managedTask", "construct", "to", "track", "the", "task", "and", "then", "begins", "pushing", "it", "towards", "its", "desired", "state", "when", "allowed", "startTask", "is", "protected", "by", "the", "tasksLock", "lock", "of", "AddTask", ".", "It", "should", "not", "be", "called", "from", "anywhere", "else", "and", "should", "exit", "quickly", "to", "allow", "AddTask", "to", "do", "more", "work", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/docker_task_engine.go#L522-L531", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/docker_task_engine.go", "func_name": "openEventstream", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// openEventstream opens, but does not consume, the docker event stream", "docstring_tokens": ["openEventstream", "opens", "but", "does", "not", "consume", "the", "docker", "event", "stream"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/docker_task_engine.go#L543-L550", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/docker_task_engine.go", "func_name": "handleDockerEvents", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handleDockerEvents must be called after openEventstream; it processes each\n// event that it reads from the docker eventstream", "docstring_tokens": ["handleDockerEvents", "must", "be", "called", "after", "openEventstream", ";", "it", "processes", "each", "event", "that", "it", "reads", "from", "the", "docker", "eventstream"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/docker_task_engine.go#L554-L563", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/docker_task_engine.go", "func_name": "handleDockerEvent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handleDockerEvent is the entrypoint for task modifications originating with\n// events occurring through Docker, outside the task engine itself.\n// handleDockerEvent is responsible for taking an event that correlates to a\n// container and placing it in the context of the task to which that container\n// belongs.", "docstring_tokens": ["handleDockerEvent", "is", "the", "entrypoint", "for", "task", "modifications", "originating", "with", "events", "occurring", "through", "Docker", "outside", "the", "task", "engine", "itself", ".", "handleDockerEvent", "is", "responsible", "for", "taking", "an", "event", "that", "correlates", "to", "a", "container", "and", "placing", "it", "in", "the", "context", "of", "the", "task", "to", "which", "that", "container", "belongs", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/docker_task_engine.go#L570-L611", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/docker_task_engine.go", "func_name": "AddTask", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddTask starts tracking a task", "docstring_tokens": ["AddTask", "starts", "tracking", "a", "task"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/docker_task_engine.go#L621-L656", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/docker_task_engine.go", "func_name": "ListTasks", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListTasks returns the tasks currently managed by the DockerTaskEngine", "docstring_tokens": ["ListTasks", "returns", "the", "tasks", "currently", "managed", "by", "the", "DockerTaskEngine"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/docker_task_engine.go#L659-L661", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/docker_task_engine.go", "func_name": "GetTaskByArn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTaskByArn returns the task identified by that ARN", "docstring_tokens": ["GetTaskByArn", "returns", "the", "task", "identified", "by", "that", "ARN"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/docker_task_engine.go#L664-L666", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/docker_task_engine.go", "func_name": "imagePullRequired", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// imagePullRequired returns true if pulling image is required, or return false if local image cache\n// should be used, by inspecting the agent pull behavior variable defined in config. The caller has\n// to make sure the container passed in is not an internal container.", "docstring_tokens": ["imagePullRequired", "returns", "true", "if", "pulling", "image", "is", "required", "or", "return", "false", "if", "local", "image", "cache", "should", "be", "used", "by", "inspecting", "the", "agent", "pull", "behavior", "variable", "defined", "in", "config", ".", "The", "caller", "has", "to", "make", "sure", "the", "container", "passed", "in", "is", "not", "an", "internal", "container", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/docker_task_engine.go#L696-L725", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/docker_task_engine.go", "func_name": "cleanupPauseContainerNetwork", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// cleanupPauseContainerNetwork will clean up the network namespace of pause container", "docstring_tokens": ["cleanupPauseContainerNetwork", "will", "clean", "up", "the", "network", "namespace", "of", "pause", "container"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/docker_task_engine.go#L1018-L1028", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/docker_task_engine.go", "func_name": "updateTaskUnsafe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// updateTaskUnsafe determines if a new transition needs to be applied to the\n// referenced task, and if needed applies it. It should not be called anywhere\n// but from 'AddTask' and is protected by the tasksLock lock there.", "docstring_tokens": ["updateTaskUnsafe", "determines", "if", "a", "new", "transition", "needs", "to", "be", "applied", "to", "the", "referenced", "task", "and", "if", "needed", "applies", "it", ".", "It", "should", "not", "be", "called", "anywhere", "but", "from", "AddTask", "and", "is", "protected", "by", "the", "tasksLock", "lock", "there", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/docker_task_engine.go#L1127-L1147", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/docker_task_engine.go", "func_name": "transitionContainer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// transitionContainer calls applyContainerState, and then notifies the managed\n// task of the change. transitionContainer is called by progressTask and\n// by handleStoppedToRunningContainerTransition.", "docstring_tokens": ["transitionContainer", "calls", "applyContainerState", "and", "then", "notifies", "the", "managed", "task", "of", "the", "change", ".", "transitionContainer", "is", "called", "by", "progressTask", "and", "by", "handleStoppedToRunningContainerTransition", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/docker_task_engine.go#L1152-L1169", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/docker_task_engine.go", "func_name": "applyContainerState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// applyContainerState moves the container to the given state by calling the\n// function defined in the transitionFunctionMap for the state", "docstring_tokens": ["applyContainerState", "moves", "the", "container", "to", "the", "given", "state", "by", "calling", "the", "function", "defined", "in", "the", "transitionFunctionMap", "for", "the", "state"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/docker_task_engine.go#L1173-L1190", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/docker_task_engine.go", "func_name": "Version", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Version returns the underlying docker version.", "docstring_tokens": ["Version", "returns", "the", "underlying", "docker", "version", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/docker_task_engine.go#L1209-L1211", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ssm/mocks/ssm_mocks.go", "func_name": "NewMockSSMClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockSSMClient creates a new mock instance", "docstring_tokens": ["NewMockSSMClient", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ssm/mocks/ssm_mocks.go#L39-L43", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ssm/mocks/ssm_mocks.go", "func_name": "GetParameters", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetParameters mocks base method", "docstring_tokens": ["GetParameters", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ssm/mocks/ssm_mocks.go#L51-L56", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ssm/mocks/ssm_mocks.go", "func_name": "GetParameters", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetParameters indicates an expected call of GetParameters", "docstring_tokens": ["GetParameters", "indicates", "an", "expected", "call", "of", "GetParameters"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ssm/mocks/ssm_mocks.go#L59-L61", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/sdkclientfactory/mocks/sdkclientfactory_mocks.go", "func_name": "NewMockFactory", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockFactory creates a new mock instance", "docstring_tokens": ["NewMockFactory", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/sdkclientfactory/mocks/sdkclientfactory_mocks.go#L40-L44", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/sdkclientfactory/mocks/sdkclientfactory_mocks.go", "func_name": "FindClientAPIVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FindClientAPIVersion mocks base method", "docstring_tokens": ["FindClientAPIVersion", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/sdkclientfactory/mocks/sdkclientfactory_mocks.go#L52-L56", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/sdkclientfactory/mocks/sdkclientfactory_mocks.go", "func_name": "FindKnownAPIVersions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FindKnownAPIVersions mocks base method", "docstring_tokens": ["FindKnownAPIVersions", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/sdkclientfactory/mocks/sdkclientfactory_mocks.go#L64-L68", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/sdkclientfactory/mocks/sdkclientfactory_mocks.go", "func_name": "GetDefaultClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDefaultClient mocks base method", "docstring_tokens": ["GetDefaultClient", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/sdkclientfactory/mocks/sdkclientfactory_mocks.go#L101-L106", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/update_handler/os/mock/filesystem.go", "func_name": "NewMockFileSystem", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockFileSystem creates a new mock instance", "docstring_tokens": ["NewMockFileSystem", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/update_handler/os/mock/filesystem.go#L40-L44", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/update_handler/os/mock/filesystem.go", "func_name": "Copy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Copy mocks base method", "docstring_tokens": ["Copy", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/update_handler/os/mock/filesystem.go#L52-L57", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/update_handler/os/mock/filesystem.go", "func_name": "Exit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Exit mocks base method", "docstring_tokens": ["Exit", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/update_handler/os/mock/filesystem.go#L78-L80", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/update_handler/os/mock/filesystem.go", "func_name": "MkdirAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MkdirAll mocks base method", "docstring_tokens": ["MkdirAll", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/update_handler/os/mock/filesystem.go#L88-L92", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/update_handler/os/mock/filesystem.go", "func_name": "Open", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Open mocks base method", "docstring_tokens": ["Open", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/update_handler/os/mock/filesystem.go#L100-L105", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/update_handler/os/mock/filesystem.go", "func_name": "ReadAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadAll mocks base method", "docstring_tokens": ["ReadAll", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/update_handler/os/mock/filesystem.go#L113-L118", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/update_handler/os/mock/filesystem.go", "func_name": "Remove", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Remove mocks base method", "docstring_tokens": ["Remove", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/update_handler/os/mock/filesystem.go#L126-L128", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/update_handler/os/mock/filesystem.go", "func_name": "Rename", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Rename mocks base method", "docstring_tokens": ["Rename", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/update_handler/os/mock/filesystem.go#L136-L140", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/acs/update_handler/os/mock/filesystem.go", "func_name": "TeeReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TeeReader mocks base method", "docstring_tokens": ["TeeReader", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/acs/update_handler/os/mock/filesystem.go#L148-L152", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/app/agent_unix.go", "func_name": "initializeTaskENIDependencies", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// initializeTaskENIDependencies initializes all of the dependencies required by\n// the Agent to support the 'awsvpc' networking mode. A non nil error is returned\n// if an error is encountered during this process. An additional boolean flag to\n// indicate if this error is considered terminal is also returned", "docstring_tokens": ["initializeTaskENIDependencies", "initializes", "all", "of", "the", "dependencies", "required", "by", "the", "Agent", "to", "support", "the", "awsvpc", "networking", "mode", ".", "A", "non", "nil", "error", "is", "returned", "if", "an", "error", "is", "encountered", "during", "this", "process", ".", "An", "additional", "boolean", "flag", "to", "indicate", "if", "this", "error", "is", "considered", "terminal", "is", "also", "returned"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/app/agent_unix.go#L64-L107", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/app/agent_unix.go", "func_name": "setVPCSubnet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setVPCSubnet sets the vpc and subnet ids for the agent by querying the\n// instance metadata service", "docstring_tokens": ["setVPCSubnet", "sets", "the", "vpc", "and", "subnet", "ids", "for", "the", "agent", "by", "querying", "the", "instance", "metadata", "service"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/app/agent_unix.go#L111-L133", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/app/agent_unix.go", "func_name": "startUdevWatcher", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// startUdevWatcher starts the udev monitor and the watcher for receiving\n// notifications from the monitor", "docstring_tokens": ["startUdevWatcher", "starts", "the", "udev", "monitor", "and", "the", "watcher", "for", "receiving", "notifications", "from", "the", "monitor"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/app/agent_unix.go#L175-L188", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/metrics/generic_metrics_client.go", "func_name": "IncrementCallCount", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// This function increments the call count for a specific API call\n// This is invoked at the API call's start, whereas the duration metrics\n// are updated at the API call's end.", "docstring_tokens": ["This", "function", "increments", "the", "call", "count", "for", "a", "specific", "API", "call", "This", "is", "invoked", "at", "the", "API", "call", "s", "start", "whereas", "the", "duration", "metrics", "are", "updated", "at", "the", "API", "call", "s", "end", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/metrics/generic_metrics_client.go#L127-L136", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/mocks/dockerstate_mocks.go", "func_name": "NewMockTaskEngineState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockTaskEngineState creates a new mock instance", "docstring_tokens": ["NewMockTaskEngineState", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/mocks/dockerstate_mocks.go#L42-L46", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/mocks/dockerstate_mocks.go", "func_name": "AddContainer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddContainer mocks base method", "docstring_tokens": ["AddContainer", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/mocks/dockerstate_mocks.go#L54-L56", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/mocks/dockerstate_mocks.go", "func_name": "AddENIAttachment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddENIAttachment mocks base method", "docstring_tokens": ["AddENIAttachment", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/mocks/dockerstate_mocks.go#L64-L66", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/mocks/dockerstate_mocks.go", "func_name": "AddImageState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddImageState mocks base method", "docstring_tokens": ["AddImageState", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/mocks/dockerstate_mocks.go#L74-L76", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/mocks/dockerstate_mocks.go", "func_name": "AddTaskIPAddress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddTaskIPAddress mocks base method", "docstring_tokens": ["AddTaskIPAddress", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/mocks/dockerstate_mocks.go#L94-L96", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/mocks/dockerstate_mocks.go", "func_name": "AllImageStates", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AllImageStates mocks base method", "docstring_tokens": ["AllImageStates", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/mocks/dockerstate_mocks.go#L104-L108", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/mocks/dockerstate_mocks.go", "func_name": "AllImageStates", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AllImageStates indicates an expected call of AllImageStates", "docstring_tokens": ["AllImageStates", "indicates", "an", "expected", "call", "of", "AllImageStates"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/mocks/dockerstate_mocks.go#L111-L113", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/mocks/dockerstate_mocks.go", "func_name": "AllTasks", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AllTasks mocks base method", "docstring_tokens": ["AllTasks", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/mocks/dockerstate_mocks.go#L116-L120", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/mocks/dockerstate_mocks.go", "func_name": "ContainerByID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerByID mocks base method", "docstring_tokens": ["ContainerByID", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/mocks/dockerstate_mocks.go#L128-L133", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/mocks/dockerstate_mocks.go", "func_name": "ENIByMac", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ENIByMac mocks base method", "docstring_tokens": ["ENIByMac", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/mocks/dockerstate_mocks.go#L167-L172", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/mocks/dockerstate_mocks.go", "func_name": "GetAllContainerIDs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAllContainerIDs mocks base method", "docstring_tokens": ["GetAllContainerIDs", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/mocks/dockerstate_mocks.go#L180-L184", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/mocks/dockerstate_mocks.go", "func_name": "RemoveENIAttachment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveENIAttachment mocks base method", "docstring_tokens": ["RemoveENIAttachment", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/mocks/dockerstate_mocks.go#L218-L220", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/mocks/dockerstate_mocks.go", "func_name": "RemoveImageState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveImageState mocks base method", "docstring_tokens": ["RemoveImageState", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/mocks/dockerstate_mocks.go#L228-L230", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/mocks/dockerstate_mocks.go", "func_name": "RemoveTask", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveTask mocks base method", "docstring_tokens": ["RemoveTask", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/mocks/dockerstate_mocks.go#L238-L240", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/mocks/dockerstate_mocks.go", "func_name": "RemoveTask", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveTask indicates an expected call of RemoveTask", "docstring_tokens": ["RemoveTask", "indicates", "an", "expected", "call", "of", "RemoveTask"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/mocks/dockerstate_mocks.go#L243-L245", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/mocks/dockerstate_mocks.go", "func_name": "TaskARNByV3EndpointID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TaskARNByV3EndpointID mocks base method", "docstring_tokens": ["TaskARNByV3EndpointID", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/mocks/dockerstate_mocks.go#L258-L263", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/mocks/dockerstate_mocks.go", "func_name": "TaskByArn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TaskByArn mocks base method", "docstring_tokens": ["TaskByArn", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/mocks/dockerstate_mocks.go#L271-L276", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/engine/dockerstate/mocks/dockerstate_mocks.go", "func_name": "UnmarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalJSON mocks base method", "docstring_tokens": ["UnmarshalJSON", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/engine/dockerstate/mocks/dockerstate_mocks.go#L310-L314", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/containertype.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String converts the container type enum to a string", "docstring_tokens": ["String", "converts", "the", "container", "type", "enum", "to", "a", "string"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/containertype.go#L51-L59", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/containertype.go", "func_name": "UnmarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalJSON decodes the container type field in the JSON encoded string\n// into the ContainerType object", "docstring_tokens": ["UnmarshalJSON", "decodes", "the", "container", "type", "field", "in", "the", "JSON", "encoded", "string", "into", "the", "ContainerType", "object"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/containertype.go#L63-L97", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/container/containertype.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON overrides the logic for JSON-encoding a ContainerType object", "docstring_tokens": ["MarshalJSON", "overrides", "the", "logic", "for", "JSON", "-", "encoding", "a", "ContainerType", "object"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/container/containertype.go#L100-L106", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/stats/utils.go", "func_name": "parseNanoTime", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseNanoTime returns the time object from a string formatted with RFC3339Nano layout.", "docstring_tokens": ["parseNanoTime", "returns", "the", "time", "object", "from", "a", "string", "formatted", "with", "RFC3339Nano", "layout", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/stats/utils.go#L37-L40", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/mocks/http/handlers_mocks.go", "func_name": "NewMockResponseWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockResponseWriter creates a new mock instance", "docstring_tokens": ["NewMockResponseWriter", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/mocks/http/handlers_mocks.go#L39-L43", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/mocks/http/handlers_mocks.go", "func_name": "Header", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Header mocks base method", "docstring_tokens": ["Header", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/mocks/http/handlers_mocks.go#L51-L55", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/mocks/http/handlers_mocks.go", "func_name": "Header", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Header indicates an expected call of Header", "docstring_tokens": ["Header", "indicates", "an", "expected", "call", "of", "Header"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/mocks/http/handlers_mocks.go#L58-L60", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/mocks/http/handlers_mocks.go", "func_name": "WriteHeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteHeader mocks base method", "docstring_tokens": ["WriteHeader", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/mocks/http/handlers_mocks.go#L76-L78", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/mocks/http/handlers_mocks.go", "func_name": "WriteHeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteHeader indicates an expected call of WriteHeader", "docstring_tokens": ["WriteHeader", "indicates", "an", "expected", "call", "of", "WriteHeader"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/mocks/http/handlers_mocks.go#L81-L83", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerapi_compare_versions.go", "func_name": "compareDockerVersions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// compareDockerVersions compares two docker api versions, 'lhs' and 'rhs', and returns -1 if lhs is less\n// than rhs, 0 if they are equal, and 1 if lhs is greater than rhs", "docstring_tokens": ["compareDockerVersions", "compares", "two", "docker", "api", "versions", "lhs", "and", "rhs", "and", "returns", "-", "1", "if", "lhs", "is", "less", "than", "rhs", "0", "if", "they", "are", "equal", "and", "1", "if", "lhs", "is", "greater", "than", "rhs"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerapi_compare_versions.go#L113-L125", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/sign_http_request.go", "func_name": "SignHTTPRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SignHTTPRequest signs an http.Request struct with authv4 using the given region, service, and credentials.", "docstring_tokens": ["SignHTTPRequest", "signs", "an", "http", ".", "Request", "struct", "with", "authv4", "using", "the", "given", "region", "service", "and", "credentials", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/sign_http_request.go#L28-L36", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/sdkclientfactory/versionsupport_unix.go", "func_name": "GetClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetClient on linux will simply return the cached client from the map", "docstring_tokens": ["GetClient", "on", "linux", "will", "simply", "return", "the", "cached", "client", "from", "the", "map"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/sdkclientfactory/versionsupport_unix.go#L28-L30", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/sdkclientfactory/versionsupport_unix.go", "func_name": "getAgentVersions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getAgentVersions returns a list of supported agent-supported versions for linux", "docstring_tokens": ["getAgentVersions", "returns", "a", "list", "of", "supported", "agent", "-", "supported", "versions", "for", "linux"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/sdkclientfactory/versionsupport_unix.go#L33-L52", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task_unsupported.go", "func_name": "dockerCPUShares", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// duplicate of dockerCPUShares in task_linux.go", "docstring_tokens": ["duplicate", "of", "dockerCPUShares", "in", "task_linux", ".", "go"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task_unsupported.go#L58-L66", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "misc/agent-introspection-validator/agent-introspection-validator.go", "func_name": "verifyTasksMetadata", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// verifyTasksMetadata verifies the number of tasks in tasks metadata.", "docstring_tokens": ["verifyTasksMetadata", "verifies", "the", "number", "of", "tasks", "in", "tasks", "metadata", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/misc/agent-introspection-validator/agent-introspection-validator.go#L116-L133", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "misc/agent-introspection-validator/agent-introspection-validator.go", "func_name": "verifyTaskMetadata", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// verifyTaskMetadata verifies the number of containers in task metadata, make\n// sure each necessary field is not empty, we cannot check the values of those fields\n// since they are dynamic. It also verifies the container metadata.", "docstring_tokens": ["verifyTaskMetadata", "verifies", "the", "number", "of", "containers", "in", "task", "metadata", "make", "sure", "each", "necessary", "field", "is", "not", "empty", "we", "cannot", "check", "the", "values", "of", "those", "fields", "since", "they", "are", "dynamic", ".", "It", "also", "verifies", "the", "container", "metadata", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/misc/agent-introspection-validator/agent-introspection-validator.go#L138-L174", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "misc/agent-introspection-validator/agent-introspection-validator.go", "func_name": "verifyContainerMetadata", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// verifyContainerMetadata verifies the container name of the container metadata,\n// and each necessary field is not empty.", "docstring_tokens": ["verifyContainerMetadata", "verifies", "the", "container", "name", "of", "the", "container", "metadata", "and", "each", "necessary", "field", "is", "not", "empty", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/misc/agent-introspection-validator/agent-introspection-validator.go#L178-L207", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecscni/mocks_cnitypes/result_mocks.go", "func_name": "NewMockResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockResult creates a new mock instance", "docstring_tokens": ["NewMockResult", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecscni/mocks_cnitypes/result_mocks.go#L39-L43", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecscni/mocks_cnitypes/result_mocks.go", "func_name": "GetAsVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAsVersion mocks base method", "docstring_tokens": ["GetAsVersion", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecscni/mocks_cnitypes/result_mocks.go#L51-L56", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecscni/mocks_cnitypes/result_mocks.go", "func_name": "GetAsVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAsVersion indicates an expected call of GetAsVersion", "docstring_tokens": ["GetAsVersion", "indicates", "an", "expected", "call", "of", "GetAsVersion"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecscni/mocks_cnitypes/result_mocks.go#L59-L61", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecscni/mocks_cnitypes/result_mocks.go", "func_name": "Print", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Print mocks base method", "docstring_tokens": ["Print", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecscni/mocks_cnitypes/result_mocks.go#L64-L68", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecscni/mocks_cnitypes/result_mocks.go", "func_name": "Print", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Print indicates an expected call of Print", "docstring_tokens": ["Print", "indicates", "an", "expected", "call", "of", "Print"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecscni/mocks_cnitypes/result_mocks.go#L71-L73", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go", "func_name": "ContainerCreate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerCreate mocks base method", "docstring_tokens": ["ContainerCreate", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go#L71-L76", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go", "func_name": "ContainerInspect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerInspect mocks base method", "docstring_tokens": ["ContainerInspect", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go#L84-L89", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go", "func_name": "ContainerList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerList mocks base method", "docstring_tokens": ["ContainerList", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go#L97-L102", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go", "func_name": "ContainerRemove", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerRemove mocks base method", "docstring_tokens": ["ContainerRemove", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go#L110-L114", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go", "func_name": "ContainerStart", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerStart mocks base method", "docstring_tokens": ["ContainerStart", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go#L122-L126", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go", "func_name": "ContainerStats", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerStats mocks base method", "docstring_tokens": ["ContainerStats", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go#L134-L139", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go", "func_name": "ContainerStop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerStop mocks base method", "docstring_tokens": ["ContainerStop", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go#L147-L151", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go", "func_name": "Events", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Events mocks base method", "docstring_tokens": ["Events", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go#L159-L164", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go", "func_name": "ImageImport", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ImageImport mocks base method", "docstring_tokens": ["ImageImport", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go#L172-L177", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go", "func_name": "ImageInspectWithRaw", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ImageInspectWithRaw mocks base method", "docstring_tokens": ["ImageInspectWithRaw", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go#L185-L191", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go", "func_name": "ImageList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ImageList mocks base method", "docstring_tokens": ["ImageList", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go#L199-L204", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go", "func_name": "ImageLoad", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ImageLoad mocks base method", "docstring_tokens": ["ImageLoad", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go#L212-L217", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go", "func_name": "ImagePull", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ImagePull mocks base method", "docstring_tokens": ["ImagePull", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go#L225-L230", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go", "func_name": "ImageRemove", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ImageRemove mocks base method", "docstring_tokens": ["ImageRemove", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go#L238-L243", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go", "func_name": "Ping", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Ping mocks base method", "docstring_tokens": ["Ping", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go#L251-L256", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go", "func_name": "PluginList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PluginList mocks base method", "docstring_tokens": ["PluginList", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go#L264-L269", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go", "func_name": "VolumeCreate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// VolumeCreate mocks base method", "docstring_tokens": ["VolumeCreate", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go#L290-L295", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go", "func_name": "VolumeInspect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// VolumeInspect mocks base method", "docstring_tokens": ["VolumeInspect", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go#L303-L308", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go", "func_name": "VolumeRemove", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// VolumeRemove mocks base method", "docstring_tokens": ["VolumeRemove", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/sdkclient/mocks/sdkclient_mocks.go#L316-L320", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/stats/engine.go", "func_name": "ResolveTask", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ResolveTask resolves the api task object, given container id.", "docstring_tokens": ["ResolveTask", "resolves", "the", "api", "task", "object", "given", "container", "id", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/stats/engine.go#L91-L101", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/stats/engine.go", "func_name": "ResolveContainer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ResolveContainer resolves the api container object, given container id.", "docstring_tokens": ["ResolveContainer", "resolves", "the", "api", "container", "object", "given", "container", "id", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/stats/engine.go#L104-L114", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/stats/engine.go", "func_name": "synchronizeState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// synchronizeState goes through all the containers on the instance to synchronize the state on agent start", "docstring_tokens": ["synchronizeState", "goes", "through", "all", "the", "containers", "on", "the", "instance", "to", "synchronize", "the", "state", "on", "agent", "start"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/stats/engine.go#L131-L141", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/stats/engine.go", "func_name": "addAndStartStatsContainer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// addAndStartStatsContainer add the container into stats engine and start collecting the container stats", "docstring_tokens": ["addAndStartStatsContainer", "add", "the", "container", "into", "stats", "engine", "and", "start", "collecting", "the", "container", "stats"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/stats/engine.go#L144-L158", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/stats/engine.go", "func_name": "MustInit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustInit initializes fields of the DockerStatsEngine object.", "docstring_tokens": ["MustInit", "initializes", "fields", "of", "the", "DockerStatsEngine", "object", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/stats/engine.go#L161-L190", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/stats/engine.go", "func_name": "waitToStop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// waitToStop waits for the container change event stream close ans stop collection metrics", "docstring_tokens": ["waitToStop", "waits", "for", "the", "container", "change", "event", "stream", "close", "ans", "stop", "collection", "metrics"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/stats/engine.go#L204-L213", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/stats/engine.go", "func_name": "removeAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// removeAll stops the periodic usage data collection for all containers", "docstring_tokens": ["removeAll", "stops", "the", "periodic", "usage", "data", "collection", "for", "all", "containers"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/stats/engine.go#L216-L230", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/stats/engine.go", "func_name": "addContainerUnsafe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// addContainerUnsafe adds a container to the map of containers being watched.", "docstring_tokens": ["addContainerUnsafe", "adds", "a", "container", "to", "the", "map", "of", "containers", "being", "watched", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/stats/engine.go#L233-L271", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/stats/engine.go", "func_name": "addToStatsContainerMapUnsafe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// addToStatsContainerMapUnsafe adds the statscontainer into stats for tracking and returns a boolean indicates\n// whether this container should be tracked for collecting metrics", "docstring_tokens": ["addToStatsContainerMapUnsafe", "adds", "the", "statscontainer", "into", "stats", "for", "tracking", "and", "returns", "a", "boolean", "indicates", "whether", "this", "container", "should", "be", "tracked", "for", "collecting", "metrics"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/stats/engine.go#L283-L307", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/stats/engine.go", "func_name": "GetInstanceMetrics", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetInstanceMetrics gets all task metrics and instance metadata from stats engine.", "docstring_tokens": ["GetInstanceMetrics", "gets", "all", "task", "metrics", "and", "instance", "metadata", "from", "stats", "engine", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/stats/engine.go#L310-L367", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/stats/engine.go", "func_name": "GetTaskHealthMetrics", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTaskHealthMetrics returns the container health metrics", "docstring_tokens": ["GetTaskHealthMetrics", "returns", "the", "container", "health", "metrics"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/stats/engine.go#L370-L398", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/stats/engine.go", "func_name": "stopTrackingContainerUnsafe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// stopTrackingContainerUnsafe removes the StatsContainer from stats engine and\n// returns true if the container is stopped or no longer tracked in agent. Otherwise\n// it does nothing and return false", "docstring_tokens": ["stopTrackingContainerUnsafe", "removes", "the", "StatsContainer", "from", "stats", "engine", "and", "returns", "true", "if", "the", "container", "is", "stopped", "or", "no", "longer", "tracked", "in", "agent", ".", "Otherwise", "it", "does", "nothing", "and", "return", "false"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/stats/engine.go#L417-L437", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/stats/engine.go", "func_name": "handleDockerEvents", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handleDockerEvents must be called after openEventstream; it processes each\n// event that it reads from the docker event stream.", "docstring_tokens": ["handleDockerEvents", "must", "be", "called", "after", "openEventstream", ";", "it", "processes", "each", "event", "that", "it", "reads", "from", "the", "docker", "event", "stream", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/stats/engine.go#L501-L519", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/stats/engine.go", "func_name": "removeContainer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// removeContainer deletes the container from the map of containers being watched.\n// It also stops the periodic usage data collection for the container.", "docstring_tokens": ["removeContainer", "deletes", "the", "container", "from", "the", "map", "of", "containers", "being", "watched", ".", "It", "also", "stops", "the", "periodic", "usage", "data", "collection", "for", "the", "container", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/stats/engine.go#L523-L549", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/stats/engine.go", "func_name": "newDockerContainerMetadataResolver", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newDockerContainerMetadataResolver returns a new instance of DockerContainerMetadataResolver.", "docstring_tokens": ["newDockerContainerMetadataResolver", "returns", "a", "new", "instance", "of", "DockerContainerMetadataResolver", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/stats/engine.go#L552-L564", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/stats/engine.go", "func_name": "taskContainerMetricsUnsafe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// taskContainerMetricsUnsafe gets all container metrics for a task arn.", "docstring_tokens": ["taskContainerMetricsUnsafe", "gets", "all", "container", "metrics", "for", "a", "task", "arn", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/stats/engine.go#L567-L612", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/stats/engine.go", "func_name": "resetStatsUnsafe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resetStatsUnsafe resets stats for all watched containers.", "docstring_tokens": ["resetStatsUnsafe", "resets", "stats", "for", "all", "watched", "containers", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/stats/engine.go#L642-L648", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/stats/engine.go", "func_name": "ContainerDockerStats", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerDockerStats returns the last stored raw docker stats object for a container", "docstring_tokens": ["ContainerDockerStats", "returns", "the", "last", "stored", "raw", "docker", "stats", "object", "for", "a", "container"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/stats/engine.go#L651-L667", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/stats/engine.go", "func_name": "newMetricsMetadata", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newMetricsMetadata creates the singleton metadata object.", "docstring_tokens": ["newMetricsMetadata", "creates", "the", "singleton", "metadata", "object", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/stats/engine.go#L670-L675", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/compare_versions.go", "func_name": "compareSemver", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// compareSemver compares two semvers, 'lhs' and 'rhs', and returns -1 if lhs is less\n// than rhs, 0 if they are equal, and 1 lhs is greater than rhs", "docstring_tokens": ["compareSemver", "compares", "two", "semvers", "lhs", "and", "rhs", "and", "returns", "-", "1", "if", "lhs", "is", "less", "than", "rhs", "0", "if", "they", "are", "equal", "and", "1", "lhs", "is", "greater", "than", "rhs"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/compare_versions.go#L133-L165", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/compare_versions.go", "func_name": "ExtractVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ExtractVersion extracts a matching version from the version number string", "docstring_tokens": ["ExtractVersion", "extracts", "a", "matching", "version", "from", "the", "version", "number", "string"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/compare_versions.go#L168-L175", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/credentials/manager.go", "func_name": "GetIAMRoleCredentials", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetIAMRoleCredentials returns the IAM role credentials in the task IAM role struct", "docstring_tokens": ["GetIAMRoleCredentials", "returns", "the", "IAM", "role", "credentials", "in", "the", "task", "IAM", "role", "struct"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/credentials/manager.go#L75-L80", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/credentials/manager.go", "func_name": "GenerateCredentialsEndpointRelativeURI", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GenerateCredentialsEndpointRelativeURI generates the relative URI for the\n// credentials endpoint, for a given task id.", "docstring_tokens": ["GenerateCredentialsEndpointRelativeURI", "generates", "the", "relative", "URI", "for", "the", "credentials", "endpoint", "for", "a", "given", "task", "id", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/credentials/manager.go#L84-L86", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/credentials/manager.go", "func_name": "IAMRoleCredentialsFromACS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IAMRoleCredentialsFromACS translates ecsacs.IAMRoleCredentials object to\n// api.IAMRoleCredentials", "docstring_tokens": ["IAMRoleCredentialsFromACS", "translates", "ecsacs", ".", "IAMRoleCredentials", "object", "to", "api", ".", "IAMRoleCredentials"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/credentials/manager.go#L99-L109", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/credentials/manager.go", "func_name": "SetTaskCredentials", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetTaskCredentials adds or updates credentials in the credentials manager", "docstring_tokens": ["SetTaskCredentials", "adds", "or", "updates", "credentials", "in", "the", "credentials", "manager"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/credentials/manager.go#L119-L140", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/credentials/manager.go", "func_name": "GetTaskCredentials", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTaskCredentials retrieves credentials for a given credentials id", "docstring_tokens": ["GetTaskCredentials", "retrieves", "credentials", "for", "a", "given", "credentials", "id"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/credentials/manager.go#L143-L156", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/credentials/manager.go", "func_name": "RemoveCredentials", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveCredentials removes credentials from the credentials manager", "docstring_tokens": ["RemoveCredentials", "removes", "credentials", "from", "the", "credentials", "manager"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/credentials/manager.go#L159-L164", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "misc/elastic-inference-validator/elastic-inference-validator.go", "func_name": "verifyResponseFieldNames", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// verify all the field names in the response are what we expected. this is needed because a direct unmarshal\n// is not case sensitive so can't ensure that the response is in valid format", "docstring_tokens": ["verify", "all", "the", "field", "names", "in", "the", "response", "are", "what", "we", "expected", ".", "this", "is", "needed", "because", "a", "direct", "unmarshal", "is", "not", "case", "sensitive", "so", "can", "t", "ensure", "that", "the", "response", "is", "in", "valid", "format"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/misc/elastic-inference-validator/elastic-inference-validator.go#L47-L60", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/app/oswrapper/mocks/oswrapper_mocks.go", "func_name": "Getpid", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Getpid mocks base method", "docstring_tokens": ["Getpid", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/app/oswrapper/mocks/oswrapper_mocks.go#L50-L54", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/app/oswrapper/mocks/oswrapper_mocks.go", "func_name": "Getpid", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Getpid indicates an expected call of Getpid", "docstring_tokens": ["Getpid", "indicates", "an", "expected", "call", "of", "Getpid"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/app/oswrapper/mocks/oswrapper_mocks.go#L57-L59", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/appmesh/appmesh.go", "func_name": "AppMeshFromACS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AppMeshFromACS validates proxy config if it is app mesh type and creates AppMesh object", "docstring_tokens": ["AppMeshFromACS", "validates", "proxy", "config", "if", "it", "is", "app", "mesh", "type", "and", "creates", "AppMesh", "object"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/appmesh/appmesh.go#L58-L74", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/appmesh/appmesh.go", "func_name": "buildAppPorts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// buildAppPorts creates app ports from proxy config", "docstring_tokens": ["buildAppPorts", "creates", "app", "ports", "from", "proxy", "config"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/appmesh/appmesh.go#L77-L83", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/appmesh/appmesh.go", "func_name": "buildEgressIgnoredIPs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// buildEgressIgnoredIPs creates egress ignored IPs from proxy config", "docstring_tokens": ["buildEgressIgnoredIPs", "creates", "egress", "ignored", "IPs", "from", "proxy", "config"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/appmesh/appmesh.go#L86-L93", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/appmesh/appmesh.go", "func_name": "buildEgressIgnoredPorts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// buildEgressIgnoredPorts creates egress ignored ports from proxy config", "docstring_tokens": ["buildEgressIgnoredPorts", "creates", "egress", "ignored", "ports", "from", "proxy", "config"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/appmesh/appmesh.go#L96-L102", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/appmesh/appmesh.go", "func_name": "appendDefaultEgressIgnoredIPs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// appendDefaultEgressIgnoredIPs append task metadata endpoint ip and\n// instance metadata ip address to egress ignored IPs if does not exist", "docstring_tokens": ["appendDefaultEgressIgnoredIPs", "append", "task", "metadata", "endpoint", "ip", "and", "instance", "metadata", "ip", "address", "to", "egress", "ignored", "IPs", "if", "does", "not", "exist"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/appmesh/appmesh.go#L106-L126", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/errors/errors.go", "func_name": "IsInstanceTypeChangedError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsInstanceTypeChangedError returns true if the error when\n// registering the container instance is because of instance type being\n// changed", "docstring_tokens": ["IsInstanceTypeChangedError", "returns", "true", "if", "the", "error", "when", "registering", "the", "container", "instance", "is", "because", "of", "instance", "type", "being", "changed"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/errors/errors.go#L32-L37", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/errors/errors.go", "func_name": "NewNamedError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewNamedError creates a NamedError.", "docstring_tokens": ["NewNamedError", "creates", "a", "NamedError", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/errors/errors.go#L80-L85", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/errors/errors.go", "func_name": "Error", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Error returns the error as a string", "docstring_tokens": ["Error", "returns", "the", "error", "as", "a", "string"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/errors/errors.go#L122-L124", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task_linux.go", "func_name": "BuildLinuxResourceSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BuildLinuxResourceSpec returns a linuxResources object for the task cgroup", "docstring_tokens": ["BuildLinuxResourceSpec", "returns", "a", "linuxResources", "object", "for", "the", "task", "cgroup"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task_linux.go#L88-L115", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task_linux.go", "func_name": "buildExplicitLinuxCPUSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// buildExplicitLinuxCPUSpec builds CPU spec when task CPU limits are\n// explicitly requested", "docstring_tokens": ["buildExplicitLinuxCPUSpec", "builds", "CPU", "spec", "when", "task", "CPU", "limits", "are", "explicitly", "requested"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task_linux.go#L119-L139", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task_linux.go", "func_name": "buildImplicitLinuxCPUSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// buildImplicitLinuxCPUSpec builds the implicit task CPU spec when\n// task CPU and memory limit feature is enabled", "docstring_tokens": ["buildImplicitLinuxCPUSpec", "builds", "the", "implicit", "task", "CPU", "spec", "when", "task", "CPU", "and", "memory", "limit", "feature", "is", "enabled"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task_linux.go#L143-L163", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task_linux.go", "func_name": "buildLinuxMemorySpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// buildLinuxMemorySpec validates and builds the task memory spec", "docstring_tokens": ["buildLinuxMemorySpec", "validates", "and", "builds", "the", "task", "memory", "spec"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task_linux.go#L166-L184", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task_linux.go", "func_name": "platformHostConfigOverride", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// platformHostConfigOverride to override platform specific feature sets", "docstring_tokens": ["platformHostConfigOverride", "to", "override", "platform", "specific", "feature", "sets"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task_linux.go#L187-L190", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/task/task_linux.go", "func_name": "overrideCgroupParent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// overrideCgroupParent updates hostconfig with cgroup parent when task cgroups\n// are enabled", "docstring_tokens": ["overrideCgroupParent", "updates", "hostconfig", "with", "cgroup", "parent", "when", "task", "cgroups", "are", "enabled"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/task/task_linux.go#L194-L205", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eni/networkutils/utils_linux.go", "func_name": "GetMACAddress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMACAddress retrieves the MAC address of a device using netlink", "docstring_tokens": ["GetMACAddress", "retrieves", "the", "MAC", "address", "of", "a", "device", "using", "netlink"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eni/networkutils/utils_linux.go#L65-L76", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eni/networkutils/utils_linux.go", "func_name": "retrieve", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// retrieve retrives the mac address of a network device. If the retrieved mac\n// address is empty, it retries the operation with a timeout specified by the\n// caller", "docstring_tokens": ["retrieve", "retrives", "the", "mac", "address", "of", "a", "network", "device", ".", "If", "the", "retrieved", "mac", "address", "is", "empty", "it", "retries", "the", "operation", "with", "a", "timeout", "specified", "by", "the", "caller"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eni/networkutils/utils_linux.go#L81-L117", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eni/networkutils/utils_linux.go", "func_name": "retrieveOnce", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// retrieveOnce retrieves the MAC address of a device using netlink.LinkByName", "docstring_tokens": ["retrieveOnce", "retrieves", "the", "MAC", "address", "of", "a", "device", "using", "netlink", ".", "LinkByName"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eni/networkutils/utils_linux.go#L120-L128", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eni/networkutils/utils_linux.go", "func_name": "IsValidNetworkDevice", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsValidNetworkDevice is used to differentiate virtual and physical devices\n// Returns true only for pci or vif interfaces", "docstring_tokens": ["IsValidNetworkDevice", "is", "used", "to", "differentiate", "virtual", "and", "physical", "devices", "Returns", "true", "only", "for", "pci", "or", "vif", "interfaces"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eni/networkutils/utils_linux.go#L132-L157", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/logger/eventlog_windows.go", "func_name": "ReceiveMessage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReceiveMessage receives a log line from seelog and emits it to the Windows event log", "docstring_tokens": ["ReceiveMessage", "receives", "a", "log", "line", "from", "seelog", "and", "emits", "it", "to", "the", "Windows", "event", "log"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/logger/eventlog_windows.go#L70-L80", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecr/client.go", "func_name": "GetAuthorizationToken", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAuthorizationToken calls the ecr api to get the docker auth for the specified registry", "docstring_tokens": ["GetAuthorizationToken", "calls", "the", "ecr", "api", "to", "get", "the", "docker", "auth", "for", "the", "specified", "registry"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecr/client.go#L54-L69", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/stats/mock/engine.go", "func_name": "NewMockEngine", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockEngine creates a new mock instance", "docstring_tokens": ["NewMockEngine", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/stats/mock/engine.go#L40-L44", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/stats/mock/engine.go", "func_name": "ContainerDockerStats", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerDockerStats mocks base method", "docstring_tokens": ["ContainerDockerStats", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/stats/mock/engine.go#L52-L57", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/stats/mock/engine.go", "func_name": "ContainerDockerStats", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerDockerStats indicates an expected call of ContainerDockerStats", "docstring_tokens": ["ContainerDockerStats", "indicates", "an", "expected", "call", "of", "ContainerDockerStats"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/stats/mock/engine.go#L60-L62", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/stats/mock/engine.go", "func_name": "GetInstanceMetrics", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetInstanceMetrics mocks base method", "docstring_tokens": ["GetInstanceMetrics", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/stats/mock/engine.go#L65-L71", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/stats/mock/engine.go", "func_name": "GetInstanceMetrics", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetInstanceMetrics indicates an expected call of GetInstanceMetrics", "docstring_tokens": ["GetInstanceMetrics", "indicates", "an", "expected", "call", "of", "GetInstanceMetrics"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/stats/mock/engine.go#L74-L76", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/stats/mock/engine.go", "func_name": "GetTaskHealthMetrics", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTaskHealthMetrics mocks base method", "docstring_tokens": ["GetTaskHealthMetrics", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/stats/mock/engine.go#L79-L85", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/retry/retry.go", "func_name": "RetryWithBackoff", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RetryWithBackoff takes a Backoff and a function to call that returns an error\n// If the error is nil then the function will no longer be called\n// If the error is Retriable then that will be used to determine if it should be\n// retried", "docstring_tokens": ["RetryWithBackoff", "takes", "a", "Backoff", "and", "a", "function", "to", "call", "that", "returns", "an", "error", "If", "the", "error", "is", "nil", "then", "the", "function", "will", "no", "longer", "be", "called", "If", "the", "error", "is", "Retriable", "then", "that", "will", "be", "used", "to", "determine", "if", "it", "should", "be", "retried"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/retry/retry.go#L28-L30", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/retry/retry.go", "func_name": "RetryWithBackoffCtx", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RetryWithBackoffCtx takes a context, a Backoff, and a function to call that returns an error\n// If the context is done, nil will be returned\n// If the error is nil then the function will no longer be called\n// If the error is Retriable then that will be used to determine if it should be\n// retried", "docstring_tokens": ["RetryWithBackoffCtx", "takes", "a", "context", "a", "Backoff", "and", "a", "function", "to", "call", "that", "returns", "an", "error", "If", "the", "context", "is", "done", "nil", "will", "be", "returned", "If", "the", "error", "is", "nil", "then", "the", "function", "will", "no", "longer", "be", "called", "If", "the", "error", "is", "Retriable", "then", "that", "will", "be", "used", "to", "determine", "if", "it", "should", "be", "retried"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/retry/retry.go#L37-L56", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/retry/retry.go", "func_name": "RetryNWithBackoff", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RetryNWithBackoff takes a Backoff, a maximum number of tries 'n', and a\n// function that returns an error. The function is called until either it does\n// not return an error or the maximum tries have been reached.\n// If the error returned is Retriable, the Retriability of it will be respected.\n// If the number of tries is exhausted, the last error will be returned.", "docstring_tokens": ["RetryNWithBackoff", "takes", "a", "Backoff", "a", "maximum", "number", "of", "tries", "n", "and", "a", "function", "that", "returns", "an", "error", ".", "The", "function", "is", "called", "until", "either", "it", "does", "not", "return", "an", "error", "or", "the", "maximum", "tries", "have", "been", "reached", ".", "If", "the", "error", "returned", "is", "Retriable", "the", "Retriability", "of", "it", "will", "be", "respected", ".", "If", "the", "number", "of", "tries", "is", "exhausted", "the", "last", "error", "will", "be", "returned", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/retry/retry.go#L63-L65", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/retry/retry.go", "func_name": "RetryNWithBackoffCtx", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RetryNWithBackoffCtx takes a context, a Backoff, a maximum number of tries 'n', and a function that returns an error.\n// The function is called until it does not return an error, the context is done, or the maximum tries have been\n// reached.\n// If the error returned is Retriable, the Retriability of it will be respected.\n// If the number of tries is exhausted, the last error will be returned.", "docstring_tokens": ["RetryNWithBackoffCtx", "takes", "a", "context", "a", "Backoff", "a", "maximum", "number", "of", "tries", "n", "and", "a", "function", "that", "returns", "an", "error", ".", "The", "function", "is", "called", "until", "it", "does", "not", "return", "an", "error", "the", "context", "is", "done", "or", "the", "maximum", "tries", "have", "been", "reached", ".", "If", "the", "error", "returned", "is", "Retriable", "the", "Retriability", "of", "it", "will", "be", "respected", ".", "If", "the", "number", "of", "tries", "is", "exhausted", "the", "last", "error", "will", "be", "returned", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/retry/retry.go#L72-L84", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/retry/backoff.go", "func_name": "AddJitter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddJitter adds an amount of jitter between 0 and the given jitter to the\n// given duration", "docstring_tokens": ["AddJitter", "adds", "an", "amount", "of", "jitter", "between", "0", "and", "the", "given", "jitter", "to", "the", "given", "duration"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/retry/backoff.go#L28-L36", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/ioutilwrapper/mocks/ioutilwrapper_mocks.go", "func_name": "NewMockIOUtil", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockIOUtil creates a new mock instance", "docstring_tokens": ["NewMockIOUtil", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/ioutilwrapper/mocks/ioutilwrapper_mocks.go#L40-L44", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/ioutilwrapper/mocks/ioutilwrapper_mocks.go", "func_name": "WriteFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteFile mocks base method", "docstring_tokens": ["WriteFile", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/ioutilwrapper/mocks/ioutilwrapper_mocks.go#L65-L69", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/utils/ioutilwrapper/mocks/ioutilwrapper_mocks.go", "func_name": "WriteFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteFile indicates an expected call of WriteFile", "docstring_tokens": ["WriteFile", "indicates", "an", "expected", "call", "of", "WriteFile"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/utils/ioutilwrapper/mocks/ioutilwrapper_mocks.go#L72-L74", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ec2/ec2_client.go", "func_name": "DescribeECSTagsForInstance", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DescribeECSTagsForInstance calls DescribeTags API to get the EC2 tags of the\n// instance id, and return it back as ECS tags", "docstring_tokens": ["DescribeECSTagsForInstance", "calls", "DescribeTags", "API", "to", "get", "the", "EC2", "tags", "of", "the", "instance", "id", "and", "return", "it", "back", "as", "ECS", "tags"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ec2/ec2_client.go#L69-L103", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/v2/task_container_stats_handler.go", "func_name": "TaskContainerStatsHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TaskContainerStatsHandler returns the handler method for handling task and container stats requests.", "docstring_tokens": ["TaskContainerStatsHandler", "returns", "the", "handler", "method", "for", "handling", "task", "and", "container", "stats", "requests", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/v2/task_container_stats_handler.go#L43-L61", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/v2/task_container_stats_handler.go", "func_name": "WriteTaskStatsResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteTaskStatsResponse writes the task stats to response writer.", "docstring_tokens": ["WriteTaskStatsResponse", "writes", "the", "task", "stats", "to", "response", "writer", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/v2/task_container_stats_handler.go#L64-L79", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/v2/task_container_stats_handler.go", "func_name": "WriteContainerStatsResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteContainerStatsResponse writes the container stats to response writer.", "docstring_tokens": ["WriteContainerStatsResponse", "writes", "the", "container", "stats", "to", "response", "writer", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/v2/task_container_stats_handler.go#L82-L95", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/v1/response.go", "func_name": "NewTaskResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTaskResponse creates a TaskResponse for a task.", "docstring_tokens": ["NewTaskResponse", "creates", "a", "TaskResponse", "for", "a", "task", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/v1/response.go#L73-L100", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/v1/response.go", "func_name": "NewContainerResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewContainerResponse creates ContainerResponse for a container.", "docstring_tokens": ["NewContainerResponse", "creates", "ContainerResponse", "for", "a", "container", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/v1/response.go#L103-L124", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/v1/response.go", "func_name": "NewPortBindingsResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPortBindingsResponse creates PortResponse for a container.", "docstring_tokens": ["NewPortBindingsResponse", "creates", "PortResponse", "for", "a", "container", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/v1/response.go#L127-L154", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/v1/response.go", "func_name": "NewVolumesResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewVolumesResponse creates VolumeResponse for a container", "docstring_tokens": ["NewVolumesResponse", "creates", "VolumeResponse", "for", "a", "container"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/v1/response.go#L157-L173", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/v1/response.go", "func_name": "NewTasksResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTasksResponse creates TasksResponse for all the tasks.", "docstring_tokens": ["NewTasksResponse", "creates", "TasksResponse", "for", "all", "the", "tasks", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/v1/response.go#L176-L185", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/tcs/model/ecstcs/types.go", "func_name": "NewPublishMetricsRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPublishMetricsRequest creates a PublishMetricsRequest object.", "docstring_tokens": ["NewPublishMetricsRequest", "creates", "a", "PublishMetricsRequest", "object", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/tcs/model/ecstcs/types.go#L23-L29", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/tcs/model/ecstcs/types.go", "func_name": "NewPublishHealthMetricsRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPublishHealthMetricsRequest creates a PublishHealthRequest", "docstring_tokens": ["NewPublishHealthMetricsRequest", "creates", "a", "PublishHealthRequest"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/tcs/model/ecstcs/types.go#L32-L38", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerapi/docker_events_buffer.go", "func_name": "StartListening", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StartListening starts reading from the input channel and writes to the buffer\n// When context is cancelled, stop listening", "docstring_tokens": ["StartListening", "starts", "reading", "from", "the", "input", "channel", "and", "writes", "to", "the", "buffer", "When", "context", "is", "cancelled", "stop", "listening"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerapi/docker_events_buffer.go#L56-L70", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerapi/docker_events_buffer.go", "func_name": "CopyEvents", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CopyEvents copies the event into the buffer", "docstring_tokens": ["CopyEvents", "copies", "the", "event", "into", "the", "buffer"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerapi/docker_events_buffer.go#L73-L95", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/dockerclient/dockerapi/docker_events_buffer.go", "func_name": "Consume", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Consume reads the buffer and write to a listener channel", "docstring_tokens": ["Consume", "reads", "the", "buffer", "and", "write", "to", "a", "listener", "channel"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/dockerclient/dockerapi/docker_events_buffer.go#L98-L117", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/handlers/v3/container_stats_handler.go", "func_name": "ContainerStatsHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerStatsHandler returns the handler method for handling container stats requests.", "docstring_tokens": ["ContainerStatsHandler", "returns", "the", "handler", "method", "for", "handling", "container", "stats", "requests", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/handlers/v3/container_stats_handler.go#L32-L55", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/metrics/metrics_factory.go", "func_name": "NewMetricsClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// A factory method that enables various MetricsClients to be created.", "docstring_tokens": ["A", "factory", "method", "that", "enables", "various", "MetricsClients", "to", "be", "created", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/metrics/metrics_factory.go#L32-L46", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecr/mocks/ecr_mocks.go", "func_name": "NewMockECRSDK", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockECRSDK creates a new mock instance", "docstring_tokens": ["NewMockECRSDK", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecr/mocks/ecr_mocks.go#L41-L45", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecr/mocks/ecr_mocks.go", "func_name": "NewMockECRFactory", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockECRFactory creates a new mock instance", "docstring_tokens": ["NewMockECRFactory", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecr/mocks/ecr_mocks.go#L77-L81", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecr/mocks/ecr_mocks.go", "func_name": "GetClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetClient indicates an expected call of GetClient", "docstring_tokens": ["GetClient", "indicates", "an", "expected", "call", "of", "GetClient"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecr/mocks/ecr_mocks.go#L97-L99", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecr/mocks/ecr_mocks.go", "func_name": "NewMockECRClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockECRClient creates a new mock instance", "docstring_tokens": ["NewMockECRClient", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecr/mocks/ecr_mocks.go#L113-L117", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/logger/audit/entry_types.go", "func_name": "GetCredentialsEventType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCredentialsEventType is the type for a GetCredentials request", "docstring_tokens": ["GetCredentialsEventType", "is", "the", "type", "for", "a", "GetCredentials", "request"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/logger/audit/entry_types.go#L60-L69", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/gpu/mocks/gpu_manager_mocks.go", "func_name": "NewMockGPUManager", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockGPUManager creates a new mock instance", "docstring_tokens": ["NewMockGPUManager", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/gpu/mocks/gpu_manager_mocks.go#L39-L43", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/gpu/mocks/gpu_manager_mocks.go", "func_name": "GetDevices", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDevices mocks base method", "docstring_tokens": ["GetDevices", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/gpu/mocks/gpu_manager_mocks.go#L51-L55", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/gpu/mocks/gpu_manager_mocks.go", "func_name": "GetGPUIDsUnsafe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetGPUIDsUnsafe mocks base method", "docstring_tokens": ["GetGPUIDsUnsafe", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/gpu/mocks/gpu_manager_mocks.go#L75-L79", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/gpu/mocks/gpu_manager_mocks.go", "func_name": "SetDevices", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetDevices indicates an expected call of SetDevices", "docstring_tokens": ["SetDevices", "indicates", "an", "expected", "call", "of", "SetDevices"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/gpu/mocks/gpu_manager_mocks.go#L116-L118", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/gpu/mocks/gpu_manager_mocks.go", "func_name": "SetDriverVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetDriverVersion mocks base method", "docstring_tokens": ["SetDriverVersion", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/gpu/mocks/gpu_manager_mocks.go#L121-L123", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/gpu/mocks/gpu_manager_mocks.go", "func_name": "SetDriverVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetDriverVersion indicates an expected call of SetDriverVersion", "docstring_tokens": ["SetDriverVersion", "indicates", "an", "expected", "call", "of", "SetDriverVersion"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/gpu/mocks/gpu_manager_mocks.go#L126-L128", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/gpu/mocks/gpu_manager_mocks.go", "func_name": "SetGPUIDs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetGPUIDs mocks base method", "docstring_tokens": ["SetGPUIDs", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/gpu/mocks/gpu_manager_mocks.go#L131-L133", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/gpu/mocks/gpu_manager_mocks.go", "func_name": "SetRuntimeVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetRuntimeVersion mocks base method", "docstring_tokens": ["SetRuntimeVersion", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/gpu/mocks/gpu_manager_mocks.go#L141-L143", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/httpclient/mock/httpclient.go", "func_name": "NewMockRoundTripper", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockRoundTripper creates a new mock instance", "docstring_tokens": ["NewMockRoundTripper", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/httpclient/mock/httpclient.go#L39-L43", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/httpclient/mock/httpclient.go", "func_name": "RoundTrip", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RoundTrip mocks base method", "docstring_tokens": ["RoundTrip", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/httpclient/mock/httpclient.go#L51-L56", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/httpclient/mock/httpclient.go", "func_name": "RoundTrip", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RoundTrip indicates an expected call of RoundTrip", "docstring_tokens": ["RoundTrip", "indicates", "an", "expected", "call", "of", "RoundTrip"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/httpclient/mock/httpclient.go#L59-L61", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eni/netlinkwrapper/mocks/mock_netlinkwrapper_linux.go", "func_name": "NewMockNetLink", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockNetLink creates a new mock instance", "docstring_tokens": ["NewMockNetLink", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eni/netlinkwrapper/mocks/mock_netlinkwrapper_linux.go#L39-L43", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eni/netlinkwrapper/mocks/mock_netlinkwrapper_linux.go", "func_name": "LinkByName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LinkByName mocks base method", "docstring_tokens": ["LinkByName", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eni/netlinkwrapper/mocks/mock_netlinkwrapper_linux.go#L51-L56", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eni/netlinkwrapper/mocks/mock_netlinkwrapper_linux.go", "func_name": "LinkByName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LinkByName indicates an expected call of LinkByName", "docstring_tokens": ["LinkByName", "indicates", "an", "expected", "call", "of", "LinkByName"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eni/netlinkwrapper/mocks/mock_netlinkwrapper_linux.go#L59-L61", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eni/netlinkwrapper/mocks/mock_netlinkwrapper_linux.go", "func_name": "LinkList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LinkList mocks base method", "docstring_tokens": ["LinkList", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eni/netlinkwrapper/mocks/mock_netlinkwrapper_linux.go#L64-L69", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/eni/netlinkwrapper/mocks/mock_netlinkwrapper_linux.go", "func_name": "LinkList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LinkList indicates an expected call of LinkList", "docstring_tokens": ["LinkList", "indicates", "an", "expected", "call", "of", "LinkList"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/eni/netlinkwrapper/mocks/mock_netlinkwrapper_linux.go#L72-L74", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecscni/mocks_libcni/libcni_mocks.go", "func_name": "NewMockCNI", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMockCNI creates a new mock instance", "docstring_tokens": ["NewMockCNI", "creates", "a", "new", "mock", "instance"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecscni/mocks_libcni/libcni_mocks.go#L40-L44", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecscni/mocks_libcni/libcni_mocks.go", "func_name": "AddNetwork", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddNetwork mocks base method", "docstring_tokens": ["AddNetwork", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecscni/mocks_libcni/libcni_mocks.go#L52-L57", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecscni/mocks_libcni/libcni_mocks.go", "func_name": "AddNetworkList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddNetworkList mocks base method", "docstring_tokens": ["AddNetworkList", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecscni/mocks_libcni/libcni_mocks.go#L65-L70", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecscni/mocks_libcni/libcni_mocks.go", "func_name": "DelNetwork", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DelNetwork mocks base method", "docstring_tokens": ["DelNetwork", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecscni/mocks_libcni/libcni_mocks.go#L78-L82", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecscni/mocks_libcni/libcni_mocks.go", "func_name": "DelNetwork", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DelNetwork indicates an expected call of DelNetwork", "docstring_tokens": ["DelNetwork", "indicates", "an", "expected", "call", "of", "DelNetwork"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecscni/mocks_libcni/libcni_mocks.go#L85-L87", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/ecscni/mocks_libcni/libcni_mocks.go", "func_name": "DelNetworkList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DelNetworkList mocks base method", "docstring_tokens": ["DelNetworkList", "mocks", "base", "method"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/ecscni/mocks_libcni/libcni_mocks.go#L90-L94", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/async/lru_cache.go", "func_name": "NewLRUCache", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Creates an LRUCache with maximum size, ttl for items.", "docstring_tokens": ["Creates", "an", "LRUCache", "with", "maximum", "size", "ttl", "for", "items", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/async/lru_cache.go#L32-L39", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/async/lru_cache.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get returns the value associated with the key", "docstring_tokens": ["Get", "returns", "the", "value", "associated", "with", "the", "key"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/async/lru_cache.go#L57-L75", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/async/lru_cache.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set sets the key-value pair in the cache", "docstring_tokens": ["Set", "sets", "the", "key", "-", "value", "pair", "in", "the", "cache"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/async/lru_cache.go#L78-L89", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/async/lru_cache.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete removes the entry associated with the key from cache", "docstring_tokens": ["Delete", "removes", "the", "entry", "associated", "with", "the", "key", "from", "cache"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/async/lru_cache.go#L92-L98", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/eni/eniattachment.go", "func_name": "StartTimer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StartTimer starts the ack timer to record the expiration of ENI attachment", "docstring_tokens": ["StartTimer", "starts", "the", "ack", "timer", "to", "record", "the", "expiration", "of", "ENI", "attachment"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/eni/eniattachment.go#L50-L67", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/eni/eniattachment.go", "func_name": "IsSent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsSent checks if the eni attached status has been sent", "docstring_tokens": ["IsSent", "checks", "if", "the", "eni", "attached", "status", "has", "been", "sent"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/eni/eniattachment.go#L70-L75", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/eni/eniattachment.go", "func_name": "SetSentStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetSentStatus marks the eni attached status has been sent", "docstring_tokens": ["SetSentStatus", "marks", "the", "eni", "attached", "status", "has", "been", "sent"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/eni/eniattachment.go#L78-L83", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/eni/eniattachment.go", "func_name": "StopAckTimer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StopAckTimer stops the ack timer set on the ENI attachment", "docstring_tokens": ["StopAckTimer", "stops", "the", "ack", "timer", "set", "on", "the", "ENI", "attachment"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/eni/eniattachment.go#L86-L91", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/eni/eniattachment.go", "func_name": "HasExpired", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasExpired returns true if the ENI attachment object has exceeded the\n// threshold for notifying the backend of the attachment", "docstring_tokens": ["HasExpired", "returns", "true", "if", "the", "ENI", "attachment", "object", "has", "exceeded", "the", "threshold", "for", "notifying", "the", "backend", "of", "the", "attachment"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/eni/eniattachment.go#L95-L100", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/eni/eniattachment.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns a string representation of the ENI Attachment", "docstring_tokens": ["String", "returns", "a", "string", "representation", "of", "the", "ENI", "Attachment"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/eni/eniattachment.go#L103-L108", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/api/eni/eniattachment.go", "func_name": "stringUnsafe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// stringUnsafe returns a string representation of the ENI Attachment", "docstring_tokens": ["stringUnsafe", "returns", "a", "string", "representation", "of", "the", "ENI", "Attachment"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/api/eni/eniattachment.go#L111-L115", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/tcs/handler/handler.go", "func_name": "StartMetricsSession", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StartMetricsSession starts a metric session. It initializes the stats engine\n// and invokes StartSession.", "docstring_tokens": ["StartMetricsSession", "starts", "a", "metric", "session", ".", "It", "initializes", "the", "stats", "engine", "and", "invokes", "StartSession", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/tcs/handler/handler.go#L49-L71", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/tcs/handler/handler.go", "func_name": "StartSession", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StartSession creates a session with the backend and handles requests\n// using the passed in arguments.\n// The engine is expected to initialized and gathering container metrics by\n// the time the websocket client starts using it.", "docstring_tokens": ["StartSession", "creates", "a", "session", "with", "the", "backend", "and", "handles", "requests", "using", "the", "passed", "in", "arguments", ".", "The", "engine", "is", "expected", "to", "initialized", "and", "gathering", "container", "metrics", "by", "the", "time", "the", "websocket", "client", "starts", "using", "it", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/tcs/handler/handler.go#L77-L89", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/tcs/handler/handler.go", "func_name": "heartbeatHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// heartbeatHandler resets the heartbeat timer when HeartbeatMessage message is received from tcs.", "docstring_tokens": ["heartbeatHandler", "resets", "the", "heartbeat", "timer", "when", "HeartbeatMessage", "message", "is", "received", "from", "tcs", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/tcs/handler/handler.go#L144-L149", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/tcs/handler/handler.go", "func_name": "ackPublishMetricHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ackPublishMetricHandler consumes the ack message from the backend. THe backend sends\n// the ack each time it processes a metric message.", "docstring_tokens": ["ackPublishMetricHandler", "consumes", "the", "ack", "message", "from", "the", "backend", ".", "THe", "backend", "sends", "the", "ack", "each", "time", "it", "processes", "a", "metric", "message", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/tcs/handler/handler.go#L153-L158", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/tcs/handler/handler.go", "func_name": "ackPublishHealthMetricHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ackPublishHealthMetricHandler consumes the ack message from backend. The backend sends\n// the ack each time it processes a health message", "docstring_tokens": ["ackPublishHealthMetricHandler", "consumes", "the", "ack", "message", "from", "backend", ".", "The", "backend", "sends", "the", "ack", "each", "time", "it", "processes", "a", "health", "message"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/tcs/handler/handler.go#L162-L167", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/tcs/handler/handler.go", "func_name": "anyMessageHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// anyMessageHandler handles any server message. Any server message means the\n// connection is active", "docstring_tokens": ["anyMessageHandler", "handles", "any", "server", "message", ".", "Any", "server", "message", "means", "the", "connection", "is", "active"], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/tcs/handler/handler.go#L171-L179", "partition": "valid"} +{"repo": "aws/amazon-ecs-agent", "path": "agent/tcs/handler/handler.go", "func_name": "formatURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// formatURL returns formatted url for tcs endpoint.", "docstring_tokens": ["formatURL", "returns", "formatted", "url", "for", "tcs", "endpoint", "."], "sha": "aabe65ee15a013a6bc594da52b94d817419ee74a", "url": "https://github.com/aws/amazon-ecs-agent/blob/aabe65ee15a013a6bc594da52b94d817419ee74a/agent/tcs/handler/handler.go#L182-L191", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/stackswitcher_since_3_10.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkStackSwitcher.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkStackSwitcher", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/stackswitcher_since_3_10.go#L38-L44", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/combo_box.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkComboBox.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkComboBox", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/combo_box.go#L38-L44", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/combo_box.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkComboBoxText.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkComboBoxText", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/combo_box.go#L175-L181", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/app_chooser.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkAppChooser.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkAppChooser", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/app_chooser.go#L46-L52", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/app_chooser.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkAppChooserWidget.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkAppChooserWidget", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/app_chooser.go#L197-L204", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gdk/gdk_pixbuf_format.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GdkPixbuf.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GdkPixbuf", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gdk/gdk_pixbuf_format.go#L17-L23", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk_deprecated_since_3_14.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkAlignment.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkAlignment", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk_deprecated_since_3_14.go#L206-L212", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk_deprecated_since_3_14.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkMisc.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkMisc", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk_deprecated_since_3_14.go#L447-L453", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/application_window.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkApplicationWindow.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkApplicationWindow", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/application_window.go#L29-L35", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/gvariant.go", "func_name": "TypeString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TypeString returns the g variant type string for this variant.", "docstring_tokens": ["TypeString", "returns", "the", "g", "variant", "type", "string", "for", "this", "variant", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/gvariant.go#L71-L74", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/gvariant.go", "func_name": "GetString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetString returns the string value of the variant.", "docstring_tokens": ["GetString", "returns", "the", "string", "value", "of", "the", "variant", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/gvariant.go#L94-L99", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/gvariant.go", "func_name": "GetStrv", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetStrv returns a slice of strings from this variant. It wraps\n// g_variant_get_strv, but returns copies of the strings instead.", "docstring_tokens": ["GetStrv", "returns", "a", "slice", "of", "strings", "from", "this", "variant", ".", "It", "wraps", "g_variant_get_strv", "but", "returns", "copies", "of", "the", "strings", "instead", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/gvariant.go#L103-L116", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/gvariant.go", "func_name": "IsType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsType returns true if the variant's type matches t.", "docstring_tokens": ["IsType", "returns", "true", "if", "the", "variant", "s", "type", "matches", "t", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/gvariant.go#L151-L153", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gdk/gdk_since_3_8.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GdkFrameClock.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GdkFrameClock", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gdk/gdk_since_3_8.go#L76-L82", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gdk/gdk_since_3_8.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GdkFrameTimings.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GdkFrameTimings", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gdk/gdk_since_3_8.go#L168-L174", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gdk/gdk_since_3_22.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GdkMonitor.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GdkMonitor", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gdk/gdk_since_3_22.go#L61-L67", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gdk/screen.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GdkScreen.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GdkScreen", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gdk/screen.go#L22-L28", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/gvariantbuilder.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GVariantBuilder.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GVariantBuilder", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/gvariantbuilder.go#L41-L47", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "cairo/status.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns a readable status messsage usable in texts.", "docstring_tokens": ["String", "returns", "a", "readable", "status", "messsage", "usable", "in", "texts", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/cairo/status.go#L111-L116", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "cairo/status.go", "func_name": "ToError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToError returns the error for the status. Returns nil if success.", "docstring_tokens": ["ToError", "returns", "the", "error", "for", "the", "status", ".", "Returns", "nil", "if", "success", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/cairo/status.go#L119-L124", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/level_bar.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkLevelBar.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkLevelBar", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/level_bar.go#L46-L52", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/accel.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkAccelGroup.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkAccelGroup", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/accel.go#L81-L87", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/accel.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkAccelMap.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkAccelMap", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/accel.go#L207-L213", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/list.go", "func_name": "dataRaw", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// dataRaw is a wrapper around the data struct field", "docstring_tokens": ["dataRaw", "is", "a", "wrapper", "around", "the", "data", "struct", "field"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/list.go#L126-L128", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "cairo/canvas.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying cairo_t.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "cairo_t", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/cairo/canvas.go#L20-L25", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/text_view.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkTextView.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkTextView", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/text_view.go#L37-L43", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/gvarianttype.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns a copy of this VariantType's type string.", "docstring_tokens": ["String", "returns", "a", "copy", "of", "this", "VariantType", "s", "type", "string", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/gvarianttype.go#L26-L30", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/application.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkApplication.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkApplication", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/application.go#L36-L41", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/menu_shell.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkMenuShell.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkMenuShell", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/menu_shell.go#L25-L31", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/style.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkStyleContext.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkStyleContext", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/style.go#L36-L42", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "cairo/matrix.go", "func_name": "NewMatrix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMatrix creates a new identiy matrix", "docstring_tokens": ["NewMatrix", "creates", "a", "new", "identiy", "matrix"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/cairo/matrix.go#L20-L29", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "cairo/matrix.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Native returns native c pointer to a matrix", "docstring_tokens": ["Native", "returns", "native", "c", "pointer", "to", "a", "matrix"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/cairo/matrix.go#L32-L34", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "cairo/matrix.go", "func_name": "InitTranslate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InitTranslate initializes a matrix with the given translation", "docstring_tokens": ["InitTranslate", "initializes", "a", "matrix", "with", "the", "given", "translation"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/cairo/matrix.go#L47-L49", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "cairo/matrix.go", "func_name": "InitScale", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InitScale initializes a matrix with the give scale", "docstring_tokens": ["InitScale", "initializes", "a", "matrix", "with", "the", "give", "scale"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/cairo/matrix.go#L52-L54", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "cairo/matrix.go", "func_name": "InitRotate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InitRotate initializes a matrix with the given rotation", "docstring_tokens": ["InitRotate", "initializes", "a", "matrix", "with", "the", "given", "rotation"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/cairo/matrix.go#L57-L59", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "cairo/matrix.go", "func_name": "Translate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Translate translates a matrix by the given amount", "docstring_tokens": ["Translate", "translates", "a", "matrix", "by", "the", "given", "amount"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/cairo/matrix.go#L62-L64", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "cairo/matrix.go", "func_name": "Scale", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Scale scales the matrix by the given amounts", "docstring_tokens": ["Scale", "scales", "the", "matrix", "by", "the", "given", "amounts"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/cairo/matrix.go#L67-L69", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "cairo/matrix.go", "func_name": "Rotate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Rotate rotates the matrix by the given amount", "docstring_tokens": ["Rotate", "rotates", "the", "matrix", "by", "the", "given", "amount"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/cairo/matrix.go#L72-L74", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "cairo/matrix.go", "func_name": "Multiply", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Multiply multiplies the matrix by another matrix", "docstring_tokens": ["Multiply", "multiplies", "the", "matrix", "by", "another", "matrix"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/cairo/matrix.go#L82-L84", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/print.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkPaperSize.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkPaperSize", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/print.go#L428-L433", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gdk/gdk_since_3_16.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GdkGLContext.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GdkGLContext", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gdk/gdk_since_3_16.go#L53-L59", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/button_box.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkButtonBox.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkButtonBox", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/button_box.go#L34-L40", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/text_iter.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkTextIter.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkTextIter", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/text_iter.go#L23-L28", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/gmain_context.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GMainContext.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GMainContext", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/gmain_context.go#L12-L17", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/tree_view_column.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkTreeViewColumn.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkTreeViewColumn", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/tree_view_column.go#L25-L31", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/gvariantiter.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GVariantIter.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GVariantIter", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/gvariantiter.go#L41-L47", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/slist.go", "func_name": "Next", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Next is a wrapper around the next struct field", "docstring_tokens": ["Next", "is", "a", "wrapper", "around", "the", "next", "struct", "field"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/slist.go#L56-L63", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/gactionmap.go", "func_name": "LookupAction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LookupAction is a wrapper around g_action_map_lookup_action", "docstring_tokens": ["LookupAction", "is", "a", "wrapper", "around", "g_action_map_lookup_action"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/gactionmap.go#L50-L56", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/gactionmap.go", "func_name": "AddAction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddAction is a wrapper around g_action_map_add_action", "docstring_tokens": ["AddAction", "is", "a", "wrapper", "around", "g_action_map_add_action"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/gactionmap.go#L59-L61", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/gactionmap.go", "func_name": "RemoveAction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveAction is a wrapper around g_action_map_remove_action", "docstring_tokens": ["RemoveAction", "is", "a", "wrapper", "around", "g_action_map_remove_action"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/gactionmap.go#L64-L66", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "cairo/surface.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying cairo_surface_t.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "cairo_surface_t", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/cairo/surface.go#L71-L76", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "cairo/surface.go", "func_name": "NewSurface", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSurface creates a gotk3 cairo Surface from a pointer to a\n// C cairo_surface_t. This is primarily designed for use with other\n// gotk3 packages and should be avoided by applications.", "docstring_tokens": ["NewSurface", "creates", "a", "gotk3", "cairo", "Surface", "from", "a", "pointer", "to", "a", "C", "cairo_surface_t", ".", "This", "is", "primarily", "designed", "for", "use", "with", "other", "gotk3", "packages", "and", "should", "be", "avoided", "by", "applications", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/cairo/surface.go#L95-L102", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/aboutdialog.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkAboutDialog.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkAboutDialog", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/aboutdialog.go#L33-L39", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "pango/pango-font.go", "func_name": "AddFont", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddFont adds the font to the configuration.", "docstring_tokens": ["AddFont", "adds", "the", "font", "to", "the", "configuration", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/pango/pango-font.go#L43-L46", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/label.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkLabel.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkLabel", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/label.go#L27-L33", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/gvariantdict.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GVariantDict.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GVariantDict", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/gvariantdict.go#L41-L47", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/actionable.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkActionable.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkActionable", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/actionable.go#L46-L52", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk_since_3_10.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkHeaderBar.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkHeaderBar", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk_since_3_10.go#L134-L140", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk_since_3_10.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkListBox.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkListBox", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk_since_3_10.go#L247-L253", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk_since_3_10.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkListBoxRow.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkListBoxRow", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk_since_3_10.go#L416-L422", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk_since_3_10.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkRevealer.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkRevealer", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk_since_3_10.go#L477-L483", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk_since_3_10.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkSearchBar.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkSearchBar", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk_since_3_10.go#L554-L560", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/gbinding.go", "func_name": "BindProperty", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Creates a binding between source property on source and target property on\n// target . Whenever the source property is changed the target_property is\n// updated using the same value.", "docstring_tokens": ["Creates", "a", "binding", "between", "source", "property", "on", "source", "and", "target", "property", "on", "target", ".", "Whenever", "the", "source", "property", "is", "changed", "the", "target_property", "is", "updated", "using", "the", "same", "value", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/gbinding.go#L38-L54", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/gbinding.go", "func_name": "GetSource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Retrieves the GObject instance used as the source of the binding", "docstring_tokens": ["Retrieves", "the", "GObject", "instance", "used", "as", "the", "source", "of", "the", "binding"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/gbinding.go#L63-L69", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/gbinding.go", "func_name": "GetTarget", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Retrieves the GObject instance used as the target of the binding.", "docstring_tokens": ["Retrieves", "the", "GObject", "instance", "used", "as", "the", "target", "of", "the", "binding", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/gbinding.go#L79-L85", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/gbinding.go", "func_name": "GetFlags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Retrieves the flags passed when constructing the GBinding.", "docstring_tokens": ["Retrieves", "the", "flags", "passed", "when", "constructing", "the", "GBinding", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/gbinding.go#L95-L98", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/font_chooser.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkFontChooser.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkFontChooser", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/font_chooser.go#L43-L49", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/font_chooser.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkFontButton.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkFontButton", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/font_chooser.go#L108-L114", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/gactiongroup.go", "func_name": "ChangeActionState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ChangeActionState is a wrapper around g_action_group_change_action_state", "docstring_tokens": ["ChangeActionState", "is", "a", "wrapper", "around", "g_action_group_change_action_state"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/gactiongroup.go#L106-L108", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/gactiongroup.go", "func_name": "Activate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Activate is a wrapper around g_action_group_activate_action", "docstring_tokens": ["Activate", "is", "a", "wrapper", "around", "g_action_group_activate_action"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/gactiongroup.go#L111-L113", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/widget.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkWidget.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkWidget", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/widget.go#L48-L54", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/widget.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Native returns a pointer to the underlying GtkAllocation.", "docstring_tokens": ["Native", "returns", "a", "pointer", "to", "the", "underlying", "GtkAllocation", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/widget.go#L236-L238", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/glarea.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkGLArea.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkGLArea", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/glarea.go#L56-L62", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/tree_view.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkTreeView.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkTreeView", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/tree_view.go#L27-L33", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/tree_view.go", "func_name": "SetSearchEqualSubstringMatch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetSearchEqualSubstringMatch sets TreeView to search by substring match.", "docstring_tokens": ["SetSearchEqualSubstringMatch", "sets", "TreeView", "to", "search", "by", "substring", "match", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/tree_view.go#L346-L352", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/glib.go", "func_name": "goMarshal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// goMarshal is called by the GLib runtime when a closure needs to be invoked.\n// The closure will be invoked with as many arguments as it can take, from 0 to\n// the full amount provided by the call. If the closure asks for more parameters\n// than there are to give, a warning is printed to stderr and the closure is\n// not run.\n//\n//export goMarshal", "docstring_tokens": ["goMarshal", "is", "called", "by", "the", "GLib", "runtime", "when", "a", "closure", "needs", "to", "be", "invoked", ".", "The", "closure", "will", "be", "invoked", "with", "as", "many", "arguments", "as", "it", "can", "take", "from", "0", "to", "the", "full", "amount", "provided", "by", "the", "call", ".", "If", "the", "closure", "asks", "for", "more", "parameters", "than", "there", "are", "to", "give", "a", "warning", "is", "printed", "to", "stderr", "and", "the", "closure", "is", "not", "run", ".", "export", "goMarshal"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/glib.go#L162-L242", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/glib.go", "func_name": "gValueSlice", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// gValueSlice converts a C array of GValues to a Go slice.", "docstring_tokens": ["gValueSlice", "converts", "a", "C", "array", "of", "GValues", "to", "a", "Go", "slice", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/glib.go#L245-L251", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/glib.go", "func_name": "IdleAdd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IdleAdd adds an idle source to the default main event loop\n// context. After running once, the source func will be removed\n// from the main event loop, unless f returns a single bool true.\n//\n// This function will cause a panic when f eventually runs if the\n// types of args do not match those of f.", "docstring_tokens": ["IdleAdd", "adds", "an", "idle", "source", "to", "the", "default", "main", "event", "loop", "context", ".", "After", "running", "once", "the", "source", "func", "will", "be", "removed", "from", "the", "main", "event", "loop", "unless", "f", "returns", "a", "single", "bool", "true", ".", "This", "function", "will", "cause", "a", "panic", "when", "f", "eventually", "runs", "if", "the", "types", "of", "args", "do", "not", "match", "those", "of", "f", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/glib.go#L265-L278", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/glib.go", "func_name": "TimeoutAdd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TimeoutAdd adds an timeout source to the default main event loop\n// context. After running once, the source func will be removed\n// from the main event loop, unless f returns a single bool true.\n//\n// This function will cause a panic when f eventually runs if the\n// types of args do not match those of f.\n// timeout is in milliseconds", "docstring_tokens": ["TimeoutAdd", "adds", "an", "timeout", "source", "to", "the", "default", "main", "event", "loop", "context", ".", "After", "running", "once", "the", "source", "func", "will", "be", "removed", "from", "the", "main", "event", "loop", "unless", "f", "returns", "a", "single", "bool", "true", ".", "This", "function", "will", "cause", "a", "panic", "when", "f", "eventually", "runs", "if", "the", "types", "of", "args", "do", "not", "match", "those", "of", "f", ".", "timeout", "is", "in", "milliseconds"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/glib.go#L287-L301", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/glib.go", "func_name": "sourceAttach", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// sourceAttach attaches a source to the default main loop context.", "docstring_tokens": ["sourceAttach", "attaches", "a", "source", "to", "the", "default", "main", "loop", "context", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/glib.go#L304-L331", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/glib.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GObject.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GObject", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/glib.go#L412-L418", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/glib.go", "func_name": "Take", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Take wraps a unsafe.Pointer as a glib.Object, taking ownership of it.\n// This function is exported for visibility in other gotk3 packages and\n// is not meant to be used by applications.", "docstring_tokens": ["Take", "wraps", "a", "unsafe", ".", "Pointer", "as", "a", "glib", ".", "Object", "taking", "ownership", "of", "it", ".", "This", "function", "is", "exported", "for", "visibility", "in", "other", "gotk3", "packages", "and", "is", "not", "meant", "to", "be", "used", "by", "applications", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/glib.go#L443-L454", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/glib.go", "func_name": "GetPropertyType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPropertyType returns the Type of a property of the underlying GObject.\n// If the property is missing it will return TYPE_INVALID and an error.", "docstring_tokens": ["GetPropertyType", "returns", "the", "Type", "of", "a", "property", "of", "the", "underlying", "GObject", ".", "If", "the", "property", "is", "missing", "it", "will", "return", "TYPE_INVALID", "and", "an", "error", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/glib.go#L615-L624", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/glib.go", "func_name": "Native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Native returns a pointer to the underlying GObject. This is implemented\n// here rather than calling Native on the embedded Object to prevent a nil\n// pointer dereference.", "docstring_tokens": ["Native", "returns", "a", "pointer", "to", "the", "underlying", "GObject", ".", "This", "is", "implemented", "here", "rather", "than", "calling", "Native", "on", "the", "embedded", "Object", "to", "prevent", "a", "nil", "pointer", "dereference", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/glib.go#L841-L846", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/glib.go", "func_name": "InitI18n", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InitI18n initializes the i18n subsystem.", "docstring_tokens": ["InitI18n", "initializes", "the", "i18n", "subsystem", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/glib.go#L1399-L1407", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/glib.go", "func_name": "Local", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Local localizes a string using gettext", "docstring_tokens": ["Local", "localizes", "a", "string", "using", "gettext"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/glib.go#L1410-L1415", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/shortcutswindow_since_3_22.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkShortcutsSection.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkShortcutsSection", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/shortcutswindow_since_3_22.go#L68-L74", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/shortcutswindow_since_3_22.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkShortcutsGroup.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkShortcutsGroup", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/shortcutswindow_since_3_22.go#L96-L102", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/shortcutswindow_since_3_22.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkShortcutsShortcut.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkShortcutsShortcut", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/shortcutswindow_since_3_22.go#L124-L130", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/gsimpleactiongroup.go", "func_name": "SimpleActionGroupNew", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SimpleActionGroupNew is a wrapper around g_simple_action_group_new", "docstring_tokens": ["SimpleActionGroupNew", "is", "a", "wrapper", "around", "g_simple_action_group_new"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/gsimpleactiongroup.go#L52-L58", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/gaction.go", "func_name": "ActionNameIsValid", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ActionNameIsValid is a wrapper around g_action_name_is_valid", "docstring_tokens": ["ActionNameIsValid", "is", "a", "wrapper", "around", "g_action_name_is_valid"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/gaction.go#L60-L63", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/gaction.go", "func_name": "GetName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetName is a wrapper around g_action_get_name", "docstring_tokens": ["GetName", "is", "a", "wrapper", "around", "g_action_get_name"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/gaction.go#L66-L68", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/gaction.go", "func_name": "GetState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetState is a wrapper around g_action_get_state", "docstring_tokens": ["GetState", "is", "a", "wrapper", "around", "g_action_get_state"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/gaction.go#L76-L82", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/gaction.go", "func_name": "GetStateHint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetStateHint is a wrapper around g_action_get_state_hint", "docstring_tokens": ["GetStateHint", "is", "a", "wrapper", "around", "g_action_get_state_hint"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/gaction.go#L85-L91", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/gaction.go", "func_name": "GetParameterType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetParameterType is a wrapper around g_action_get_parameter_type", "docstring_tokens": ["GetParameterType", "is", "a", "wrapper", "around", "g_action_get_parameter_type"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/gaction.go#L94-L100", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/gaction.go", "func_name": "GetStateType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetStateType is a wrapper around g_action_get_state_type", "docstring_tokens": ["GetStateType", "is", "a", "wrapper", "around", "g_action_get_state_type"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/gaction.go#L103-L109", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/gaction.go", "func_name": "ChangeState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ChangeState is a wrapper around g_action_change_state", "docstring_tokens": ["ChangeState", "is", "a", "wrapper", "around", "g_action_change_state"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/gaction.go#L112-L114", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/gaction.go", "func_name": "Activate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Activate is a wrapper around g_action_activate", "docstring_tokens": ["Activate", "is", "a", "wrapper", "around", "g_action_activate"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/gaction.go#L117-L119", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/gaction.go", "func_name": "SimpleActionNew", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SimpleActionNew is a wrapper around g_simple_action_new", "docstring_tokens": ["SimpleActionNew", "is", "a", "wrapper", "around", "g_simple_action_new"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/gaction.go#L147-L153", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/gaction.go", "func_name": "SimpleActionNewStateful", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SimpleActionNewStateful is a wrapper around g_simple_action_new_stateful", "docstring_tokens": ["SimpleActionNewStateful", "is", "a", "wrapper", "around", "g_simple_action_new_stateful"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/gaction.go#L156-L162", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/gaction.go", "func_name": "SetEnabled", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetEnabled is a wrapper around g_simple_action_set_enabled", "docstring_tokens": ["SetEnabled", "is", "a", "wrapper", "around", "g_simple_action_set_enabled"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/gaction.go#L165-L167", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/gaction.go", "func_name": "PropertyActionNew", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PropertyActionNew is a wrapper around g_property_action_new", "docstring_tokens": ["PropertyActionNew", "is", "a", "wrapper", "around", "g_property_action_new"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/gaction.go#L209-L215", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkAdjustment.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkAdjustment", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L989-L995", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkAssistant.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkAssistant", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L1117-L1123", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkBin.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkBin", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L1276-L1282", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Native returns a pointer to the underlying GtkColorButton.", "docstring_tokens": ["Native", "returns", "a", "pointer", "to", "the", "underlying", "GtkColorButton", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L1623-L1629", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkCellRenderer.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkCellRenderer", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L1954-L1960", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkCellRendererSpinner.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkCellRendererSpinner", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L1989-L1995", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkCellRendererPixbuf.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkCellRendererPixbuf", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L2027-L2033", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkCellRendererText.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkCellRendererText", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L2065-L2071", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkCellRendererToggle.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkCellRendererToggle", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L2103-L2109", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkCheckButton.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkCheckButton", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L2182-L2188", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkCheckMenuItem.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkCheckMenuItem", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L2246-L2252", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkClipboard.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkClipboard", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L2349-L2355", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "WaitIsTextAvailable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WaitIsTextAvailable is a wrapper around gtk_clipboard_wait_is_text_available", "docstring_tokens": ["WaitIsTextAvailable", "is", "a", "wrapper", "around", "gtk_clipboard_wait_is_text_available"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L2397-L2400", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "WaitForText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WaitForText is a wrapper around gtk_clipboard_wait_for_text", "docstring_tokens": ["WaitForText", "is", "a", "wrapper", "around", "gtk_clipboard_wait_for_text"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L2403-L2410", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "WaitIsRichTextAvailable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WaitIsRichTextAvailable is a wrapper around gtk_clipboard_wait_is_rich_text_available", "docstring_tokens": ["WaitIsRichTextAvailable", "is", "a", "wrapper", "around", "gtk_clipboard_wait_is_rich_text_available"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L2421-L2424", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "WaitIsUrisAvailable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WaitIsUrisAvailable is a wrapper around gtk_clipboard_wait_is_uris_available", "docstring_tokens": ["WaitIsUrisAvailable", "is", "a", "wrapper", "around", "gtk_clipboard_wait_is_uris_available"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L2427-L2430", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "WaitIsImageAvailable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WaitIsImageAvailable is a wrapper around gtk_clipboard_wait_is_image_available", "docstring_tokens": ["WaitIsImageAvailable", "is", "a", "wrapper", "around", "gtk_clipboard_wait_is_image_available"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L2433-L2436", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "SetImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetImage is a wrapper around gtk_clipboard_set_image", "docstring_tokens": ["SetImage", "is", "a", "wrapper", "around", "gtk_clipboard_set_image"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L2439-L2441", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "WaitForImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WaitForImage is a wrapper around gtk_clipboard_wait_for_image", "docstring_tokens": ["WaitForImage", "is", "a", "wrapper", "around", "gtk_clipboard_wait_for_image"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L2444-L2452", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "WaitIsTargetAvailable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WaitIsTargetAvailable is a wrapper around gtk_clipboard_wait_is_target_available", "docstring_tokens": ["WaitIsTargetAvailable", "is", "a", "wrapper", "around", "gtk_clipboard_wait_is_target_available"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L2455-L2458", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "WaitForContents", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WaitForContents is a wrapper around gtk_clipboard_wait_for_contents", "docstring_tokens": ["WaitForContents", "is", "a", "wrapper", "around", "gtk_clipboard_wait_for_contents"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L2461-L2469", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkContainer.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkContainer", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L2481-L2487", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkCssProvider.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkCssProvider", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L2666-L2672", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkDialog.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkDialog", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L2747-L2753", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkEntry.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkEntry", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L3042-L3048", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkEntryBuffer.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkEntryBuffer", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L3526-L3532", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkEntryCompletion.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkEntryCompletion", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L3639-L3645", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkEventBox.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkEventBox", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L3667-L3673", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkExpander.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkExpander", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L3727-L3733", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GObject as a GtkFileChooser.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GObject", "as", "a", "GtkFileChooser", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L3802-L3808", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkFileChooserButton.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkFileChooserButton", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L3985-L3991", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkFileChooserDialog.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkFileChooserDialog", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L4030-L4036", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkFileChooserWidget.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkFileChooserWidget", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L4109-L4115", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GObject as a GtkFileFilter.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GObject", "as", "a", "GtkFileFilter", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L4148-L4154", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkFrame.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkFrame", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L4205-L4211", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkAspectFrame.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkAspectFrame", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L4300-L4306", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkGrid.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkGrid", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L4345-L4351", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkImage.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkImage", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L4515-L4521", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "SetSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Layout.SetSize is a wrapper around gtk_layout_set_size", "docstring_tokens": ["Layout", ".", "SetSize", "is", "a", "wrapper", "around", "gtk_layout_set_size"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L4763-L4765", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "GetSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Layout.GetSize is a wrapper around gtk_layout_get_size", "docstring_tokens": ["Layout", ".", "GetSize", "is", "a", "wrapper", "around", "gtk_layout_get_size"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L4768-L4772", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkLinkButton.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkLinkButton", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L4784-L4790", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkListStore.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkListStore", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L4853-L4859", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkMenuButton.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkMenuButton", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L5112-L5118", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkMenuItem.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkMenuItem", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L5213-L5219", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "SetLabel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sets text on the menu_item label", "docstring_tokens": ["Sets", "text", "on", "the", "menu_item", "label"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L5276-L5280", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "GetLabel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Gets text on the menu_item label", "docstring_tokens": ["Gets", "text", "on", "the", "menu_item", "label"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L5283-L5286", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkMessageDialog.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkMessageDialog", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L5298-L5304", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkNotebook.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkNotebook", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L5386-L5392", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkOffscreenWindow.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkOffscreenWindow", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L5693-L5699", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GObject as a GtkOrientable.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GObject", "as", "a", "GtkOrientable", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L5764-L5770", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkOverlay.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkOverlay", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L5804-L5810", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkPaned.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkPaned", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L5846-L5852", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkProgressBar.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkProgressBar", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L5942-L5948", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkRadioButton.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkRadioButton", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L6036-L6042", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkRadioMenuItem.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkRadioMenuItem", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L6165-L6171", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkRange.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkRange", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L6277-L6283", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkRecentChooser.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkRecentChooser", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L6334-L6340", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkRecentFilter.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkRecentFilter", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L6399-L6405", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkScale.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkScale", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L6477-L6483", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkScrollbar.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkScrollbar", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L6675-L6681", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkScrolledWindow.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkScrolledWindow", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L6712-L6718", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkSearchEntry.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkSearchEntry", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L6796-L6802", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkSelectionData.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkSelectionData", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L6837-L6842", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "GetData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetData is a wrapper around gtk_selection_data_get_data_with_length.\n// It returns a slice of the correct size with the selection's data.", "docstring_tokens": ["GetData", "is", "a", "wrapper", "around", "gtk_selection_data_get_data_with_length", ".", "It", "returns", "a", "slice", "of", "the", "correct", "size", "with", "the", "selection", "s", "data", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L6851-L6859", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "GetData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//fixed GetData directly from ptr", "docstring_tokens": ["fixed", "GetData", "directly", "from", "ptr"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L6862-L6876", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "SetData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//for \"drag-data-get\"", "docstring_tokens": ["for", "drag", "-", "data", "-", "get"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L6879-L6883", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "DragSetIconPixbuf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//for \"drag-begin\" event", "docstring_tokens": ["for", "drag", "-", "begin", "event"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L6890-L6894", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkSeperator.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkSeperator", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L6906-L6912", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkSeparatorMenuItem.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkSeparatorMenuItem", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L6943-L6949", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkSeparatorToolItem.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkSeparatorToolItem", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L6980-L6986", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkSpinButton.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkSpinButton", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L7090-L7096", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkSpinner.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkSpinner", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L7182-L7188", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkStatusbar", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkStatusbar"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L7229-L7235", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkSwitch.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkSwitch", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L7298-L7304", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GObject as a GtkTextTag.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GObject", "as", "a", "GtkTextTag", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L7379-L7385", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GObject as a GtkTextTagTable.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GObject", "as", "a", "GtkTextTagTable", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L7436-L7442", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkTextBuffer.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkTextBuffer", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L7494-L7500", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "SelectRange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SelectRange is a wrapper around gtk_text_buffer_select_range.", "docstring_tokens": ["SelectRange", "is", "a", "wrapper", "around", "gtk_text_buffer_select_range", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L7537-L7539", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkToggleButton.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkToggleButton", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L7700-L7706", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkToolbar.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkToolbar", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L7785-L7791", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkToolButton.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkToolButton", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L7910-L7916", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkToggleToolButton.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkToggleToolButton", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L8016-L8022", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkToolItem.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkToolItem", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L8072-L8078", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkTreeIter.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkTreeIter", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L8264-L8269", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GObject as a GtkTreeModel.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GObject", "as", "a", "GtkTreeModel", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L8309-L8315", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "TreePathFromList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return a TreePath from the GList", "docstring_tokens": ["Return", "a", "TreePath", "from", "the", "GList"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L8594-L8599", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkTreePath.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkTreePath", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L8602-L8607", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "GetIndices", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetIndices is a wrapper around gtk_tree_path_get_indices_with_depth", "docstring_tokens": ["GetIndices", "is", "a", "wrapper", "around", "gtk_tree_path_get_indices_with_depth"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L8619-L8631", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkTreeSelection.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkTreeSelection", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L8662-L8668", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "GetPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPath is a wrapper around gtk_tree_row_reference_get_path.", "docstring_tokens": ["GetPath", "is", "a", "wrapper", "around", "gtk_tree_row_reference_get_path", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L8796-L8804", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "GetModel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetModel is a wrapper around gtk_tree_row_reference_get_path.", "docstring_tokens": ["GetModel", "is", "a", "wrapper", "around", "gtk_tree_row_reference_get_path", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L8807-L8814", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "Valid", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Valid is a wrapper around gtk_tree_row_reference_valid.", "docstring_tokens": ["Valid", "is", "a", "wrapper", "around", "gtk_tree_row_reference_valid", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L8817-L8820", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkTreeStore.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkTreeStore", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L8835-L8841", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/gtk.go", "func_name": "Insert", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Insert is a wrapper around gtk_tree_store_insert", "docstring_tokens": ["Insert", "is", "a", "wrapper", "around", "gtk_tree_store_insert"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/gtk.go#L8890-L8899", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/settings.go", "func_name": "SettingsGetDefault", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Get the global non window specific settings", "docstring_tokens": ["Get", "the", "global", "non", "window", "specific", "settings"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/settings.go#L46-L53", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/text_mark.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkTextMark.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkTextMark", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/text_mark.go#L19-L24", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "cairo/pattern.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying cairo_pattern_t.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "cairo_pattern_t", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/cairo/pattern.go#L62-L67", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/window.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkWindow.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkWindow", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/window.go#L34-L40", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gdk/gdk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns the underlying GdkAtom.", "docstring_tokens": ["native", "returns", "the", "underlying", "GdkAtom", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gdk/gdk.go#L343-L345", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gdk/gdk.go", "func_name": "GdkAtomIntern", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GdkAtomIntern is a wrapper around gdk_atom_intern", "docstring_tokens": ["GdkAtomIntern", "is", "a", "wrapper", "around", "gdk_atom_intern"], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gdk/gdk.go#L354-L359", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gdk/gdk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GdkDevice.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GdkDevice", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gdk/gdk.go#L371-L377", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gdk/gdk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GdkCursor.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GdkCursor", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gdk/gdk.go#L412-L418", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gdk/gdk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GdkDeviceManager.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GdkDeviceManager", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gdk/gdk.go#L441-L447", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gdk/gdk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GdkDisplay.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GdkDisplay", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gdk/gdk.go#L480-L486", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gdk/gdk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GdkDragContext.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GdkDragContext", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gdk/gdk.go#L821-L827", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gdk/gdk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GdkEvent.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GdkEvent", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gdk/gdk.go#L855-L860", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gdk/gdk.go", "func_name": "XRoot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// XRoot returns the x coordinate of the pointer relative to the root of the screen.", "docstring_tokens": ["XRoot", "returns", "the", "x", "coordinate", "of", "the", "pointer", "relative", "to", "the", "root", "of", "the", "screen", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gdk/gdk.go#L924-L927", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gdk/gdk.go", "func_name": "YRoot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// YRoot returns the y coordinate of the pointer relative to the root of the screen.", "docstring_tokens": ["YRoot", "returns", "the", "y", "coordinate", "of", "the", "pointer", "relative", "to", "the", "root", "of", "the", "screen", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gdk/gdk.go#L930-L933", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gdk/gdk.go", "func_name": "SetColors", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetColors sets all colors values in the RGBA.", "docstring_tokens": ["SetColors", "sets", "all", "colors", "values", "in", "the", "RGBA", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gdk/gdk.go#L1780-L1785", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gdk/gdk.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GdkWindow.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GdkWindow", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gdk/gdk.go#L1901-L1907", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/connect.go", "func_name": "ClosureNew", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ClosureNew creates a new GClosure and adds its callback function\n// to the internally-maintained map. It's exported for visibility to other\n// gotk3 packages and shouldn't be used in application code.", "docstring_tokens": ["ClosureNew", "creates", "a", "new", "GClosure", "and", "adds", "its", "callback", "function", "to", "the", "internally", "-", "maintained", "map", ".", "It", "s", "exported", "for", "visibility", "to", "other", "gotk3", "packages", "and", "shouldn", "t", "be", "used", "in", "application", "code", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/connect.go#L78-L104", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/color_chooser.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkColorChooser.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkColorChooser", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/color_chooser.go#L43-L49", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "gtk/color_chooser.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GtkColorChooserButton.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GtkColorChooserButton", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/color_chooser.go#L119-L126", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "glib/gsource.go", "func_name": "native", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// native returns a pointer to the underlying GSource.", "docstring_tokens": ["native", "returns", "a", "pointer", "to", "the", "underlying", "GSource", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/glib/gsource.go#L12-L17", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "cairo/translations.go", "func_name": "Translate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Translate is a wrapper around cairo_translate.", "docstring_tokens": ["Translate", "is", "a", "wrapper", "around", "cairo_translate", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/cairo/translations.go#L9-L11", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "cairo/translations.go", "func_name": "Scale", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Scale is a wrapper around cairo_scale.", "docstring_tokens": ["Scale", "is", "a", "wrapper", "around", "cairo_scale", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/cairo/translations.go#L14-L16", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "cairo/translations.go", "func_name": "Rotate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Rotate is a wrapper around cairo_rotate.", "docstring_tokens": ["Rotate", "is", "a", "wrapper", "around", "cairo_rotate", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/cairo/translations.go#L19-L21", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "cairo/translations.go", "func_name": "Transform", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Transform is a wrapper around cairo_transform.", "docstring_tokens": ["Transform", "is", "a", "wrapper", "around", "cairo_transform", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/cairo/translations.go#L24-L26", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "cairo/translations.go", "func_name": "SetMatrix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetMatrix is a wrapper around cairo_set_matrix.", "docstring_tokens": ["SetMatrix", "is", "a", "wrapper", "around", "cairo_set_matrix", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/cairo/translations.go#L29-L31", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "cairo/translations.go", "func_name": "GetMatrix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMatrix is a wrapper around cairo_get_matrix.", "docstring_tokens": ["GetMatrix", "is", "a", "wrapper", "around", "cairo_get_matrix", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/cairo/translations.go#L34-L45", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "cairo/translations.go", "func_name": "UserToDevice", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UserToDevice is a wrapper around cairo_user_to_device.", "docstring_tokens": ["UserToDevice", "is", "a", "wrapper", "around", "cairo_user_to_device", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/cairo/translations.go#L57-L60", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "cairo/translations.go", "func_name": "UserToDeviceDistance", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UserToDeviceDistance is a wrapper around cairo_user_to_device_distance.", "docstring_tokens": ["UserToDeviceDistance", "is", "a", "wrapper", "around", "cairo_user_to_device_distance", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/cairo/translations.go#L63-L66", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "cairo/translations.go", "func_name": "DeviceToUser", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeviceToUser is a wrapper around cairo_device_to_user.", "docstring_tokens": ["DeviceToUser", "is", "a", "wrapper", "around", "cairo_device_to_user", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/cairo/translations.go#L69-L72", "partition": "valid"} +{"repo": "gotk3/gotk3", "path": "cairo/translations.go", "func_name": "DeviceToUserDistance", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeviceToUserDistance is a wrapper around cairo_device_to_user_distance.", "docstring_tokens": ["DeviceToUserDistance", "is", "a", "wrapper", "around", "cairo_device_to_user_distance", "."], "sha": "c89a2934a82722863fb6782d9245c4e7c3cf25f1", "url": "https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/cairo/translations.go#L75-L78", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/drag/main.go", "func_name": "Draw", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Draw draws the sprite.", "docstring_tokens": ["Draw", "draws", "the", "sprite", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/drag/main.go#L82-L88", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "audio/mp3/decode_notjs.go", "func_name": "Length", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Length returns the size of decoded stream in bytes.", "docstring_tokens": ["Length", "returns", "the", "size", "of", "decoded", "stream", "in", "bytes", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/audio/mp3/decode_notjs.go#L63-L68", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "audio/mp3/decode_notjs.go", "func_name": "Decode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Decode decodes MP3 source and returns a decoded stream.\n//\n// Decode returns error when decoding fails or IO error happens.\n//\n// Decode automatically resamples the stream to fit with the audio context if necessary.\n//\n// Decode takes the ownership of src, and Stream's Close function closes src.", "docstring_tokens": ["Decode", "decodes", "MP3", "source", "and", "returns", "a", "decoded", "stream", ".", "Decode", "returns", "error", "when", "decoding", "fails", "or", "IO", "error", "happens", ".", "Decode", "automatically", "resamples", "the", "stream", "to", "fit", "with", "the", "audio", "context", "if", "necessary", ".", "Decode", "takes", "the", "ownership", "of", "src", "and", "Stream", "s", "Close", "function", "closes", "src", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/audio/mp3/decode_notjs.go#L82-L99", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "input.go", "func_name": "IsMouseButtonPressed", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsMouseButtonPressed returns a boolean indicating whether mouseButton is pressed.\n//\n// IsMouseButtonPressed is concurrent-safe.\n//\n// Note that touch events not longer affect IsMouseButtonPressed's result as of 1.4.0-alpha.\n// Use Touches instead.", "docstring_tokens": ["IsMouseButtonPressed", "returns", "a", "boolean", "indicating", "whether", "mouseButton", "is", "pressed", ".", "IsMouseButtonPressed", "is", "concurrent", "-", "safe", ".", "Note", "that", "touch", "events", "not", "longer", "affect", "IsMouseButtonPressed", "s", "result", "as", "of", "1", ".", "4", ".", "0", "-", "alpha", ".", "Use", "Touches", "instead", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/input.go#L69-L71", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "input.go", "func_name": "Touches", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Touches is deprecated as of 1.7.0. Use TouchIDs instead.", "docstring_tokens": ["Touches", "is", "deprecated", "as", "of", "1", ".", "7", ".", "0", ".", "Use", "TouchIDs", "instead", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/input.go#L175-L186", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/png/stdlibpaeth.go", "func_name": "paeth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// paeth implements the Paeth filter function, as per the PNG specification.", "docstring_tokens": ["paeth", "implements", "the", "Paeth", "filter", "function", "as", "per", "the", "PNG", "specification", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/png/stdlibpaeth.go#L25-L45", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/png/stdlibpaeth.go", "func_name": "filterPaeth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// filterPaeth applies the Paeth filter to the cdat slice.\n// cdat is the current row's data, pdat is the previous row's data.", "docstring_tokens": ["filterPaeth", "applies", "the", "Paeth", "filter", "to", "the", "cdat", "slice", ".", "cdat", "is", "the", "current", "row", "s", "data", "pdat", "is", "the", "previous", "row", "s", "data", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/png/stdlibpaeth.go#L49-L73", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphics/mipmap.go", "func_name": "MipmapLevel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MipmapLevel returns an appropriate mipmap level for the given determinant of a geometry matrix.\n//\n// MipmapLevel returns -1 if det is 0.\n//\n// MipmapLevel panics if det is NaN.", "docstring_tokens": ["MipmapLevel", "returns", "an", "appropriate", "mipmap", "level", "for", "the", "given", "determinant", "of", "a", "geometry", "matrix", ".", "MipmapLevel", "returns", "-", "1", "if", "det", "is", "0", ".", "MipmapLevel", "panics", "if", "det", "is", "NaN", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphics/mipmap.go#L26-L41", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/uidriver/glfw/hideconsole_windows.go", "func_name": "hideConsoleWindowOnWindows", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// hideConsoleWindowOnWindows will hide the console window that is showing when\n// compiling on Windows without specifying the '-ldflags \"-Hwindowsgui\"' flag.", "docstring_tokens": ["hideConsoleWindowOnWindows", "will", "hide", "the", "console", "window", "that", "is", "showing", "when", "compiling", "on", "Windows", "without", "specifying", "the", "-", "ldflags", "-", "Hwindowsgui", "flag", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/uidriver/glfw/hideconsole_windows.go#L74-L97", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphicsdriver/opengl/gl/package_notwindows.go", "func_name": "DepthMask", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// enable or disable writing into the depth buffer", "docstring_tokens": ["enable", "or", "disable", "writing", "into", "the", "depth", "buffer"], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphicsdriver/opengl/gl/package_notwindows.go#L15583-L15585", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphicsdriver/opengl/gl/package_notwindows.go", "func_name": "EdgeFlag", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flag edges as either boundary or nonboundary", "docstring_tokens": ["flag", "edges", "as", "either", "boundary", "or", "nonboundary"], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphicsdriver/opengl/gl/package_notwindows.go#L15839-L15841", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphicsdriver/opengl/gl/package_notwindows.go", "func_name": "TexImage3D", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// specify a three-dimensional texture image", "docstring_tokens": ["specify", "a", "three", "-", "dimensional", "texture", "image"], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphicsdriver/opengl/gl/package_notwindows.go#L21435-L21437", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/shareable/shareable.go", "func_name": "QuadVertices", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// QuadVertices returns the vertices for rendering a quad.\n//\n// QuadVertices is highly optimized for rendering quads, and that's the most significant difference from\n// PutVertices.", "docstring_tokens": ["QuadVertices", "returns", "the", "vertices", "for", "rendering", "a", "quad", ".", "QuadVertices", "is", "highly", "optimized", "for", "rendering", "quads", "and", "that", "s", "the", "most", "significant", "difference", "from", "PutVertices", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/shareable/shareable.go#L192-L198", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/shareable/shareable.go", "func_name": "PutVertex", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PutVertices puts the given dest with vertices that can be passed to DrawTriangles.", "docstring_tokens": ["PutVertices", "puts", "the", "given", "dest", "with", "vertices", "that", "can", "be", "passed", "to", "DrawTriangles", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/shareable/shareable.go#L201-L208", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/devicescale/impl_unix.go", "func_name": "scaleUpdater", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// run as goroutine. Will keep the desktop scale up to date.\n// This can be removed once the scale change event is implemented in GLFW 3.3", "docstring_tokens": ["run", "as", "goroutine", ".", "Will", "keep", "the", "desktop", "scale", "up", "to", "date", ".", "This", "can", "be", "removed", "once", "the", "scale", "change", "event", "is", "implemented", "in", "GLFW", "3", ".", "3"], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/devicescale/impl_unix.go#L58-L64", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/2048/2048/board.go", "func_name": "NewBoard", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewBoard generates a new Board with giving a size.", "docstring_tokens": ["NewBoard", "generates", "a", "new", "Board", "with", "giving", "a", "size", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/2048/2048/board.go#L35-L46", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/2048/2048/board.go", "func_name": "Update", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Update updates the board state.", "docstring_tokens": ["Update", "updates", "the", "board", "state", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/2048/2048/board.go#L53-L74", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/2048/2048/board.go", "func_name": "Move", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Move enqueues tile moving tasks.", "docstring_tokens": ["Move", "enqueues", "tile", "moving", "tasks", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/2048/2048/board.go#L77-L113", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/2048/2048/board.go", "func_name": "Size", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Size returns the board size.", "docstring_tokens": ["Size", "returns", "the", "board", "size", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/2048/2048/board.go#L116-L120", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/2048/2048/board.go", "func_name": "Draw", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Draw draws the board to the given boardImage.", "docstring_tokens": ["Draw", "draws", "the", "board", "to", "the", "given", "boardImage", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/2048/2048/board.go#L123-L152", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphicsdriver/opengl/gl/package_windows.go", "func_name": "ClearIndex", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// specify the clear value for the color index buffers", "docstring_tokens": ["specify", "the", "clear", "value", "for", "the", "color", "index", "buffers"], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphicsdriver/opengl/gl/package_windows.go#L3411-L3413", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphicsdriver/opengl/gl/package_windows.go", "func_name": "CreateProgram", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Creates a program object", "docstring_tokens": ["Creates", "a", "program", "object"], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphicsdriver/opengl/gl/package_windows.go#L4018-L4021", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphicsdriver/opengl/gl/package_windows.go", "func_name": "DebugMessageCallback", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// specify a callback to receive debugging messages from the GL\n// Parameter callback has type C.GLDEBUGPROC.", "docstring_tokens": ["specify", "a", "callback", "to", "receive", "debugging", "messages", "from", "the", "GL", "Parameter", "callback", "has", "type", "C", ".", "GLDEBUGPROC", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphicsdriver/opengl/gl/package_windows.go#L4112-L4114", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphicsdriver/opengl/gl/package_windows.go", "func_name": "GetError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// return error information", "docstring_tokens": ["return", "error", "information"], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphicsdriver/opengl/gl/package_windows.go#L5420-L5423", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphicsdriver/opengl/gl/package_windows.go", "func_name": "GetGraphicsResetStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// check if the rendering context has not been lost due to software or hardware issues", "docstring_tokens": ["check", "if", "the", "rendering", "context", "has", "not", "been", "lost", "due", "to", "software", "or", "hardware", "issues"], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphicsdriver/opengl/gl/package_windows.go#L5497-L5500", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphicsdriver/opengl/gl/package_windows.go", "func_name": "LineWidth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// specify the width of rasterized lines", "docstring_tokens": ["specify", "the", "width", "of", "rasterized", "lines"], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphicsdriver/opengl/gl/package_windows.go#L7057-L7059", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphicsdriver/opengl/gl/package_windows.go", "func_name": "PassThrough", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// place a marker in the feedback buffer", "docstring_tokens": ["place", "a", "marker", "in", "the", "feedback", "buffer"], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphicsdriver/opengl/gl/package_windows.go#L8190-L8192", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphicsdriver/opengl/gl/package_windows.go", "func_name": "PointSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// specify the diameter of rasterized points", "docstring_tokens": ["specify", "the", "diameter", "of", "rasterized", "points"], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphicsdriver/opengl/gl/package_windows.go#L8387-L8389", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "audio/audio.go", "func_name": "IsReady", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsReady returns a boolean value indicating whether the audio is ready or not.\n//\n// On some browsers, user interaction like click or pressing keys is required to start audio.", "docstring_tokens": ["IsReady", "returns", "a", "boolean", "value", "indicating", "whether", "the", "audio", "is", "ready", "or", "not", ".", "On", "some", "browsers", "user", "interaction", "like", "click", "or", "pressing", "keys", "is", "required", "to", "start", "audio", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/audio/audio.go#L196-L201", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "audio/audio.go", "func_name": "NewPlayerFromBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPlayerFromBytes creates a new player with the given bytes.\n//\n// As opposed to NewPlayer, you don't have to care if src is already used by another player or not.\n// src can be shared by multiple players.\n//\n// The format of src should be same as noted at NewPlayer.\n//\n// NewPlayerFromBytes's error is always nil as of 1.5.0-alpha.", "docstring_tokens": ["NewPlayerFromBytes", "creates", "a", "new", "player", "with", "the", "given", "bytes", ".", "As", "opposed", "to", "NewPlayer", "you", "don", "t", "have", "to", "care", "if", "src", "is", "already", "used", "by", "another", "player", "or", "not", ".", "src", "can", "be", "shared", "by", "multiple", "players", ".", "The", "format", "of", "src", "should", "be", "same", "as", "noted", "at", "NewPlayer", ".", "NewPlayerFromBytes", "s", "error", "is", "always", "nil", "as", "of", "1", ".", "5", ".", "0", "-", "alpha", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/audio/audio.go#L315-L323", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "audio/audio.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close closes the stream.\n//\n// When closing, the stream owned by the player will also be closed by calling its Close.\n// This means that the source stream passed via NewPlayer will also be closed.\n//\n// Close returns error when closing the source returns error.", "docstring_tokens": ["Close", "closes", "the", "stream", ".", "When", "closing", "the", "stream", "owned", "by", "the", "player", "will", "also", "be", "closed", "by", "calling", "its", "Close", ".", "This", "means", "that", "the", "source", "stream", "passed", "via", "NewPlayer", "will", "also", "be", "closed", ".", "Close", "returns", "error", "when", "closing", "the", "source", "returns", "error", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/audio/audio.go#L338-L341", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "audio/audio.go", "func_name": "Seek", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Seek seeks the position with the given offset.\n//\n// The passed source to NewPlayer must be io.Seeker, or Seek panics.\n//\n// Seek returns error when seeking the source stream returns error.", "docstring_tokens": ["Seek", "seeks", "the", "position", "with", "the", "given", "offset", ".", "The", "passed", "source", "to", "NewPlayer", "must", "be", "io", ".", "Seeker", "or", "Seek", "panics", ".", "Seek", "returns", "error", "when", "seeking", "the", "source", "stream", "returns", "error", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/audio/audio.go#L516-L518", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/png/stdlibreader.go", "func_name": "decode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// decode decodes the IDAT data into an image.", "docstring_tokens": ["decode", "decodes", "the", "IDAT", "data", "into", "an", "image", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/png/stdlibreader.go#L365-L410", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/png/stdlibreader.go", "func_name": "Decode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Decode reads a PNG image from r and returns it as an image.Image.\n// The type of Image returned depends on the PNG contents.", "docstring_tokens": ["Decode", "reads", "a", "PNG", "image", "from", "r", "and", "returns", "it", "as", "an", "image", ".", "Image", ".", "The", "type", "of", "Image", "returned", "depends", "on", "the", "PNG", "contents", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/png/stdlibreader.go#L954-L974", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/png/stdlibreader.go", "func_name": "DecodeConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DecodeConfig returns the color model and dimensions of a PNG image without\n// decoding the entire image.", "docstring_tokens": ["DecodeConfig", "returns", "the", "color", "model", "and", "dimensions", "of", "a", "PNG", "image", "without", "decoding", "the", "entire", "image", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/png/stdlibreader.go#L978-L1030", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/affine/colorm.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add is deprecated.", "docstring_tokens": ["Add", "is", "deprecated", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/affine/colorm.go#L281-L315", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/blocks/blocks/gamepad.go", "func_name": "IsButtonPressed", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsButtonPressed returns a boolean value indicating whether\n// the given virtual button b is pressed.", "docstring_tokens": ["IsButtonPressed", "returns", "a", "boolean", "value", "indicating", "whether", "the", "given", "virtual", "button", "b", "is", "pressed", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/blocks/blocks/gamepad.go#L167-L189", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/blocks/blocks/gamepad.go", "func_name": "ButtonName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Name returns the pysical button's name for the given virtual button.", "docstring_tokens": ["Name", "returns", "the", "pysical", "button", "s", "name", "for", "the", "given", "virtual", "button", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/blocks/blocks/gamepad.go#L192-L214", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/hooks/hooks.go", "func_name": "AppendHookOnBeforeUpdate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AppendHookOnBeforeUpdate appends a hook function that is run before the main update function\n// every frame.", "docstring_tokens": ["AppendHookOnBeforeUpdate", "appends", "a", "hook", "function", "that", "is", "run", "before", "the", "main", "update", "function", "every", "frame", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/hooks/hooks.go#L27-L31", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "ebitenutil/debugprint.go", "func_name": "DebugPrint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DebugPrint draws the string str on the image on left top corner.\n//\n// The available runes are in U+0000 to U+00FF, which is C0 Controls and Basic Latin and C1 Controls and Latin-1 Supplement.\n//\n// DebugPrint always returns nil as of 1.5.0-alpha.", "docstring_tokens": ["DebugPrint", "draws", "the", "string", "str", "on", "the", "image", "on", "left", "top", "corner", ".", "The", "available", "runes", "are", "in", "U", "+", "0000", "to", "U", "+", "00FF", "which", "is", "C0", "Controls", "and", "Basic", "Latin", "and", "C1", "Controls", "and", "Latin", "-", "1", "Supplement", ".", "DebugPrint", "always", "returns", "nil", "as", "of", "1", ".", "5", ".", "0", "-", "alpha", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/ebitenutil/debugprint.go#L38-L41", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/blocks/blocks/input.go", "func_name": "GamepadIDButtonPressed", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GamepadIDButtonPressed returns a gamepad ID where at least one button is pressed.\n// If no button is pressed, GamepadIDButtonPressed returns -1.", "docstring_tokens": ["GamepadIDButtonPressed", "returns", "a", "gamepad", "ID", "where", "at", "least", "one", "button", "is", "pressed", ".", "If", "no", "button", "is", "pressed", "GamepadIDButtonPressed", "returns", "-", "1", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/blocks/blocks/input.go#L30-L39", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "audio/vorbis/vorbis.go", "func_name": "Seek", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Seek is implementation of io.Seeker's Seek.\n//\n// Note that Seek can take long since decoding is a relatively heavy task.", "docstring_tokens": ["Seek", "is", "implementation", "of", "io", ".", "Seeker", "s", "Seek", ".", "Note", "that", "Seek", "can", "take", "long", "since", "decoding", "is", "a", "relatively", "heavy", "task", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/audio/vorbis/vorbis.go#L41-L43", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "audio/vorbis/vorbis.go", "func_name": "decode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// decode accepts an ogg stream and returns a decorded stream.", "docstring_tokens": ["decode", "accepts", "an", "ogg", "stream", "and", "returns", "a", "decorded", "stream", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/audio/vorbis/vorbis.go#L144-L165", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/blocks/blocks/field.go", "func_name": "MovePieceToLeft", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MovePieceToLeft tries to move the piece to the left\n// and returns the piece's next x position.", "docstring_tokens": ["MovePieceToLeft", "tries", "to", "move", "the", "piece", "to", "the", "left", "and", "returns", "the", "piece", "s", "next", "x", "position", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/blocks/blocks/field.go#L47-L52", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/blocks/blocks/field.go", "func_name": "RotatePieceRight", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RotatePieceRight tries to rotate the piece to the right\n// and returns the piece's next angle.", "docstring_tokens": ["RotatePieceRight", "tries", "to", "rotate", "the", "piece", "to", "the", "right", "and", "returns", "the", "piece", "s", "next", "angle", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/blocks/blocks/field.go#L80-L85", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/blocks/blocks/field.go", "func_name": "RotatePieceLeft", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RotatePieceLeft tries to rotate the piece to the left\n// and returns the piece's next angle.", "docstring_tokens": ["RotatePieceLeft", "tries", "to", "rotate", "the", "piece", "to", "the", "left", "and", "returns", "the", "piece", "s", "next", "angle", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/blocks/blocks/field.go#L89-L94", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/blocks/blocks/field.go", "func_name": "flushable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flushable returns a boolean value indicating whether\n// there is a flushable line in the field.", "docstring_tokens": ["flushable", "returns", "a", "boolean", "value", "indicating", "whether", "there", "is", "a", "flushable", "line", "in", "the", "field", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/blocks/blocks/field.go#L118-L125", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/blocks/blocks/field.go", "func_name": "flushableLine", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flushableLine returns a boolean value indicating whether\n// the line j is flushabled or not.", "docstring_tokens": ["flushableLine", "returns", "a", "boolean", "value", "indicating", "whether", "the", "line", "j", "is", "flushabled", "or", "not", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/blocks/blocks/field.go#L129-L136", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/blocks/blocks/field.go", "func_name": "flushLine", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flushLine flushes the line j if possible, and if the line is flushed,\n// the other lines above the line go down.\n//\n// flushLine returns a boolean value indicating whether\n// the line is actually flushed.", "docstring_tokens": ["flushLine", "flushes", "the", "line", "j", "if", "possible", "and", "if", "the", "line", "is", "flushed", "the", "other", "lines", "above", "the", "line", "go", "down", ".", "flushLine", "returns", "a", "boolean", "value", "indicating", "whether", "the", "line", "is", "actually", "flushed", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/blocks/blocks/field.go#L157-L172", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/raycasting/main.go", "func_name": "intersection", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// intersection calculates the intersection of given two lines.", "docstring_tokens": ["intersection", "calculates", "the", "intersection", "of", "given", "two", "lines", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/raycasting/main.go#L101-L124", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/raycasting/main.go", "func_name": "rayCasting", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// rayCasting returns a slice of line originating from point cx, cy and intersecting with objects", "docstring_tokens": ["rayCasting", "returns", "a", "slice", "of", "line", "originating", "from", "point", "cx", "cy", "and", "intersecting", "with", "objects"], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/raycasting/main.go#L127-L170", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphicsdriver/opengl/gl/conversions_notwindows.go", "func_name": "Str", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Str takes a null-terminated Go string and returns its GL-compatible address.\n// This function reaches into Go string storage in an unsafe way so the caller\n// must ensure the string is not garbage collected.", "docstring_tokens": ["Str", "takes", "a", "null", "-", "terminated", "Go", "string", "and", "returns", "its", "GL", "-", "compatible", "address", ".", "This", "function", "reaches", "into", "Go", "string", "storage", "in", "an", "unsafe", "way", "so", "the", "caller", "must", "ensure", "the", "string", "is", "not", "garbage", "collected", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphicsdriver/opengl/gl/conversions_notwindows.go#L63-L69", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "audio/wav/decode.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read is implementation of io.Closer's Close.", "docstring_tokens": ["Read", "is", "implementation", "of", "io", ".", "Closer", "s", "Close", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/audio/wav/decode.go#L47-L50", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/life/main.go", "func_name": "NewWorld", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewWorld creates a new world.", "docstring_tokens": ["NewWorld", "creates", "a", "new", "world", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/life/main.go#L44-L52", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/life/main.go", "func_name": "init", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// init inits world with a random state.", "docstring_tokens": ["init", "inits", "world", "with", "a", "random", "state", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/life/main.go#L59-L65", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/life/main.go", "func_name": "Update", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Update game state by one tick.", "docstring_tokens": ["Update", "game", "state", "by", "one", "tick", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/life/main.go#L68-L99", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/life/main.go", "func_name": "Draw", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Draw paints current game state.", "docstring_tokens": ["Draw", "paints", "current", "game", "state", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/life/main.go#L102-L116", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "ebitenutil/shapes.go", "func_name": "DrawLine", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DrawLine draws a line segment on the given destination dst.\n//\n// DrawLine is intended to be used mainly for debugging or prototyping purpose.", "docstring_tokens": ["DrawLine", "draws", "a", "line", "segment", "on", "the", "given", "destination", "dst", ".", "DrawLine", "is", "intended", "to", "be", "used", "mainly", "for", "debugging", "or", "prototyping", "purpose", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/ebitenutil/shapes.go#L49-L61", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "ebitenutil/shapes.go", "func_name": "DrawRect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DrawRect draws a rectangle on the given destination dst.\n//\n// DrawRect is intended to be used mainly for debugging or prototyping purpose.", "docstring_tokens": ["DrawRect", "draws", "a", "rectangle", "on", "the", "given", "destination", "dst", ".", "DrawRect", "is", "intended", "to", "be", "used", "mainly", "for", "debugging", "or", "prototyping", "purpose", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/ebitenutil/shapes.go#L66-L76", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/2048/2048/game.go", "func_name": "NewGame", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewGame generates a new Game object.", "docstring_tokens": ["NewGame", "generates", "a", "new", "Game", "object", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/2048/2048/game.go#L42-L52", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/2048/2048/game.go", "func_name": "Update", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Update updates the current game state.", "docstring_tokens": ["Update", "updates", "the", "current", "game", "state", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/2048/2048/game.go#L55-L61", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/2048/2048/game.go", "func_name": "Draw", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Draw draws the current game to the given screen.", "docstring_tokens": ["Draw", "draws", "the", "current", "game", "to", "the", "given", "screen", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/2048/2048/game.go#L64-L78", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "inpututil/inpututil.go", "func_name": "IsKeyJustReleased", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsKeyJustReleased returns a boolean value indicating\n// whether the given key is released just in the current frame.\n//\n// IsKeyJustReleased is concurrent safe.", "docstring_tokens": ["IsKeyJustReleased", "returns", "a", "boolean", "value", "indicating", "whether", "the", "given", "key", "is", "released", "just", "in", "the", "current", "frame", ".", "IsKeyJustReleased", "is", "concurrent", "safe", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/inpututil/inpututil.go#L175-L180", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "inpututil/inpututil.go", "func_name": "KeyPressDuration", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// KeyPressDuration returns how long the key is pressed in frames.\n//\n// KeyPressDuration is concurrent safe.", "docstring_tokens": ["KeyPressDuration", "returns", "how", "long", "the", "key", "is", "pressed", "in", "frames", ".", "KeyPressDuration", "is", "concurrent", "safe", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/inpututil/inpututil.go#L185-L190", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "inpututil/inpututil.go", "func_name": "IsMouseButtonJustReleased", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsMouseButtonJustReleased returns a boolean value indicating\n// whether the given mouse button is released just in the current frame.\n//\n// IsMouseButtonJustReleased is concurrent safe.", "docstring_tokens": ["IsMouseButtonJustReleased", "returns", "a", "boolean", "value", "indicating", "whether", "the", "given", "mouse", "button", "is", "released", "just", "in", "the", "current", "frame", ".", "IsMouseButtonJustReleased", "is", "concurrent", "safe", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/inpututil/inpututil.go#L204-L210", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "inpututil/inpututil.go", "func_name": "MouseButtonPressDuration", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MouseButtonPressDuration returns how long the mouse button is pressed in frames.\n//\n// MouseButtonPressDuration is concurrent safe.", "docstring_tokens": ["MouseButtonPressDuration", "returns", "how", "long", "the", "mouse", "button", "is", "pressed", "in", "frames", ".", "MouseButtonPressDuration", "is", "concurrent", "safe", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/inpututil/inpututil.go#L215-L220", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "inpututil/inpututil.go", "func_name": "JustConnectedGamepadIDs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// JustConnectedGamepadIDs returns gamepad IDs that are connected just in the current frame.\n//\n// JustConnectedGamepadIDs might return nil when there is no connected gamepad.\n//\n// JustConnectedGamepadIDs is concurrent safe.", "docstring_tokens": ["JustConnectedGamepadIDs", "returns", "gamepad", "IDs", "that", "are", "connected", "just", "in", "the", "current", "frame", ".", "JustConnectedGamepadIDs", "might", "return", "nil", "when", "there", "is", "no", "connected", "gamepad", ".", "JustConnectedGamepadIDs", "is", "concurrent", "safe", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/inpututil/inpututil.go#L227-L238", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "inpututil/inpututil.go", "func_name": "IsGamepadJustDisconnected", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsGamepadJustDisconnected returns a boolean value indicating\n// whether the gamepad of the given id is released just in the current frame.\n//\n// IsGamepadJustDisconnected is concurrent safe.", "docstring_tokens": ["IsGamepadJustDisconnected", "returns", "a", "boolean", "value", "indicating", "whether", "the", "gamepad", "of", "the", "given", "id", "is", "released", "just", "in", "the", "current", "frame", ".", "IsGamepadJustDisconnected", "is", "concurrent", "safe", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/inpututil/inpututil.go#L244-L250", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "inpututil/inpututil.go", "func_name": "IsGamepadButtonJustPressed", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsGamepadButtonJustPressed returns a boolean value indicating\n// whether the given gamepad button of the gamepad id is pressed just in the current frame.\n//\n// IsGamepadButtonJustPressed is concurrent safe.", "docstring_tokens": ["IsGamepadButtonJustPressed", "returns", "a", "boolean", "value", "indicating", "whether", "the", "given", "gamepad", "button", "of", "the", "gamepad", "id", "is", "pressed", "just", "in", "the", "current", "frame", ".", "IsGamepadButtonJustPressed", "is", "concurrent", "safe", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/inpututil/inpututil.go#L256-L258", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "inpututil/inpututil.go", "func_name": "IsGamepadButtonJustReleased", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsGamepadButtonJustReleased returns a boolean value indicating\n// whether the given gamepad button of the gamepad id is released just in the current frame.\n//\n// IsGamepadButtonJustReleased is concurrent safe.", "docstring_tokens": ["IsGamepadButtonJustReleased", "returns", "a", "boolean", "value", "indicating", "whether", "the", "given", "gamepad", "button", "of", "the", "gamepad", "id", "is", "released", "just", "in", "the", "current", "frame", ".", "IsGamepadButtonJustReleased", "is", "concurrent", "safe", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/inpututil/inpututil.go#L264-L276", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "inpututil/inpututil.go", "func_name": "GamepadButtonPressDuration", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GamepadButtonPressDuration returns how long the gamepad button of the gamepad id is pressed in frames.\n//\n// GamepadButtonPressDuration is concurrent safe.", "docstring_tokens": ["GamepadButtonPressDuration", "returns", "how", "long", "the", "gamepad", "button", "of", "the", "gamepad", "id", "is", "pressed", "in", "frames", ".", "GamepadButtonPressDuration", "is", "concurrent", "safe", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/inpututil/inpututil.go#L281-L289", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "inpututil/inpututil.go", "func_name": "JustPressedTouchIDs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// JustPressedTouchIDs returns touch IDs that are created just in the current frame.\n//\n// JustPressedTouchIDs might return nil when there is not touch.\n//\n// JustPressedTouchIDs is concurrent safe.", "docstring_tokens": ["JustPressedTouchIDs", "returns", "touch", "IDs", "that", "are", "created", "just", "in", "the", "current", "frame", ".", "JustPressedTouchIDs", "might", "return", "nil", "when", "there", "is", "not", "touch", ".", "JustPressedTouchIDs", "is", "concurrent", "safe", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/inpututil/inpututil.go#L296-L307", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "inpututil/inpututil.go", "func_name": "IsTouchJustReleased", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsTouchJustReleased returns a boolean value indicating\n// whether the given touch is released just in the current frame.\n//\n// IsTouchJustReleased is concurrent safe.", "docstring_tokens": ["IsTouchJustReleased", "returns", "a", "boolean", "value", "indicating", "whether", "the", "given", "touch", "is", "released", "just", "in", "the", "current", "frame", ".", "IsTouchJustReleased", "is", "concurrent", "safe", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/inpututil/inpututil.go#L313-L318", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "inpututil/inpututil.go", "func_name": "TouchPressDuration", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TouchPressDuration returns how long the touch remains in frames.\n//\n// TouchPressDuration is concurrent safe.", "docstring_tokens": ["TouchPressDuration", "returns", "how", "long", "the", "touch", "remains", "in", "frames", ".", "TouchPressDuration", "is", "concurrent", "safe", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/inpututil/inpututil.go#L323-L328", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphicsdriver/metal/driver.go", "func_name": "viewportSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// viewportSize must be called from the main thread.", "docstring_tokens": ["viewportSize", "must", "be", "called", "from", "the", "main", "thread", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphicsdriver/metal/driver.go#L726-L731", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/mainthread/mainthread.go", "func_name": "Loop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Loop starts the main-thread loop.\n//\n// Loop must be called on the main thread.", "docstring_tokens": ["Loop", "starts", "the", "main", "-", "thread", "loop", ".", "Loop", "must", "be", "called", "on", "the", "main", "thread", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/mainthread/mainthread.go#L34-L45", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/mainthread/mainthread.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run calls f on the main thread.\n//\n// Do not call this from the main thread. This would block forever.", "docstring_tokens": ["Run", "calls", "f", "on", "the", "main", "thread", ".", "Do", "not", "call", "this", "from", "the", "main", "thread", ".", "This", "would", "block", "forever", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/mainthread/mainthread.go#L50-L64", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphics/math.go", "func_name": "InternalImageSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InternalImageSize returns a nearest appropriate size as an internal image.", "docstring_tokens": ["InternalImageSize", "returns", "a", "nearest", "appropriate", "size", "as", "an", "internal", "image", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphics/math.go#L24-L36", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/pcm/main.go", "func_name": "square", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// square fills out with square wave values with the specified volume, frequency and sequence.", "docstring_tokens": ["square", "fills", "out", "with", "square", "wave", "values", "with", "the", "specified", "volume", "frequency", "and", "sequence", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/pcm/main.go#L66-L84", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/pcm/main.go", "func_name": "playNote", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// playNote plays the note at scoreIndex of the score.", "docstring_tokens": ["playNote", "plays", "the", "note", "at", "scoreIndex", "of", "the", "score", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/pcm/main.go#L102-L132", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/piano/main.go", "func_name": "pianoAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// pianoAt returns an i-th sample of piano with the given frequency.", "docstring_tokens": ["pianoAt", "returns", "an", "i", "-", "th", "sample", "of", "piano", "with", "the", "given", "frequency", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/piano/main.go#L75-L86", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/piano/main.go", "func_name": "playNote", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// playNote plays piano sound with the given frequency.", "docstring_tokens": ["playNote", "plays", "piano", "sound", "with", "the", "given", "frequency", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/piano/main.go#L145-L149", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "vector/path.go", "func_name": "Draw", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Draw draws the path by rendering its stroke or filling.", "docstring_tokens": ["Draw", "draws", "the", "path", "by", "rendering", "its", "stroke", "or", "filling", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/vector/path.go#L208-L220", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "geom.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns a string representation of GeoM.", "docstring_tokens": ["String", "returns", "a", "string", "representation", "of", "GeoM", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/geom.go#L38-L40", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "geom.go", "func_name": "Reset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reset resets the GeoM as identity.", "docstring_tokens": ["Reset", "resets", "the", "GeoM", "as", "identity", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/geom.go#L43-L50", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "geom.go", "func_name": "Concat", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Concat multiplies a geometry matrix with the other geometry matrix.\n// This is same as muptiplying the matrix other and the matrix g in this order.", "docstring_tokens": ["Concat", "multiplies", "a", "geometry", "matrix", "with", "the", "other", "geometry", "matrix", ".", "This", "is", "same", "as", "muptiplying", "the", "matrix", "other", "and", "the", "matrix", "g", "in", "this", "order", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/geom.go#L90-L104", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "geom.go", "func_name": "Rotate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Rotate rotates the matrix by theta.\n// The unit is radian.", "docstring_tokens": ["Rotate", "rotates", "the", "matrix", "by", "theta", ".", "The", "unit", "is", "radian", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/geom.go#L142-L163", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "geom.go", "func_name": "Invert", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Invert inverts the matrix.\n// If g is not invertible, Invert panics.", "docstring_tokens": ["Invert", "inverts", "the", "matrix", ".", "If", "g", "is", "not", "invertible", "Invert", "panics", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/geom.go#L198-L217", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "geom.go", "func_name": "ScaleGeo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ScaleGeo is deprecated as of 1.2.0-alpha. Use Scale instead.", "docstring_tokens": ["ScaleGeo", "is", "deprecated", "as", "of", "1", ".", "2", ".", "0", "-", "alpha", ".", "Use", "Scale", "instead", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/geom.go#L241-L245", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "geom.go", "func_name": "TranslateGeo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TranslateGeo is deprecated as of 1.2.0-alpha. Use Translate instead.", "docstring_tokens": ["TranslateGeo", "is", "deprecated", "as", "of", "1", ".", "2", ".", "0", "-", "alpha", ".", "Use", "Translate", "instead", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/geom.go#L248-L252", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "geom.go", "func_name": "RotateGeo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RotateGeo is deprecated as of 1.2.0-alpha. Use Rotate instead.", "docstring_tokens": ["RotateGeo", "is", "deprecated", "as", "of", "1", ".", "2", ".", "0", "-", "alpha", ".", "Use", "Rotate", "instead", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/geom.go#L255-L259", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphicsdriver/opengl/framebuffer.go", "func_name": "newFramebufferFromTexture", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newFramebufferFromTexture creates a framebuffer from the given texture.", "docstring_tokens": ["newFramebufferFromTexture", "creates", "a", "framebuffer", "from", "the", "given", "texture", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphicsdriver/opengl/framebuffer.go#L26-L36", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphicsdriver/opengl/framebuffer.go", "func_name": "newScreenFramebuffer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newScreenFramebuffer creates a framebuffer for the screen.", "docstring_tokens": ["newScreenFramebuffer", "creates", "a", "framebuffer", "for", "the", "screen", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphicsdriver/opengl/framebuffer.go#L39-L45", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/png/stdlibwriter.go", "func_name": "opaque", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns whether or not the image is fully opaque.", "docstring_tokens": ["Returns", "whether", "or", "not", "the", "image", "is", "fully", "opaque", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/png/stdlibwriter.go#L73-L87", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/png/stdlibwriter.go", "func_name": "writeIDATs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write the actual image data to one or more IDAT chunks.", "docstring_tokens": ["Write", "the", "actual", "image", "data", "to", "one", "or", "more", "IDAT", "chunks", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/png/stdlibwriter.go#L524-L538", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/png/stdlibwriter.go", "func_name": "levelToZlib", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// This function is required because we want the zero value of\n// Encoder.CompressionLevel to map to zlib.DefaultCompression.", "docstring_tokens": ["This", "function", "is", "required", "because", "we", "want", "the", "zero", "value", "of", "Encoder", ".", "CompressionLevel", "to", "map", "to", "zlib", ".", "DefaultCompression", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/png/stdlibwriter.go#L542-L555", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/png/stdlibwriter.go", "func_name": "Encode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Encode writes the Image m to w in PNG format. Any Image may be\n// encoded, but images that are not image.NRGBA might be encoded lossily.", "docstring_tokens": ["Encode", "writes", "the", "Image", "m", "to", "w", "in", "PNG", "format", ".", "Any", "Image", "may", "be", "encoded", "but", "images", "that", "are", "not", "image", ".", "NRGBA", "might", "be", "encoded", "lossily", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/png/stdlibwriter.go#L561-L564", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/png/stdlibwriter.go", "func_name": "Encode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Encode writes the Image m to w in PNG format.", "docstring_tokens": ["Encode", "writes", "the", "Image", "m", "to", "w", "in", "PNG", "format", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/png/stdlibwriter.go#L567-L637", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/restorable/image.go", "func_name": "NewImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewImage creates an empty image with the given size.\n//\n// The returned image is cleared.\n//\n// Note that Dispose is not called automatically.", "docstring_tokens": ["NewImage", "creates", "an", "empty", "image", "with", "the", "given", "size", ".", "The", "returned", "image", "is", "cleared", ".", "Note", "that", "Dispose", "is", "not", "called", "automatically", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/restorable/image.go#L139-L146", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/restorable/image.go", "func_name": "NewScreenFramebufferImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewScreenFramebufferImage creates a special image that framebuffer is one for the screen.\n//\n// The returned image is cleared.\n//\n// Note that Dispose is not called automatically.", "docstring_tokens": ["NewScreenFramebufferImage", "creates", "a", "special", "image", "that", "framebuffer", "is", "one", "for", "the", "screen", ".", "The", "returned", "image", "is", "cleared", ".", "Note", "that", "Dispose", "is", "not", "called", "automatically", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/restorable/image.go#L157-L165", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/restorable/image.go", "func_name": "internalSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// internalSize returns the size of the internal texture.", "docstring_tokens": ["internalSize", "returns", "the", "size", "of", "the", "internal", "texture", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/restorable/image.go#L230-L237", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/restorable/image.go", "func_name": "makeStale", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// makeStale makes the image stale.", "docstring_tokens": ["makeStale", "makes", "the", "image", "stale", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/restorable/image.go#L261-L270", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/restorable/image.go", "func_name": "ReplacePixels", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReplacePixels replaces the image pixels with the given pixels slice.\n//\n// If pixels is nil, ReplacePixels clears the specified reagion.", "docstring_tokens": ["ReplacePixels", "replaces", "the", "image", "pixels", "with", "the", "given", "pixels", "slice", ".", "If", "pixels", "is", "nil", "ReplacePixels", "clears", "the", "specified", "reagion", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/restorable/image.go#L286-L353", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/restorable/image.go", "func_name": "DrawTriangles", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DrawTriangles draws a given image img to the image.", "docstring_tokens": ["DrawTriangles", "draws", "a", "given", "image", "img", "to", "the", "image", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/restorable/image.go#L356-L371", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/restorable/image.go", "func_name": "appendDrawTrianglesHistory", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// appendDrawTrianglesHistory appends a draw-image history item to the image.", "docstring_tokens": ["appendDrawTrianglesHistory", "appends", "a", "draw", "-", "image", "history", "item", "to", "the", "image", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/restorable/image.go#L374-L396", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/restorable/image.go", "func_name": "makeStaleIfDependingOn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// makeStaleIfDependingOn makes the image stale if the image depends on target.", "docstring_tokens": ["makeStaleIfDependingOn", "makes", "the", "image", "stale", "if", "the", "image", "depends", "on", "target", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/restorable/image.go#L428-L435", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/restorable/image.go", "func_name": "readPixelsFromGPU", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// readPixelsFromGPU reads the pixels from GPU and resolves the image's 'stale' state.", "docstring_tokens": ["readPixelsFromGPU", "reads", "the", "pixels", "from", "GPU", "and", "resolves", "the", "image", "s", "stale", "state", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/restorable/image.go#L438-L446", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/restorable/image.go", "func_name": "resolveStale", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resolveStale resolves the image's 'stale' state.", "docstring_tokens": ["resolveStale", "resolves", "the", "image", "s", "stale", "state", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/restorable/image.go#L449-L464", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/restorable/image.go", "func_name": "dependsOn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// dependsOn returns a boolean value indicating whether the image depends on target.", "docstring_tokens": ["dependsOn", "returns", "a", "boolean", "value", "indicating", "whether", "the", "image", "depends", "on", "target", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/restorable/image.go#L467-L474", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/restorable/image.go", "func_name": "dependingImages", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// dependingImages returns all images that is depended by the image.", "docstring_tokens": ["dependingImages", "returns", "all", "images", "that", "is", "depended", "by", "the", "image", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/restorable/image.go#L477-L483", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/restorable/image.go", "func_name": "hasDependency", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// hasDependency returns a boolean value indicating whether the image depends on another image.", "docstring_tokens": ["hasDependency", "returns", "a", "boolean", "value", "indicating", "whether", "the", "image", "depends", "on", "another", "image", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/restorable/image.go#L486-L491", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/restorable/image.go", "func_name": "Dispose", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Dispose disposes the image.\n//\n// After disposing, calling the function of the image causes unexpected results.", "docstring_tokens": ["Dispose", "disposes", "the", "image", ".", "After", "disposing", "calling", "the", "function", "of", "the", "image", "causes", "unexpected", "results", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/restorable/image.go#L544-L552", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/restorable/image.go", "func_name": "IsInvalidated", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsInvalidated returns a boolean value indicating whether the image is invalidated.\n//\n// If an image is invalidated, GL context is lost and all the images should be restored asap.", "docstring_tokens": ["IsInvalidated", "returns", "a", "boolean", "value", "indicating", "whether", "the", "image", "is", "invalidated", ".", "If", "an", "image", "is", "invalidated", "GL", "context", "is", "lost", "and", "all", "the", "images", "should", "be", "restored", "asap", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/restorable/image.go#L557-L565", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphicscommand/image.go", "func_name": "NewImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewImage returns a new image.\n//\n// Note that the image is not initialized yet.", "docstring_tokens": ["NewImage", "returns", "a", "new", "image", ".", "Note", "that", "the", "image", "is", "not", "initialized", "yet", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphicscommand/image.go#L44-L56", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphicscommand/image.go", "func_name": "Pixels", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Pixels returns the image's pixels.\n// Pixels might return nil when OpenGL error happens.", "docstring_tokens": ["Pixels", "returns", "the", "image", "s", "pixels", ".", "Pixels", "might", "return", "nil", "when", "OpenGL", "error", "happens", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphicscommand/image.go#L107-L115", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphicscommand/image.go", "func_name": "CopyPixels", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CopyPixels is basically same as Pixels and ReplacePixels, but reading pixels from GPU is done lazily.", "docstring_tokens": ["CopyPixels", "is", "basically", "same", "as", "Pixels", "and", "ReplacePixels", "but", "reading", "pixels", "from", "GPU", "is", "done", "lazily", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphicscommand/image.go#L139-L154", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/2048/2048/tile.go", "func_name": "Pos", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Pos returns the tile's current position.\n// Pos is used only at testing so far.", "docstring_tokens": ["Pos", "returns", "the", "tile", "s", "current", "position", ".", "Pos", "is", "used", "only", "at", "testing", "so", "far", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/2048/2048/tile.go#L85-L87", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/2048/2048/tile.go", "func_name": "NextPos", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NextPos returns the tile's next position.\n// NextPos is used only at testing so far.", "docstring_tokens": ["NextPos", "returns", "the", "tile", "s", "next", "position", ".", "NextPos", "is", "used", "only", "at", "testing", "so", "far", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/2048/2048/tile.go#L91-L93", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/2048/2048/tile.go", "func_name": "NewTile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTile creates a new Tile object.", "docstring_tokens": ["NewTile", "creates", "a", "new", "Tile", "object", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/2048/2048/tile.go#L108-L117", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/2048/2048/tile.go", "func_name": "MoveTiles", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MoveTiles moves tiles in the given tiles map if possible.\n// MoveTiles returns true if there are tiles that are to move, otherwise false.\n//\n// When MoveTiles is called, all tiles must not be about to move.", "docstring_tokens": ["MoveTiles", "moves", "tiles", "in", "the", "given", "tiles", "map", "if", "possible", ".", "MoveTiles", "returns", "true", "if", "there", "are", "tiles", "that", "are", "to", "move", "otherwise", "false", ".", "When", "MoveTiles", "is", "called", "all", "tiles", "must", "not", "be", "about", "to", "move", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/2048/2048/tile.go#L177-L263", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/2048/2048/tile.go", "func_name": "Update", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Update updates the tile's animation states.", "docstring_tokens": ["Update", "updates", "the", "tile", "s", "animation", "states", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/2048/2048/tile.go#L297-L314", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "colorm.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns a string representation of ColorM.", "docstring_tokens": ["String", "returns", "a", "string", "representation", "of", "ColorM", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/colorm.go#L41-L48", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "colorm.go", "func_name": "ScaleColor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ScaleColor is deprecated as of 1.2.0-alpha. Use Scale instead.", "docstring_tokens": ["ScaleColor", "is", "deprecated", "as", "of", "1", ".", "2", ".", "0", "-", "alpha", ".", "Use", "Scale", "instead", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/colorm.go#L122-L126", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "colorm.go", "func_name": "TranslateColor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TranslateColor is deprecated as of 1.2.0-alpha. Use Translate instead.", "docstring_tokens": ["TranslateColor", "is", "deprecated", "as", "of", "1", ".", "2", ".", "0", "-", "alpha", ".", "Use", "Translate", "instead", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/colorm.go#L129-L133", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "colorm.go", "func_name": "RotateHue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RotateHue is deprecated as of 1.2.0-alpha. Use RotateHue member function instead.", "docstring_tokens": ["RotateHue", "is", "deprecated", "as", "of", "1", ".", "2", ".", "0", "-", "alpha", ".", "Use", "RotateHue", "member", "function", "instead", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/colorm.go#L136-L140", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "imagedumper_desktop.go", "func_name": "availableFilename", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// availableFilename returns a filename that is valid as a new file or directory.", "docstring_tokens": ["availableFilename", "returns", "a", "filename", "that", "is", "valid", "as", "a", "new", "file", "or", "directory", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/imagedumper_desktop.go#L34-L51", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/uidriver/mobile/ui.go", "func_name": "appMain", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// appMain is the main routine for gomobile-build mode.", "docstring_tokens": ["appMain", "is", "the", "main", "routine", "for", "gomobile", "-", "build", "mode", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/uidriver/mobile/ui.go#L104-L154", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/typewriter/main.go", "func_name": "repeatingKeyPressed", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// repeatingKeyPressed return true when key is pressed considering the repeat state.", "docstring_tokens": ["repeatingKeyPressed", "return", "true", "when", "key", "is", "pressed", "considering", "the", "repeat", "state", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/typewriter/main.go#L34-L47", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphicsdriver/opengl/program.go", "func_name": "totalBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// totalBytes returns the size in bytes for one element of the array buffer.", "docstring_tokens": ["totalBytes", "returns", "the", "size", "in", "bytes", "for", "one", "element", "of", "the", "array", "buffer", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphicsdriver/opengl/program.go#L50-L60", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphicsdriver/opengl/program.go", "func_name": "newArrayBuffer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newArrayBuffer creates OpenGL's buffer object for the array buffer.", "docstring_tokens": ["newArrayBuffer", "creates", "OpenGL", "s", "buffer", "object", "for", "the", "array", "buffer", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphicsdriver/opengl/program.go#L63-L65", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphicsdriver/opengl/program.go", "func_name": "enable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// enable binds the array buffer the given program to use the array buffer.", "docstring_tokens": ["enable", "binds", "the", "array", "buffer", "the", "given", "program", "to", "use", "the", "array", "buffer", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphicsdriver/opengl/program.go#L68-L78", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphicsdriver/opengl/program.go", "func_name": "disable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// disable stops using the array buffer.", "docstring_tokens": ["disable", "stops", "using", "the", "array", "buffer", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphicsdriver/opengl/program.go#L81-L86", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphicsdriver/opengl/program.go", "func_name": "reset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// reset resets or initializes the OpenGL state.", "docstring_tokens": ["reset", "resets", "or", "initializes", "the", "OpenGL", "state", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphicsdriver/opengl/program.go#L160-L246", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphicsdriver/opengl/program.go", "func_name": "areSameFloat32Array", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// areSameFloat32Array returns a boolean indicating if a and b are deeply equal.", "docstring_tokens": ["areSameFloat32Array", "returns", "a", "boolean", "indicating", "if", "a", "and", "b", "are", "deeply", "equal", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphicsdriver/opengl/program.go#L249-L259", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "audio/loop.go", "func_name": "NewInfiniteLoopWithIntro", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewInfiniteLoopWithIntro creates a new infinite loop stream with an intro part.\n// NewInfiniteLoopWithIntro accepts a source stream src, introLength in bytes and loopLength in bytes.", "docstring_tokens": ["NewInfiniteLoopWithIntro", "creates", "a", "new", "infinite", "loop", "stream", "with", "an", "intro", "part", ".", "NewInfiniteLoopWithIntro", "accepts", "a", "source", "stream", "src", "introLength", "in", "bytes", "and", "loopLength", "in", "bytes", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/audio/loop.go#L37-L44", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "audio/loop.go", "func_name": "Read", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read is implementation of ReadSeekCloser's Read.", "docstring_tokens": ["Read", "is", "implementation", "of", "ReadSeekCloser", "s", "Read", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/audio/loop.go#L66-L93", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "audio/loop.go", "func_name": "Seek", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Seek is implementation of ReadSeekCloser's Seek.", "docstring_tokens": ["Seek", "is", "implementation", "of", "ReadSeekCloser", "s", "Seek", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/audio/loop.go#L96-L123", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/restorable/images.go", "func_name": "remove", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// remove removes img from the images.", "docstring_tokens": ["remove", "removes", "img", "from", "the", "images", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/restorable/images.go#L110-L113", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/restorable/images.go", "func_name": "resolveStaleImages", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resolveStaleImages resolves stale images.", "docstring_tokens": ["resolveStaleImages", "resolves", "stale", "images", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/restorable/images.go#L116-L121", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/airship/main.go", "func_name": "MoveForward", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MoveForward moves the player p forward.", "docstring_tokens": ["MoveForward", "moves", "the", "player", "p", "forward", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/airship/main.go#L123-L142", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/airship/main.go", "func_name": "RotateRight", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RotateRight rotates the player p in the right direction.", "docstring_tokens": ["RotateRight", "rotates", "the", "player", "p", "in", "the", "right", "direction", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/airship/main.go#L145-L154", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/airship/main.go", "func_name": "RotateLeft", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RotateLeft rotates the player p in the left direction.", "docstring_tokens": ["RotateLeft", "rotates", "the", "player", "p", "in", "the", "left", "direction", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/airship/main.go#L157-L166", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/airship/main.go", "func_name": "updateGroundImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// updateGroundImage updates the ground image according to the current player's position.", "docstring_tokens": ["updateGroundImage", "updates", "the", "ground", "image", "according", "to", "the", "current", "player", "s", "position", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/airship/main.go#L189-L202", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/airship/main.go", "func_name": "drawGroundImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// drawGroundImage draws the ground image to the given screen image.", "docstring_tokens": ["drawGroundImage", "draws", "the", "ground", "image", "to", "the", "given", "screen", "image", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/airship/main.go#L205-L231", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/2048/2048/input.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns a string representing the direction.", "docstring_tokens": ["String", "returns", "a", "string", "representing", "the", "direction", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/2048/2048/input.go#L50-L62", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/2048/2048/input.go", "func_name": "Update", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Update updates the current input states.", "docstring_tokens": ["Update", "updates", "the", "current", "input", "states", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/2048/2048/input.go#L125-L195", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/2048/2048/input.go", "func_name": "Dir", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Dir returns a currently pressed direction.\n// Dir returns false if no direction key is pressed.", "docstring_tokens": ["Dir", "returns", "a", "currently", "pressed", "direction", ".", "Dir", "returns", "false", "if", "no", "direction", "key", "is", "pressed", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/2048/2048/input.go#L199-L219", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "examples/sinewave/main.go", "func_name": "Read", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read is io.Reader's Read.\n//\n// Read fills the data with sine wave samples.", "docstring_tokens": ["Read", "is", "io", ".", "Reader", "s", "Read", ".", "Read", "fills", "the", "data", "with", "sine", "wave", "samples", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/examples/sinewave/main.go#L55-L89", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "image.go", "func_name": "Size", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Size returns the size of the image.", "docstring_tokens": ["Size", "returns", "the", "size", "of", "the", "image", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/image.go#L146-L149", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "image.go", "func_name": "Fill", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fill fills the image with a solid color.\n//\n// When the image is disposed, Fill does nothing.\n//\n// Fill always returns nil as of 1.5.0-alpha.", "docstring_tokens": ["Fill", "fills", "the", "image", "with", "a", "solid", "color", ".", "When", "the", "image", "is", "disposed", "Fill", "does", "nothing", ".", "Fill", "always", "returns", "nil", "as", "of", "1", ".", "5", ".", "0", "-", "alpha", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/image.go#L174-L192", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "image.go", "func_name": "Bounds", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Bounds returns the bounds of the image.", "docstring_tokens": ["Bounds", "returns", "the", "bounds", "of", "the", "image", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/image.go#L536-L542", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "image.go", "func_name": "Dispose", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Dispose disposes the image data. After disposing, most of image functions do nothing and returns meaningless values.\n//\n// Dispose is useful to save memory.\n//\n// When the image is disposed, Dipose does nothing.\n//\n// Dipose always return nil as of 1.5.0-alpha.", "docstring_tokens": ["Dispose", "disposes", "the", "image", "data", ".", "After", "disposing", "most", "of", "image", "functions", "do", "nothing", "and", "returns", "meaningless", "values", ".", "Dispose", "is", "useful", "to", "save", "memory", ".", "When", "the", "image", "is", "disposed", "Dipose", "does", "nothing", ".", "Dipose", "always", "return", "nil", "as", "of", "1", ".", "5", ".", "0", "-", "alpha", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/image.go#L647-L658", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "image.go", "func_name": "NewImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewImage returns an empty image.\n//\n// If width or height is less than 1 or more than device-dependent maximum size, NewImage panics.\n//\n// filter argument is just for backward compatibility.\n// If you are not sure, specify FilterDefault.\n//\n// Error returned by NewImage is always nil as of 1.5.0-alpha.", "docstring_tokens": ["NewImage", "returns", "an", "empty", "image", ".", "If", "width", "or", "height", "is", "less", "than", "1", "or", "more", "than", "device", "-", "dependent", "maximum", "size", "NewImage", "panics", ".", "filter", "argument", "is", "just", "for", "backward", "compatibility", ".", "If", "you", "are", "not", "sure", "specify", "FilterDefault", ".", "Error", "returned", "by", "NewImage", "is", "always", "nil", "as", "of", "1", ".", "5", ".", "0", "-", "alpha", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/image.go#L734-L742", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "image.go", "func_name": "makeVolatile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// makeVolatile makes the image 'volatile'.\n// A volatile image is always cleared at the start of a frame.\n//\n// This is suitable for offscreen images that pixels are changed often.\n//\n// Regular non-volatile images need to record drawing history or read its pixels from GPU if necessary so that all\n// the images can be restored automatically from the context lost. However, such recording the drawing history or\n// reading pixels from GPU are expensive operations. Volatile images can skip such oprations, but the image content\n// is cleared every frame instead.\n//\n// When the image is disposed, makeVolatile does nothing.", "docstring_tokens": ["makeVolatile", "makes", "the", "image", "volatile", ".", "A", "volatile", "image", "is", "always", "cleared", "at", "the", "start", "of", "a", "frame", ".", "This", "is", "suitable", "for", "offscreen", "images", "that", "pixels", "are", "changed", "often", ".", "Regular", "non", "-", "volatile", "images", "need", "to", "record", "drawing", "history", "or", "read", "its", "pixels", "from", "GPU", "if", "necessary", "so", "that", "all", "the", "images", "can", "be", "restored", "automatically", "from", "the", "context", "lost", ".", "However", "such", "recording", "the", "drawing", "history", "or", "reading", "pixels", "from", "GPU", "are", "expensive", "operations", ".", "Volatile", "images", "can", "skip", "such", "oprations", "but", "the", "image", "content", "is", "cleared", "every", "frame", "instead", ".", "When", "the", "image", "is", "disposed", "makeVolatile", "does", "nothing", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/image.go#L755-L761", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/uidriver/glfw/ui.go", "func_name": "isFullscreen", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isFullscreen must be called from the main thread.", "docstring_tokens": ["isFullscreen", "must", "be", "called", "from", "the", "main", "thread", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/uidriver/glfw/ui.go#L323-L328", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/uidriver/glfw/ui.go", "func_name": "glfwSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getSize must be called from the main thread.", "docstring_tokens": ["getSize", "must", "be", "called", "from", "the", "main", "thread", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/uidriver/glfw/ui.go#L688-L692", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/uidriver/glfw/ui.go", "func_name": "getScale", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getScale must be called from the main thread.", "docstring_tokens": ["getScale", "must", "be", "called", "from", "the", "main", "thread", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/uidriver/glfw/ui.go#L695-L710", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/uidriver/glfw/ui.go", "func_name": "actualScreenScale", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// actualScreenScale must be called from the main thread.", "docstring_tokens": ["actualScreenScale", "must", "be", "called", "from", "the", "main", "thread", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/uidriver/glfw/ui.go#L713-L719", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/uidriver/glfw/ui.go", "func_name": "setScreenSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setScreenSize must be called from the main thread.", "docstring_tokens": ["setScreenSize", "must", "be", "called", "from", "the", "main", "thread", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/uidriver/glfw/ui.go#L839-L845", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/uidriver/glfw/ui.go", "func_name": "currentMonitor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// currentMonitor returns the monitor most suitable with the current window.\n//\n// currentMonitor must be called on the main thread.", "docstring_tokens": ["currentMonitor", "returns", "the", "monitor", "most", "suitable", "with", "the", "current", "window", ".", "currentMonitor", "must", "be", "called", "on", "the", "main", "thread", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/uidriver/glfw/ui.go#L953-L960", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphics/copy.go", "func_name": "CopyImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CopyImage copies img to a new RGBA image.\n//\n// Basically CopyImage just calls draw.Draw.\n// If img is a paletted image, an optimized copying method is used.\n//\n// CopyImage is used only internally but it is exposed for testing.", "docstring_tokens": ["CopyImage", "copies", "img", "to", "a", "new", "RGBA", "image", ".", "Basically", "CopyImage", "just", "calls", "draw", ".", "Draw", ".", "If", "img", "is", "a", "paletted", "image", "an", "optimized", "copying", "method", "is", "used", ".", "CopyImage", "is", "used", "only", "internally", "but", "it", "is", "exposed", "for", "testing", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphics/copy.go#L29-L75", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphicscommand/command.go", "func_name": "appendVertices", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// appendVertices appends vertices to the queue.", "docstring_tokens": ["appendVertices", "appends", "vertices", "to", "the", "queue", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphicscommand/command.go#L77-L84", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphicscommand/command.go", "func_name": "EnqueueDrawTrianglesCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EnqueueDrawTrianglesCommand enqueues a drawing-image command.", "docstring_tokens": ["EnqueueDrawTrianglesCommand", "enqueues", "a", "drawing", "-", "image", "command", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphicscommand/command.go#L122-L141", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphicscommand/command.go", "func_name": "Enqueue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Enqueue enqueues a drawing command other than a draw-image command.\n//\n// For a draw-image command, use EnqueueDrawTrianglesCommand.", "docstring_tokens": ["Enqueue", "enqueues", "a", "drawing", "command", "other", "than", "a", "draw", "-", "image", "command", ".", "For", "a", "draw", "-", "image", "command", "use", "EnqueueDrawTrianglesCommand", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphicscommand/command.go#L146-L149", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphicscommand/command.go", "func_name": "Flush", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Flush flushes the command queue.", "docstring_tokens": ["Flush", "flushes", "the", "command", "queue", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphicscommand/command.go#L152-L210", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphicscommand/command.go", "func_name": "Exec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Exec executes the drawTrianglesCommand.", "docstring_tokens": ["Exec", "executes", "the", "drawTrianglesCommand", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphicscommand/command.go#L239-L251", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphicscommand/command.go", "func_name": "CanMerge", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CanMerge returns a boolean value indicating whether the other drawTrianglesCommand can be merged\n// with the drawTrianglesCommand c.", "docstring_tokens": ["CanMerge", "returns", "a", "boolean", "value", "indicating", "whether", "the", "other", "drawTrianglesCommand", "can", "be", "merged", "with", "the", "drawTrianglesCommand", "c", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphicscommand/command.go#L271-L291", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphicscommand/command.go", "func_name": "Exec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Exec executes the replacePixelsCommand.", "docstring_tokens": ["Exec", "executes", "the", "replacePixelsCommand", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphicscommand/command.go#L308-L311", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphicscommand/command.go", "func_name": "Exec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Exec executes a pixelsCommand.", "docstring_tokens": ["Exec", "executes", "a", "pixelsCommand", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphicscommand/command.go#L376-L383", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphicscommand/command.go", "func_name": "Exec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Exec executes the disposeCommand.", "docstring_tokens": ["Exec", "executes", "the", "disposeCommand", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphicscommand/command.go#L417-L420", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphicscommand/command.go", "func_name": "Exec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Exec executes a newImageCommand.", "docstring_tokens": ["Exec", "executes", "a", "newImageCommand", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphicscommand/command.go#L452-L459", "partition": "valid"} +{"repo": "hajimehoshi/ebiten", "path": "internal/graphicscommand/command.go", "func_name": "Exec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Exec executes a newScreenFramebufferImageCommand.", "docstring_tokens": ["Exec", "executes", "a", "newScreenFramebufferImageCommand", "."], "sha": "3ce8babd9bd0470bd5683158cc320277cc04d5ed", "url": "https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphicscommand/command.go#L491-L495", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_network_policy_structure.go", "func_name": "schemaHostNetworkPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// schemaHostNetworkPolicy returns schema items for resources that need to work\n// with a HostNetworkPolicy, such as virtual switches and port groups.", "docstring_tokens": ["schemaHostNetworkPolicy", "returns", "schema", "items", "for", "resources", "that", "need", "to", "work", "with", "a", "HostNetworkPolicy", "such", "as", "virtual", "switches", "and", "port", "groups", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_network_policy_structure.go#L26-L104", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_network_policy_structure.go", "func_name": "expandHostNicFailureCriteria", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandHostNicFailureCriteria reads certain ResourceData keys and returns a\n// HostNicFailureCriteria.", "docstring_tokens": ["expandHostNicFailureCriteria", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "HostNicFailureCriteria", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_network_policy_structure.go#L108-L125", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_network_policy_structure.go", "func_name": "flattenHostNicFailureCriteria", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenHostNicFailureCriteria reads various fields from a\n// HostNicFailureCriteria into the passed in ResourceData.", "docstring_tokens": ["flattenHostNicFailureCriteria", "reads", "various", "fields", "from", "a", "HostNicFailureCriteria", "into", "the", "passed", "in", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_network_policy_structure.go#L129-L134", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_network_policy_structure.go", "func_name": "expandHostNicOrderPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandHostNicOrderPolicy reads certain ResourceData keys and returns a\n// HostNicOrderPolicy.", "docstring_tokens": ["expandHostNicOrderPolicy", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "HostNicOrderPolicy", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_network_policy_structure.go#L138-L148", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_network_policy_structure.go", "func_name": "flattenHostNicOrderPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenHostNicOrderPolicy reads various fields from a HostNicOrderPolicy\n// into the passed in ResourceData.", "docstring_tokens": ["flattenHostNicOrderPolicy", "reads", "various", "fields", "from", "a", "HostNicOrderPolicy", "into", "the", "passed", "in", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_network_policy_structure.go#L152-L163", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_network_policy_structure.go", "func_name": "expandHostNicTeamingPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandHostNicTeamingPolicy reads certain ResourceData keys and returns a\n// HostNicTeamingPolicy.", "docstring_tokens": ["expandHostNicTeamingPolicy", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "HostNicTeamingPolicy", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_network_policy_structure.go#L167-L185", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_network_policy_structure.go", "func_name": "flattenHostNicTeamingPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenHostNicTeamingPolicy reads various fields from a HostNicTeamingPolicy\n// into the passed in ResourceData.", "docstring_tokens": ["flattenHostNicTeamingPolicy", "reads", "various", "fields", "from", "a", "HostNicTeamingPolicy", "into", "the", "passed", "in", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_network_policy_structure.go#L189-L205", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_network_policy_structure.go", "func_name": "expandHostNetworkSecurityPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandHostNetworkSecurityPolicy reads certain ResourceData keys and returns\n// a HostNetworkSecurityPolicy.", "docstring_tokens": ["expandHostNetworkSecurityPolicy", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "HostNetworkSecurityPolicy", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_network_policy_structure.go#L209-L221", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_network_policy_structure.go", "func_name": "flattenHostNetworkSecurityPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenHostNetworkSecurityPolicy reads various fields from a\n// HostNetworkSecurityPolicy into the passed in ResourceData.", "docstring_tokens": ["flattenHostNetworkSecurityPolicy", "reads", "various", "fields", "from", "a", "HostNetworkSecurityPolicy", "into", "the", "passed", "in", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_network_policy_structure.go#L225-L236", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_network_policy_structure.go", "func_name": "expandHostNetworkTrafficShapingPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandHostNetworkTrafficShapingPolicy reads certain ResourceData keys and\n// returns a HostNetworkTrafficShapingPolicy.", "docstring_tokens": ["expandHostNetworkTrafficShapingPolicy", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "HostNetworkTrafficShapingPolicy", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_network_policy_structure.go#L240-L250", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_network_policy_structure.go", "func_name": "flattenHostNetworkTrafficShapingPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenHostNetworkTrafficShapingPolicy reads various fields from a\n// HostNetworkTrafficShapingPolicy into the passed in ResourceData.", "docstring_tokens": ["flattenHostNetworkTrafficShapingPolicy", "reads", "various", "fields", "from", "a", "HostNetworkTrafficShapingPolicy", "into", "the", "passed", "in", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_network_policy_structure.go#L254-L262", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_network_policy_structure.go", "func_name": "expandHostNetworkPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandHostNetworkPolicy reads certain ResourceData keys and returns a\n// HostNetworkPolicy.", "docstring_tokens": ["expandHostNetworkPolicy", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "HostNetworkPolicy", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_network_policy_structure.go#L266-L273", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_network_policy_structure.go", "func_name": "flattenHostNetworkPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenHostNetworkPolicy reads various fields from a HostNetworkPolicy into\n// the passed in ResourceData.", "docstring_tokens": ["flattenHostNetworkPolicy", "reads", "various", "fields", "from", "a", "HostNetworkPolicy", "into", "the", "passed", "in", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_network_policy_structure.go#L277-L288", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_nas_volume_structure.go", "func_name": "schemaHostNasVolumeSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// schemaHostNasVolumeSpec returns schema items for resources that need to work\n// with a HostNasVolumeSpec.", "docstring_tokens": ["schemaHostNasVolumeSpec", "returns", "schema", "items", "for", "resources", "that", "need", "to", "work", "with", "a", "HostNasVolumeSpec", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_nas_volume_structure.go#L21-L90", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_nas_volume_structure.go", "func_name": "expandHostNasVolumeSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandHostNasVolumeSpec reads certain ResourceData keys and returns a\n// HostNasVolumeSpec.", "docstring_tokens": ["expandHostNasVolumeSpec", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "HostNasVolumeSpec", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_nas_volume_structure.go#L94-L106", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_nas_volume_structure.go", "func_name": "flattenHostNasVolume", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenHostNasVolume reads various fields from a HostNasVolume into the\n// passed in ResourceData.\n//\n// Note the name attribute is not set here, bur rather set in\n// flattenDatastoreSummary and sourced from there.", "docstring_tokens": ["flattenHostNasVolume", "reads", "various", "fields", "from", "a", "HostNasVolume", "into", "the", "passed", "in", "ResourceData", ".", "Note", "the", "name", "attribute", "is", "not", "set", "here", "bur", "rather", "set", "in", "flattenDatastoreSummary", "and", "sourced", "from", "there", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_nas_volume_structure.go#L113-L122", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_nas_volume_structure.go", "func_name": "isNasVolume", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isNasVolume returns true if the HostFileSystemVolumeFileSystemType matches\n// one of the possible filesystem types that a NAS datastore supports.", "docstring_tokens": ["isNasVolume", "returns", "true", "if", "the", "HostFileSystemVolumeFileSystemType", "matches", "one", "of", "the", "possible", "filesystem", "types", "that", "a", "NAS", "datastore", "supports", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_nas_volume_structure.go#L126-L132", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_port_group_structure.go", "func_name": "expandVMwareDVSPortgroupPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandVMwareDVSPortgroupPolicy reads certain ResourceData keys and\n// returns a VMwareDVSPortgroupPolicy.", "docstring_tokens": ["expandVMwareDVSPortgroupPolicy", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "VMwareDVSPortgroupPolicy", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_port_group_structure.go#L125-L141", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_port_group_structure.go", "func_name": "flattenVMwareDVSPortgroupPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenVMwareDVSPortgroupPolicy reads various fields from a\n// VMwareDVSPortgroupPolicy into the passed in ResourceData.", "docstring_tokens": ["flattenVMwareDVSPortgroupPolicy", "reads", "various", "fields", "from", "a", "VMwareDVSPortgroupPolicy", "into", "the", "passed", "in", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_port_group_structure.go#L145-L158", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_port_group_structure.go", "func_name": "expandDVPortgroupConfigSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandDVPortgroupConfigSpec reads certain ResourceData keys and\n// returns a DVPortgroupConfigSpec.", "docstring_tokens": ["expandDVPortgroupConfigSpec", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "DVPortgroupConfigSpec", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_port_group_structure.go#L162-L176", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_port_group_structure.go", "func_name": "flattenDVPortgroupConfigInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenDVPortgroupConfigInfo reads various fields from a\n// DVPortgroupConfigInfo into the passed in ResourceData.\n//\n// This is the flatten counterpart to expandDVPortgroupConfigSpec.", "docstring_tokens": ["flattenDVPortgroupConfigInfo", "reads", "various", "fields", "from", "a", "DVPortgroupConfigInfo", "into", "the", "passed", "in", "ResourceData", ".", "This", "is", "the", "flatten", "counterpart", "to", "expandDVPortgroupConfigSpec", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_port_group_structure.go#L182-L199", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster_host_group.go", "func_name": "expandClusterHostGroup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandClusterHostGroup reads certain ResourceData keys and returns a\n// ClusterHostGroup.", "docstring_tokens": ["expandClusterHostGroup", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "ClusterHostGroup", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster_host_group.go#L232-L241", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster_host_group.go", "func_name": "flattenClusterHostGroup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenClusterHostGroup saves a ClusterHostGroup into the supplied ResourceData.", "docstring_tokens": ["flattenClusterHostGroup", "saves", "a", "ClusterHostGroup", "into", "the", "supplied", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster_host_group.go#L244-L253", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster_host_group.go", "func_name": "resourceVSphereComputeClusterHostGroupFlattenID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereComputeClusterHostGroupFlattenID makes an ID for the\n// vsphere_cluster_host_group resource.", "docstring_tokens": ["resourceVSphereComputeClusterHostGroupFlattenID", "makes", "an", "ID", "for", "the", "vsphere_cluster_host_group", "resource", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster_host_group.go#L263-L266", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster_host_group.go", "func_name": "resourceVSphereComputeClusterHostGroupFetchObjects", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereComputeClusterHostGroupFetchObjects fetches the \"objects\" for\n// a cluster host group. This is currently just the cluster object as the name\n// of the group is a static value and a pass-through - this is to keep its\n// workflow consistent with other cluster-dependent resources that derive from\n// ArrayUpdateSpec that have managed object as keys, such as VM and host\n// overrides.", "docstring_tokens": ["resourceVSphereComputeClusterHostGroupFetchObjects", "fetches", "the", "objects", "for", "a", "cluster", "host", "group", ".", "This", "is", "currently", "just", "the", "cluster", "object", "as", "the", "name", "of", "the", "group", "is", "a", "static", "value", "and", "a", "pass", "-", "through", "-", "this", "is", "to", "keep", "its", "workflow", "consistent", "with", "other", "cluster", "-", "dependent", "resources", "that", "derive", "from", "ArrayUpdateSpec", "that", "have", "managed", "object", "as", "keys", "such", "as", "VM", "and", "host", "overrides", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster_host_group.go#L351-L367", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/vmworkflow/virtual_machine_customize_subresource.go", "func_name": "netifKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// netifKey renders a specific network_interface key for a specific resource\n// index.", "docstring_tokens": ["netifKey", "renders", "a", "specific", "network_interface", "key", "for", "a", "specific", "resource", "index", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/vmworkflow/virtual_machine_customize_subresource.go#L24-L26", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/vmworkflow/virtual_machine_customize_subresource.go", "func_name": "matchGateway", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// matchGateway take an IP, mask, and gateway, and checks to see if the gateway\n// is reachable from the IP address.", "docstring_tokens": ["matchGateway", "take", "an", "IP", "mask", "and", "gateway", "and", "checks", "to", "see", "if", "the", "gateway", "is", "reachable", "from", "the", "IP", "address", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/vmworkflow/virtual_machine_customize_subresource.go#L30-L43", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/vmworkflow/virtual_machine_customize_subresource.go", "func_name": "expandCustomizationGlobalIPSettings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandCustomizationGlobalIPSettings reads certain ResourceData keys and\n// returns a CustomizationGlobalIPSettings.", "docstring_tokens": ["expandCustomizationGlobalIPSettings", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "CustomizationGlobalIPSettings", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/vmworkflow/virtual_machine_customize_subresource.go#L270-L276", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/vmworkflow/virtual_machine_customize_subresource.go", "func_name": "expandCustomizationLinuxPrep", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandCustomizationLinuxPrep reads certain ResourceData keys and\n// returns a CustomizationLinuxPrep.", "docstring_tokens": ["expandCustomizationLinuxPrep", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "CustomizationLinuxPrep", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/vmworkflow/virtual_machine_customize_subresource.go#L280-L290", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/vmworkflow/virtual_machine_customize_subresource.go", "func_name": "expandCustomizationGuiRunOnce", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandCustomizationGuiRunOnce reads certain ResourceData keys and\n// returns a CustomizationGuiRunOnce.", "docstring_tokens": ["expandCustomizationGuiRunOnce", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "CustomizationGuiRunOnce", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/vmworkflow/virtual_machine_customize_subresource.go#L294-L302", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/vmworkflow/virtual_machine_customize_subresource.go", "func_name": "expandCustomizationGuiUnattended", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandCustomizationGuiUnattended reads certain ResourceData keys and\n// returns a CustomizationGuiUnattended.", "docstring_tokens": ["expandCustomizationGuiUnattended", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "CustomizationGuiUnattended", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/vmworkflow/virtual_machine_customize_subresource.go#L306-L320", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/vmworkflow/virtual_machine_customize_subresource.go", "func_name": "expandCustomizationIdentification", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandCustomizationIdentification reads certain ResourceData keys and\n// returns a CustomizationIdentification.", "docstring_tokens": ["expandCustomizationIdentification", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "CustomizationIdentification", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/vmworkflow/virtual_machine_customize_subresource.go#L324-L337", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/vmworkflow/virtual_machine_customize_subresource.go", "func_name": "expandCustomizationUserData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandCustomizationUserData reads certain ResourceData keys and\n// returns a CustomizationUserData.", "docstring_tokens": ["expandCustomizationUserData", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "CustomizationUserData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/vmworkflow/virtual_machine_customize_subresource.go#L341-L351", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/vmworkflow/virtual_machine_customize_subresource.go", "func_name": "expandCustomizationSysprep", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandCustomizationSysprep reads certain ResourceData keys and\n// returns a CustomizationSysprep.", "docstring_tokens": ["expandCustomizationSysprep", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "CustomizationSysprep", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/vmworkflow/virtual_machine_customize_subresource.go#L355-L363", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/vmworkflow/virtual_machine_customize_subresource.go", "func_name": "expandCustomizationSysprepText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandCustomizationSysprepText reads certain ResourceData keys and\n// returns a CustomizationSysprepText.", "docstring_tokens": ["expandCustomizationSysprepText", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "CustomizationSysprepText", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/vmworkflow/virtual_machine_customize_subresource.go#L367-L372", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/vmworkflow/virtual_machine_customize_subresource.go", "func_name": "expandCustomizationIPSettingsIPV6AddressSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandCustomizationIPSettingsIPV6AddressSpec reads certain ResourceData keys and\n// returns a CustomizationIPSettingsIpV6AddressSpec.", "docstring_tokens": ["expandCustomizationIPSettingsIPV6AddressSpec", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "CustomizationIPSettingsIpV6AddressSpec", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/vmworkflow/virtual_machine_customize_subresource.go#L399-L421", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/vmworkflow/virtual_machine_customize_subresource.go", "func_name": "expandCustomizationIPSettings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandCustomizationIPSettings reads certain ResourceData keys and\n// returns a CustomizationIPSettings.", "docstring_tokens": ["expandCustomizationIPSettings", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "CustomizationIPSettings", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/vmworkflow/virtual_machine_customize_subresource.go#L425-L449", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/vmworkflow/virtual_machine_customize_subresource.go", "func_name": "expandSliceOfCustomizationAdapterMapping", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandSliceOfCustomizationAdapterMapping reads certain ResourceData keys and\n// returns a CustomizationAdapterMapping slice.", "docstring_tokens": ["expandSliceOfCustomizationAdapterMapping", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "CustomizationAdapterMapping", "slice", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/vmworkflow/virtual_machine_customize_subresource.go#L453-L469", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/vmworkflow/virtual_machine_customize_subresource.go", "func_name": "ExpandCustomizationSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ExpandCustomizationSpec reads certain ResourceData keys and\n// returns a CustomizationSpec.", "docstring_tokens": ["ExpandCustomizationSpec", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "CustomizationSpec", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/vmworkflow/virtual_machine_customize_subresource.go#L473-L480", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/vmworkflow/virtual_machine_customize_subresource.go", "func_name": "ValidateCustomizationSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidateCustomizationSpec checks the validity of the supplied customization\n// spec. It should be called during diff customization to veto invalid configs.", "docstring_tokens": ["ValidateCustomizationSpec", "checks", "the", "validity", "of", "the", "supplied", "customization", "spec", ".", "It", "should", "be", "called", "during", "diff", "customization", "to", "veto", "invalid", "configs", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/vmworkflow/virtual_machine_customize_subresource.go#L484-L496", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_virtual_switch_structure.go", "func_name": "schemaHostVirtualSwitchBondBridge", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// schemaHostVirtualSwitchBondBridge returns schema items for resources that\n// need to work with a HostVirtualSwitchBondBridge, such as virtual switches.", "docstring_tokens": ["schemaHostVirtualSwitchBondBridge", "returns", "schema", "items", "for", "resources", "that", "need", "to", "work", "with", "a", "HostVirtualSwitchBondBridge", "such", "as", "virtual", "switches", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_virtual_switch_structure.go#L29-L64", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_virtual_switch_structure.go", "func_name": "expandHostVirtualSwitchBeaconConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandHostVirtualSwitchBeaconConfig reads certain ResourceData keys and\n// returns a HostVirtualSwitchBeaconConfig.", "docstring_tokens": ["expandHostVirtualSwitchBeaconConfig", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "HostVirtualSwitchBeaconConfig", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_virtual_switch_structure.go#L68-L73", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_virtual_switch_structure.go", "func_name": "flattenHostVirtualSwitchBeaconConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenHostVirtualSwitchBeaconConfig reads various fields from a\n// HostVirtualSwitchBeaconConfig into the passed in ResourceData.", "docstring_tokens": ["flattenHostVirtualSwitchBeaconConfig", "reads", "various", "fields", "from", "a", "HostVirtualSwitchBeaconConfig", "into", "the", "passed", "in", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_virtual_switch_structure.go#L77-L80", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_virtual_switch_structure.go", "func_name": "expandLinkDiscoveryProtocolConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandLinkDiscoveryProtocolConfig reads certain ResourceData keys and\n// returns a LinkDiscoveryProtocolConfig.", "docstring_tokens": ["expandLinkDiscoveryProtocolConfig", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "LinkDiscoveryProtocolConfig", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_virtual_switch_structure.go#L84-L90", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_virtual_switch_structure.go", "func_name": "flattenLinkDiscoveryProtocolConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenLinkDiscoveryProtocolConfig reads various fields from a\n// LinkDiscoveryProtocolConfig into the passed in ResourceData.", "docstring_tokens": ["flattenLinkDiscoveryProtocolConfig", "reads", "various", "fields", "from", "a", "LinkDiscoveryProtocolConfig", "into", "the", "passed", "in", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_virtual_switch_structure.go#L94-L98", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_virtual_switch_structure.go", "func_name": "expandHostVirtualSwitchBondBridge", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandHostVirtualSwitchBondBridge reads certain ResourceData keys and\n// returns a HostVirtualSwitchBondBridge.", "docstring_tokens": ["expandHostVirtualSwitchBondBridge", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "HostVirtualSwitchBondBridge", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_virtual_switch_structure.go#L102-L109", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_virtual_switch_structure.go", "func_name": "flattenHostVirtualSwitchBondBridge", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenHostVirtualSwitchBondBridge reads various fields from a\n// HostVirtualSwitchBondBridge into the passed in ResourceData.", "docstring_tokens": ["flattenHostVirtualSwitchBondBridge", "reads", "various", "fields", "from", "a", "HostVirtualSwitchBondBridge", "into", "the", "passed", "in", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_virtual_switch_structure.go#L113-L124", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_virtual_switch_structure.go", "func_name": "schemaHostVirtualSwitchSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// schemaHostVirtualSwitchSpec returns schema items for resources that need to\n// work with a HostVirtualSwitchSpec, such as virtual switches.", "docstring_tokens": ["schemaHostVirtualSwitchSpec", "returns", "schema", "items", "for", "resources", "that", "need", "to", "work", "with", "a", "HostVirtualSwitchSpec", "such", "as", "virtual", "switches", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_virtual_switch_structure.go#L128-L149", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_virtual_switch_structure.go", "func_name": "expandHostVirtualSwitchSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandHostVirtualSwitchSpec reads certain ResourceData keys and returns a\n// HostVirtualSwitchSpec.", "docstring_tokens": ["expandHostVirtualSwitchSpec", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "HostVirtualSwitchSpec", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_virtual_switch_structure.go#L153-L166", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_virtual_switch_structure.go", "func_name": "flattenHostVirtualSwitchSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenHostVirtualSwitchSpec reads various fields from a\n// HostVirtualSwitchSpec into the passed in ResourceData.", "docstring_tokens": ["flattenHostVirtualSwitchSpec", "reads", "various", "fields", "from", "a", "HostVirtualSwitchSpec", "into", "the", "passed", "in", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_virtual_switch_structure.go#L170-L182", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_virtual_switch_structure.go", "func_name": "saveHostVirtualSwitchID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// saveHostVirtualSwitchID sets a special ID for a host virtual switch,\n// composed of the MOID for the concerned HostSystem and the virtual switch's\n// key.", "docstring_tokens": ["saveHostVirtualSwitchID", "sets", "a", "special", "ID", "for", "a", "host", "virtual", "switch", "composed", "of", "the", "MOID", "for", "the", "concerned", "HostSystem", "and", "the", "virtual", "switch", "s", "key", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_virtual_switch_structure.go#L187-L189", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_virtual_switch_structure.go", "func_name": "virtualSwitchIDsFromResourceID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// virtualSwitchIDsFromResourceID passes a resource's ID through\n// splitHostVirtualSwitchID.", "docstring_tokens": ["virtualSwitchIDsFromResourceID", "passes", "a", "resource", "s", "ID", "through", "splitHostVirtualSwitchID", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_virtual_switch_structure.go#L204-L206", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_storage_drs_vm_override.go", "func_name": "expandStorageDrsVMConfigInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandStorageDrsVMConfigInfo reads certain ResourceData keys and returns a\n// StorageDrsVmConfigInfo.", "docstring_tokens": ["expandStorageDrsVMConfigInfo", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "StorageDrsVmConfigInfo", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_storage_drs_vm_override.go#L268-L286", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_storage_drs_vm_override.go", "func_name": "flattenStorageDrsVMConfigInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenStorageDrsVmConfigInfo saves a StorageDrsVmConfigInfo into the\n// supplied ResourceData.", "docstring_tokens": ["flattenStorageDrsVmConfigInfo", "saves", "a", "StorageDrsVmConfigInfo", "into", "the", "supplied", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_storage_drs_vm_override.go#L290-L302", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_storage_drs_vm_override.go", "func_name": "resourceVSphereStorageDrsVMOverrideFlattenID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereStorageDrsVMOverrideFlattenID makes an ID for the\n// vsphere_storage_drs_vm_override resource.", "docstring_tokens": ["resourceVSphereStorageDrsVMOverrideFlattenID", "makes", "an", "ID", "for", "the", "vsphere_storage_drs_vm_override", "resource", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_storage_drs_vm_override.go#L312-L320", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_storage_drs_vm_override.go", "func_name": "resourceVSphereStorageDrsVMOverrideFindEntry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereStorageDrsVMOverrideFindEntry attempts to locate an existing VM\n// config in a Storage Pod's DRS configuration. It's used by the resource's\n// read functionality and tests. nil is returned if the entry cannot be found.", "docstring_tokens": ["resourceVSphereStorageDrsVMOverrideFindEntry", "attempts", "to", "locate", "an", "existing", "VM", "config", "in", "a", "Storage", "Pod", "s", "DRS", "configuration", ".", "It", "s", "used", "by", "the", "resource", "s", "read", "functionality", "and", "tests", ".", "nil", "is", "returned", "if", "the", "entry", "cannot", "be", "found", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_storage_drs_vm_override.go#L335-L353", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_network_interface_subresource.go", "func_name": "NetworkInterfaceSubresourceSchema", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NetworkInterfaceSubresourceSchema returns the schema for the disk\n// sub-resource.", "docstring_tokens": ["NetworkInterfaceSubresourceSchema", "returns", "the", "schema", "for", "the", "disk", "sub", "-", "resource", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_network_interface_subresource.go#L49-L109", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_network_interface_subresource.go", "func_name": "NewNetworkInterfaceSubresource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewNetworkInterfaceSubresource returns a network_interface subresource\n// populated with all of the necessary fields.", "docstring_tokens": ["NewNetworkInterfaceSubresource", "returns", "a", "network_interface", "subresource", "populated", "with", "all", "of", "the", "necessary", "fields", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_network_interface_subresource.go#L119-L132", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_network_interface_subresource.go", "func_name": "NetworkInterfaceDiffOperation", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NetworkInterfaceDiffOperation performs operations relevant to managing the\n// diff on network_interface sub-resources.", "docstring_tokens": ["NetworkInterfaceDiffOperation", "performs", "operations", "relevant", "to", "managing", "the", "diff", "on", "network_interface", "sub", "-", "resources", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_network_interface_subresource.go#L357-L370", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_network_interface_subresource.go", "func_name": "ReadNetworkInterfaceTypes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadNetworkInterfaceTypes returns a list of network interface types. This is used\n// in the VM data source to discover the types of the NIC drivers on the\n// virtual machine. The list is sorted by the order that they would be added in\n// if a clone were to be done.", "docstring_tokens": ["ReadNetworkInterfaceTypes", "returns", "a", "list", "of", "network", "interface", "types", ".", "This", "is", "used", "in", "the", "VM", "data", "source", "to", "discover", "the", "types", "of", "the", "NIC", "drivers", "on", "the", "virtual", "machine", ".", "The", "list", "is", "sorted", "by", "the", "order", "that", "they", "would", "be", "added", "in", "if", "a", "clone", "were", "to", "be", "done", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_network_interface_subresource.go#L502-L525", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_network_interface_subresource.go", "func_name": "baseVirtualEthernetCardToBaseVirtualDevice", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// baseVirtualEthernetCardToBaseVirtualDevice converts a\n// BaseVirtualEthernetCard value into a BaseVirtualDevice.", "docstring_tokens": ["baseVirtualEthernetCardToBaseVirtualDevice", "converts", "a", "BaseVirtualEthernetCard", "value", "into", "a", "BaseVirtualDevice", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_network_interface_subresource.go#L529-L545", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_network_interface_subresource.go", "func_name": "baseVirtualDeviceToBaseVirtualEthernetCard", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// baseVirtualDeviceToBaseVirtualEthernetCard converts a BaseVirtualDevice\n// value into a BaseVirtualEthernetCard.", "docstring_tokens": ["baseVirtualDeviceToBaseVirtualEthernetCard", "converts", "a", "BaseVirtualDevice", "value", "into", "a", "BaseVirtualEthernetCard", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_network_interface_subresource.go#L549-L554", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_network_interface_subresource.go", "func_name": "virtualEthernetCardString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// virtualEthernetCardString prints a string representation of the ethernet device passed in.", "docstring_tokens": ["virtualEthernetCardString", "prints", "a", "string", "representation", "of", "the", "ethernet", "device", "passed", "in", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_network_interface_subresource.go#L557-L573", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_network_interface_subresource.go", "func_name": "Create", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create creates a vsphere_virtual_machine network_interface sub-resource.", "docstring_tokens": ["Create", "creates", "a", "vsphere_virtual_machine", "network_interface", "sub", "-", "resource", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_network_interface_subresource.go#L576-L647", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_network_interface_subresource.go", "func_name": "Read", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read reads a vsphere_virtual_machine network_interface sub-resource.", "docstring_tokens": ["Read", "reads", "a", "vsphere_virtual_machine", "network_interface", "sub", "-", "resource", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_network_interface_subresource.go#L650-L720", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_network_interface_subresource.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete deletes a vsphere_virtual_machine network_interface sub-resource.", "docstring_tokens": ["Delete", "deletes", "a", "vsphere_virtual_machine", "network_interface", "sub", "-", "resource", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_network_interface_subresource.go#L849-L871", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_network_interface_subresource.go", "func_name": "ValidateDiff", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidateDiff performs any complex validation of an individual\n// network_interface sub-resource that can't be done in schema alone.", "docstring_tokens": ["ValidateDiff", "performs", "any", "complex", "validation", "of", "an", "individual", "network_interface", "sub", "-", "resource", "that", "can", "t", "be", "done", "in", "schema", "alone", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_network_interface_subresource.go#L875-L889", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_network_interface_subresource.go", "func_name": "nicUnitRange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// nicUnitRange calculates a range of units given a certain VirtualDeviceList,\n// which should be network interfaces. It's used in network interface refresh\n// logic to determine how many subresources may end up in state.", "docstring_tokens": ["nicUnitRange", "calculates", "a", "range", "of", "units", "given", "a", "certain", "VirtualDeviceList", "which", "should", "be", "network", "interfaces", ".", "It", "s", "used", "in", "network", "interface", "refresh", "logic", "to", "determine", "how", "many", "subresources", "may", "end", "up", "in", "state", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_network_interface_subresource.go#L954-L972", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_storage_system_helper.go", "func_name": "hostStorageSystemFromHostSystemID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// hostStorageSystemFromHostSystemID locates a HostStorageSystem from a\n// specified HostSystem managed object ID.", "docstring_tokens": ["hostStorageSystemFromHostSystemID", "locates", "a", "HostStorageSystem", "from", "a", "specified", "HostSystem", "managed", "object", "ID", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_storage_system_helper.go#L13-L21", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/virtualmachine/virtual_machine_helper.go", "func_name": "FromUUID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FromUUID locates a virtualMachine by its UUID.", "docstring_tokens": ["FromUUID", "locates", "a", "virtualMachine", "by", "its", "UUID", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/virtualmachine/virtual_machine_helper.go#L61-L97", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/virtualmachine/virtual_machine_helper.go", "func_name": "virtualMachineFromSearchIndex", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// virtualMachineFromSearchIndex gets the virtual machine reference via the\n// SearchIndex MO and is the method used to fetch UUIDs on newer versions of\n// vSphere.", "docstring_tokens": ["virtualMachineFromSearchIndex", "gets", "the", "virtual", "machine", "reference", "via", "the", "SearchIndex", "MO", "and", "is", "the", "method", "used", "to", "fetch", "UUIDs", "on", "newer", "versions", "of", "vSphere", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/virtualmachine/virtual_machine_helper.go#L102-L115", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/virtualmachine/virtual_machine_helper.go", "func_name": "virtualMachineFromContainerView", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// virtualMachineFromContainerView is a compatability method that is\n// used when the version of vSphere is too old to support using SearchIndex's\n// FindByUuid method correctly. This is mainly to facilitate the ability to use\n// FromUUID to find both templates in addition to virtual machines, which\n// historically was not supported by FindByUuid.", "docstring_tokens": ["virtualMachineFromContainerView", "is", "a", "compatability", "method", "that", "is", "used", "when", "the", "version", "of", "vSphere", "is", "too", "old", "to", "support", "using", "SearchIndex", "s", "FindByUuid", "method", "correctly", ".", "This", "is", "mainly", "to", "facilitate", "the", "ability", "to", "use", "FromUUID", "to", "find", "both", "templates", "in", "addition", "to", "virtual", "machines", "which", "historically", "was", "not", "supported", "by", "FindByUuid", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/virtualmachine/virtual_machine_helper.go#L122-L160", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/virtualmachine/virtual_machine_helper.go", "func_name": "Properties", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Properties is a convenience method that wraps fetching the\n// VirtualMachine MO from its higher-level object.", "docstring_tokens": ["Properties", "is", "a", "convenience", "method", "that", "wraps", "fetching", "the", "VirtualMachine", "MO", "from", "its", "higher", "-", "level", "object", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/virtualmachine/virtual_machine_helper.go#L198-L207", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/virtualmachine/virtual_machine_helper.go", "func_name": "WaitForGuestIP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WaitForGuestIP waits for a virtual machine to have an IP address.\n//\n// The timeout is specified in minutes. If zero or a negative value is passed,\n// the waiter returns without error immediately.", "docstring_tokens": ["WaitForGuestIP", "waits", "for", "a", "virtual", "machine", "to", "have", "an", "IP", "address", ".", "The", "timeout", "is", "specified", "in", "minutes", ".", "If", "zero", "or", "a", "negative", "value", "is", "passed", "the", "waiter", "returns", "without", "error", "immediately", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/virtualmachine/virtual_machine_helper.go#L213-L259", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/virtualmachine/virtual_machine_helper.go", "func_name": "WaitForGuestNet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WaitForGuestNet waits for a virtual machine to have routable network\n// access. This is denoted as a gateway, and at least one IP address that can\n// reach that gateway. This function supports both IPv4 and IPv6, and returns\n// the moment either stack is routable - it doesn't wait for both.\n//\n// The timeout is specified in minutes. If zero or a negative value is passed,\n// the waiter returns without error immediately.", "docstring_tokens": ["WaitForGuestNet", "waits", "for", "a", "virtual", "machine", "to", "have", "routable", "network", "access", ".", "This", "is", "denoted", "as", "a", "gateway", "and", "at", "least", "one", "IP", "address", "that", "can", "reach", "that", "gateway", ".", "This", "function", "supports", "both", "IPv4", "and", "IPv6", "and", "returns", "the", "moment", "either", "stack", "is", "routable", "-", "it", "doesn", "t", "wait", "for", "both", ".", "The", "timeout", "is", "specified", "in", "minutes", ".", "If", "zero", "or", "a", "negative", "value", "is", "passed", "the", "waiter", "returns", "without", "error", "immediately", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/virtualmachine/virtual_machine_helper.go#L268-L347", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/virtualmachine/virtual_machine_helper.go", "func_name": "Create", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create wraps the creation of a virtual machine and the subsequent waiting of\n// the task. A higher-level virtual machine object is returned.", "docstring_tokens": ["Create", "wraps", "the", "creation", "of", "a", "virtual", "machine", "and", "the", "subsequent", "waiting", "of", "the", "task", ".", "A", "higher", "-", "level", "virtual", "machine", "object", "is", "returned", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/virtualmachine/virtual_machine_helper.go#L372-L398", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/virtualmachine/virtual_machine_helper.go", "func_name": "Clone", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Clone wraps the creation of a virtual machine and the subsequent waiting of\n// the task. A higher-level virtual machine object is returned.", "docstring_tokens": ["Clone", "wraps", "the", "creation", "of", "a", "virtual", "machine", "and", "the", "subsequent", "waiting", "of", "the", "task", ".", "A", "higher", "-", "level", "virtual", "machine", "object", "is", "returned", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/virtualmachine/virtual_machine_helper.go#L402-L422", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/virtualmachine/virtual_machine_helper.go", "func_name": "Customize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Customize wraps the customization of a virtual machine and the subsequent\n// waiting of the task.", "docstring_tokens": ["Customize", "wraps", "the", "customization", "of", "a", "virtual", "machine", "and", "the", "subsequent", "waiting", "of", "the", "task", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/virtualmachine/virtual_machine_helper.go#L426-L437", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/virtualmachine/virtual_machine_helper.go", "func_name": "MoveToFolder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MoveToFolder moves a virtual machine to the specified folder.", "docstring_tokens": ["MoveToFolder", "moves", "a", "virtual", "machine", "to", "the", "specified", "folder", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/virtualmachine/virtual_machine_helper.go#L545-L552", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/virtualmachine/virtual_machine_helper.go", "func_name": "Relocate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Relocate wraps the Relocate task and the subsequent waiting for the task to\n// complete.", "docstring_tokens": ["Relocate", "wraps", "the", "Relocate", "task", "and", "the", "subsequent", "waiting", "for", "the", "task", "to", "complete", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/virtualmachine/virtual_machine_helper.go#L571-L586", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/virtualmachine/virtual_machine_helper.go", "func_name": "MOIDForUUID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MOIDForUUID returns the managed object reference ID for a specific virtual\n// machine UUID and returns a MOIDForUUIDResult with the appropriate\n// association.", "docstring_tokens": ["MOIDForUUID", "returns", "the", "managed", "object", "reference", "ID", "for", "a", "specific", "virtual", "machine", "UUID", "and", "returns", "a", "MOIDForUUIDResult", "with", "the", "appropriate", "association", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/virtualmachine/virtual_machine_helper.go#L622-L631", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/virtualmachine/virtual_machine_helper.go", "func_name": "UUIDForMOID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UUIDForMOID returns the managed object reference ID for a specific virtual\n// machine MOID and returns a MOIDForUUIDResult with the appropriate\n// association.", "docstring_tokens": ["UUIDForMOID", "returns", "the", "managed", "object", "reference", "ID", "for", "a", "specific", "virtual", "machine", "MOID", "and", "returns", "a", "MOIDForUUIDResult", "with", "the", "appropriate", "association", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/virtualmachine/virtual_machine_helper.go#L636-L649", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/virtualmachine/virtual_machine_helper.go", "func_name": "MOIDsForUUIDs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MOIDsForUUIDs returns a MOIDForUUIDResults for a list of UUIDs. If one UUID\n// cannot be found, an error is returned. There are no partial results\n// returned.", "docstring_tokens": ["MOIDsForUUIDs", "returns", "a", "MOIDForUUIDResults", "for", "a", "list", "of", "UUIDs", ".", "If", "one", "UUID", "cannot", "be", "found", "an", "error", "is", "returned", ".", "There", "are", "no", "partial", "results", "returned", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/virtualmachine/virtual_machine_helper.go#L654-L664", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/virtualmachine/virtual_machine_helper.go", "func_name": "UUIDsForMOIDs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UUIDsForMOIDs returns a MOIDForUUIDResults for a list of MOIDs. If one MOID\n// cannot be found, an error is returned. There are no partial results\n// returned.", "docstring_tokens": ["UUIDsForMOIDs", "returns", "a", "MOIDForUUIDResults", "for", "a", "list", "of", "MOIDs", ".", "If", "one", "MOID", "cannot", "be", "found", "an", "error", "is", "returned", ".", "There", "are", "no", "partial", "results", "returned", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/virtualmachine/virtual_machine_helper.go#L669-L679", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/virtualmachine/virtual_machine_helper.go", "func_name": "UUIDsForManagedObjectReferences", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UUIDsForManagedObjectReferences returns a MOIDForUUIDResults for a list of\n// ManagedObjectReferences. If one cannot be found, an error is returned. There\n// are no partial results returned.", "docstring_tokens": ["UUIDsForManagedObjectReferences", "returns", "a", "MOIDForUUIDResults", "for", "a", "list", "of", "ManagedObjectReferences", ".", "If", "one", "cannot", "be", "found", "an", "error", "is", "returned", ".", "There", "are", "no", "partial", "results", "returned", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/virtualmachine/virtual_machine_helper.go#L684-L690", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/virtualmachine/virtual_machine_helper.go", "func_name": "MOIDs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MOIDs returns all MOIDs in a MOIDForUUIDResults.", "docstring_tokens": ["MOIDs", "returns", "all", "MOIDs", "in", "a", "MOIDForUUIDResults", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/virtualmachine/virtual_machine_helper.go#L693-L699", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/virtualmachine/virtual_machine_helper.go", "func_name": "ManagedObjectReferences", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ManagedObjectReferences returns all MOIDs in a MOIDForUUIDResults, as\n// ManagedObjectReferences as type VirtualMachine.", "docstring_tokens": ["ManagedObjectReferences", "returns", "all", "MOIDs", "in", "a", "MOIDForUUIDResults", "as", "ManagedObjectReferences", "as", "type", "VirtualMachine", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/virtualmachine/virtual_machine_helper.go#L703-L712", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/virtualmachine/virtual_machine_helper.go", "func_name": "UUIDs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UUIDs returns all UUIDs in a MOIDForUUIDResults.", "docstring_tokens": ["UUIDs", "returns", "all", "UUIDs", "in", "a", "MOIDForUUIDResults", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/virtualmachine/virtual_machine_helper.go#L715-L721", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/dvportgroup/distributed_port_group_helper.go", "func_name": "FromKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FromKey gets a portgroup object from its key.", "docstring_tokens": ["FromKey", "gets", "a", "portgroup", "object", "from", "its", "key", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/dvportgroup/distributed_port_group_helper.go#L34-L59", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/dvportgroup/distributed_port_group_helper.go", "func_name": "FromMOID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FromMOID locates a portgroup by its managed object reference ID.", "docstring_tokens": ["FromMOID", "locates", "a", "portgroup", "by", "its", "managed", "object", "reference", "ID", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/dvportgroup/distributed_port_group_helper.go#L62-L80", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/dvportgroup/distributed_port_group_helper.go", "func_name": "FromPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FromPath gets a portgroup object from its path.", "docstring_tokens": ["FromPath", "gets", "a", "portgroup", "object", "from", "its", "path", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/dvportgroup/distributed_port_group_helper.go#L83-L99", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/dvportgroup/distributed_port_group_helper.go", "func_name": "Properties", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Properties is a convenience method that wraps fetching the\n// portgroup MO from its higher-level object.", "docstring_tokens": ["Properties", "is", "a", "convenience", "method", "that", "wraps", "fetching", "the", "portgroup", "MO", "from", "its", "higher", "-", "level", "object", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/dvportgroup/distributed_port_group_helper.go#L103-L111", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/dvportgroup/distributed_port_group_helper.go", "func_name": "Create", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create exposes the CreateDVPortgroup_Task method of the\n// DistributedVirtualSwitch MO. This local implementation may go away if this\n// is exposed in the higher-level object upstream.", "docstring_tokens": ["Create", "exposes", "the", "CreateDVPortgroup_Task", "method", "of", "the", "DistributedVirtualSwitch", "MO", ".", "This", "local", "implementation", "may", "go", "away", "if", "this", "is", "exposed", "in", "the", "higher", "-", "level", "object", "upstream", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/dvportgroup/distributed_port_group_helper.go#L116-L130", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/datastore/datastore_helper.go", "func_name": "Properties", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Properties is a convenience method that wraps fetching the\n// Datastore MO from its higher-level object.", "docstring_tokens": ["Properties", "is", "a", "convenience", "method", "that", "wraps", "fetching", "the", "Datastore", "MO", "from", "its", "higher", "-", "level", "object", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/datastore/datastore_helper.go#L57-L65", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/datastore/datastore_helper.go", "func_name": "MoveToFolder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MoveToFolder is a complex method that moves a datastore to a given\n// relative datastore folder path. \"Relative\" here means relative to a\n// datacenter, which is discovered from the current datastore path.", "docstring_tokens": ["MoveToFolder", "is", "a", "complex", "method", "that", "moves", "a", "datastore", "to", "a", "given", "relative", "datastore", "folder", "path", ".", "Relative", "here", "means", "relative", "to", "a", "datacenter", "which", "is", "discovered", "from", "the", "current", "datastore", "path", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/datastore/datastore_helper.go#L70-L76", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/datastore/datastore_helper.go", "func_name": "MoveToFolderRelativeHostSystemID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MoveToFolderRelativeHostSystemID is a complex method that moves a\n// datastore to a given datastore path, similar to MoveToFolder,\n// except the path is relative to a HostSystem supplied by ID instead of the\n// datastore.", "docstring_tokens": ["MoveToFolderRelativeHostSystemID", "is", "a", "complex", "method", "that", "moves", "a", "datastore", "to", "a", "given", "datastore", "path", "similar", "to", "MoveToFolder", "except", "the", "path", "is", "relative", "to", "a", "HostSystem", "supplied", "by", "ID", "instead", "of", "the", "datastore", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/datastore/datastore_helper.go#L82-L92", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/datastore/datastore_helper.go", "func_name": "Browser", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Browser returns the HostDatastoreBrowser for a certain datastore. This is a\n// convenience method that exists to abstract the context.", "docstring_tokens": ["Browser", "returns", "the", "HostDatastoreBrowser", "for", "a", "certain", "datastore", ".", "This", "is", "a", "convenience", "method", "that", "exists", "to", "abstract", "the", "context", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/datastore/datastore_helper.go#L96-L100", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/datastore/datastore_helper.go", "func_name": "SearchDatastore", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SearchDatastore searches a datastore using the supplied HostDatastoreBrowser\n// and a supplied path. The current implementation only returns the basic\n// information, so all FileQueryFlags set, but not any flags for specific types\n// of files.", "docstring_tokens": ["SearchDatastore", "searches", "a", "datastore", "using", "the", "supplied", "HostDatastoreBrowser", "and", "a", "supplied", "path", ".", "The", "current", "implementation", "only", "returns", "the", "basic", "information", "so", "all", "FileQueryFlags", "set", "but", "not", "any", "flags", "for", "specific", "types", "of", "files", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/datastore/datastore_helper.go#L106-L116", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/datastore/datastore_helper.go", "func_name": "FileExists", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FileExists takes a path in the datastore and checks to see if it exists.\n//\n// The path should be a bare path, not a datastore path. Globs are not allowed.", "docstring_tokens": ["FileExists", "takes", "a", "path", "in", "the", "datastore", "and", "checks", "to", "see", "if", "it", "exists", ".", "The", "path", "should", "be", "a", "bare", "path", "not", "a", "datastore", "path", ".", "Globs", "are", "not", "allowed", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/datastore/datastore_helper.go#L167-L179", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/vappcontainer/vappcontainer_helper.go", "func_name": "FromPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FromPath returns a VirtualApp via its supplied path.", "docstring_tokens": ["FromPath", "returns", "a", "VirtualApp", "via", "its", "supplied", "path", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/vappcontainer/vappcontainer_helper.go#L16-L25", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/vappcontainer/vappcontainer_helper.go", "func_name": "FromID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FromID locates a VirtualApp by its managed object reference ID.", "docstring_tokens": ["FromID", "locates", "a", "VirtualApp", "by", "its", "managed", "object", "reference", "ID", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/vappcontainer/vappcontainer_helper.go#L28-L45", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/vappcontainer/vappcontainer_helper.go", "func_name": "IsVApp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsVApp checks if a given managed object ID is a vApp. This is useful\n// deciding if a given resource pool is a vApp or a standard resource pool.", "docstring_tokens": ["IsVApp", "checks", "if", "a", "given", "managed", "object", "ID", "is", "a", "vApp", ".", "This", "is", "useful", "deciding", "if", "a", "given", "resource", "pool", "is", "a", "vApp", "or", "a", "standard", "resource", "pool", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/vappcontainer/vappcontainer_helper.go#L49-L55", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/vappcontainer/vappcontainer_helper.go", "func_name": "Create", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create creates a VirtualApp.", "docstring_tokens": ["Create", "creates", "a", "VirtualApp", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/vappcontainer/vappcontainer_helper.go#L70-L79", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/vappcontainer/vappcontainer_helper.go", "func_name": "Update", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Update updates a VirtualApp.", "docstring_tokens": ["Update", "updates", "a", "VirtualApp", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/vappcontainer/vappcontainer_helper.go#L82-L87", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/structure/structure_helper.go", "func_name": "ResourceIDString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ResourceIDString prints a friendly string for a resource, supplied by name.", "docstring_tokens": ["ResourceIDString", "prints", "a", "friendly", "string", "for", "a", "resource", "supplied", "by", "name", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/structure/structure_helper.go#L21-L27", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/structure/structure_helper.go", "func_name": "SliceInterfacesToStrings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SliceInterfacesToStrings converts an interface slice to a string slice. The\n// function does not attempt to do any sanity checking and will panic if one of\n// the items in the slice is not a string.", "docstring_tokens": ["SliceInterfacesToStrings", "converts", "an", "interface", "slice", "to", "a", "string", "slice", ".", "The", "function", "does", "not", "attempt", "to", "do", "any", "sanity", "checking", "and", "will", "panic", "if", "one", "of", "the", "items", "in", "the", "slice", "is", "not", "a", "string", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/structure/structure_helper.go#L32-L40", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/structure/structure_helper.go", "func_name": "SliceStringsToInterfaces", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SliceStringsToInterfaces converts a string slice to an interface slice.", "docstring_tokens": ["SliceStringsToInterfaces", "converts", "a", "string", "slice", "to", "an", "interface", "slice", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/structure/structure_helper.go#L43-L49", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/structure/structure_helper.go", "func_name": "SliceInterfacesToManagedObjectReferences", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SliceInterfacesToManagedObjectReferences converts an interface slice into a\n// slice of ManagedObjectReferences with the type of t.", "docstring_tokens": ["SliceInterfacesToManagedObjectReferences", "converts", "an", "interface", "slice", "into", "a", "slice", "of", "ManagedObjectReferences", "with", "the", "type", "of", "t", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/structure/structure_helper.go#L53-L62", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/structure/structure_helper.go", "func_name": "BoolStringPtrState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BoolStringPtrState is a state normalization function for stringified 3-state\n// bool pointers.\n//\n// The function silently drops any result that can't be parsed with ParseBool,\n// and will return an empty string for these cases.\n//\n// This is designed to address the current lack of HCL and Terraform to be able\n// to distinguish between nil states and zero values properly. This is a\n// systemic issue that affects reading, writing, and diffing of these values.\n// These issues will eventually be addressed in HCL2.", "docstring_tokens": ["BoolStringPtrState", "is", "a", "state", "normalization", "function", "for", "stringified", "3", "-", "state", "bool", "pointers", ".", "The", "function", "silently", "drops", "any", "result", "that", "can", "t", "be", "parsed", "with", "ParseBool", "and", "will", "return", "an", "empty", "string", "for", "these", "cases", ".", "This", "is", "designed", "to", "address", "the", "current", "lack", "of", "HCL", "and", "Terraform", "to", "be", "able", "to", "distinguish", "between", "nil", "states", "and", "zero", "values", "properly", ".", "This", "is", "a", "systemic", "issue", "that", "affects", "reading", "writing", "and", "diffing", "of", "these", "values", ".", "These", "issues", "will", "eventually", "be", "addressed", "in", "HCL2", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/structure/structure_helper.go#L206-L212", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/structure/structure_helper.go", "func_name": "ValidateBoolStringPtr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidateBoolStringPtr validates that the input value can be parsed by\n// ParseBool. It also succeeds on empty strings.\n//\n// This is designed to address the current lack of HCL and Terraform to be able\n// to distinguish between nil states and zero values properly. This is a\n// systemic issue that affects reading, writing, and diffing of these values.\n// These issues will eventually be addressed in HCL2.", "docstring_tokens": ["ValidateBoolStringPtr", "validates", "that", "the", "input", "value", "can", "be", "parsed", "by", "ParseBool", ".", "It", "also", "succeeds", "on", "empty", "strings", ".", "This", "is", "designed", "to", "address", "the", "current", "lack", "of", "HCL", "and", "Terraform", "to", "be", "able", "to", "distinguish", "between", "nil", "states", "and", "zero", "values", "properly", ".", "This", "is", "a", "systemic", "issue", "that", "affects", "reading", "writing", "and", "diffing", "of", "these", "values", ".", "These", "issues", "will", "eventually", "be", "addressed", "in", "HCL2", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/structure/structure_helper.go#L221-L232", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/structure/structure_helper.go", "func_name": "BoolPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BoolPolicy converts a bool into a VMware BoolPolicy value.", "docstring_tokens": ["BoolPolicy", "converts", "a", "bool", "into", "a", "VMware", "BoolPolicy", "value", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/structure/structure_helper.go#L355-L360", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/structure/structure_helper.go", "func_name": "GetBoolPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetBoolPolicy reads a ResourceData and returns an appropriate BoolPolicy for\n// the state of the definition. nil is returned if it does not exist.", "docstring_tokens": ["GetBoolPolicy", "reads", "a", "ResourceData", "and", "returns", "an", "appropriate", "BoolPolicy", "for", "the", "state", "of", "the", "definition", ".", "nil", "is", "returned", "if", "it", "does", "not", "exist", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/structure/structure_helper.go#L364-L370", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/structure/structure_helper.go", "func_name": "SetBoolPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetBoolPolicy sets a ResourceData field depending on if a BoolPolicy exists\n// or not. The field is not set if it's nil.", "docstring_tokens": ["SetBoolPolicy", "sets", "a", "ResourceData", "field", "depending", "on", "if", "a", "BoolPolicy", "exists", "or", "not", ".", "The", "field", "is", "not", "set", "if", "it", "s", "nil", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/structure/structure_helper.go#L374-L380", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/structure/structure_helper.go", "func_name": "StringPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StringPolicy converts a string into a VMware StringPolicy value.", "docstring_tokens": ["StringPolicy", "converts", "a", "string", "into", "a", "VMware", "StringPolicy", "value", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/structure/structure_helper.go#L401-L406", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/structure/structure_helper.go", "func_name": "GetStringPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetStringPolicy reads a ResourceData and returns an appropriate StringPolicy\n// for the state of the definition. nil is returned if it does not exist.", "docstring_tokens": ["GetStringPolicy", "reads", "a", "ResourceData", "and", "returns", "an", "appropriate", "StringPolicy", "for", "the", "state", "of", "the", "definition", ".", "nil", "is", "returned", "if", "it", "does", "not", "exist", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/structure/structure_helper.go#L410-L416", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/structure/structure_helper.go", "func_name": "SetStringPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetStringPolicy sets a ResourceData field depending on if a StringPolicy\n// exists or not. The field is not set if it's nil.", "docstring_tokens": ["SetStringPolicy", "sets", "a", "ResourceData", "field", "depending", "on", "if", "a", "StringPolicy", "exists", "or", "not", ".", "The", "field", "is", "not", "set", "if", "it", "s", "nil", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/structure/structure_helper.go#L420-L426", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/structure/structure_helper.go", "func_name": "LongPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LongPolicy converts a supported number into a VMware LongPolicy value. This\n// will panic if there is no implicit conversion of the value into an int64.", "docstring_tokens": ["LongPolicy", "converts", "a", "supported", "number", "into", "a", "VMware", "LongPolicy", "value", ".", "This", "will", "panic", "if", "there", "is", "no", "implicit", "conversion", "of", "the", "value", "into", "an", "int64", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/structure/structure_helper.go#L430-L455", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/structure/structure_helper.go", "func_name": "GetLongPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLongPolicy reads a ResourceData and returns an appropriate LongPolicy\n// for the state of the definition. nil is returned if it does not exist.", "docstring_tokens": ["GetLongPolicy", "reads", "a", "ResourceData", "and", "returns", "an", "appropriate", "LongPolicy", "for", "the", "state", "of", "the", "definition", ".", "nil", "is", "returned", "if", "it", "does", "not", "exist", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/structure/structure_helper.go#L459-L465", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/structure/structure_helper.go", "func_name": "SetLongPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetLongPolicy sets a ResourceData field depending on if a LongPolicy\n// exists or not. The field is not set if it's nil.", "docstring_tokens": ["SetLongPolicy", "sets", "a", "ResourceData", "field", "depending", "on", "if", "a", "LongPolicy", "exists", "or", "not", ".", "The", "field", "is", "not", "set", "if", "it", "s", "nil", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/structure/structure_helper.go#L469-L475", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/structure/structure_helper.go", "func_name": "AllFieldsEmpty", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AllFieldsEmpty checks to see if all fields in a given struct are zero\n// values. It does not recurse, so finer-grained checking should be done for\n// deep accuracy when necessary. It also does not dereference pointers, except\n// if the value itself is a pointer and is not nil.", "docstring_tokens": ["AllFieldsEmpty", "checks", "to", "see", "if", "all", "fields", "in", "a", "given", "struct", "are", "zero", "values", ".", "It", "does", "not", "recurse", "so", "finer", "-", "grained", "checking", "should", "be", "done", "for", "deep", "accuracy", "when", "necessary", ".", "It", "also", "does", "not", "dereference", "pointers", "except", "if", "the", "value", "itself", "is", "a", "pointer", "and", "is", "not", "nil", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/structure/structure_helper.go#L481-L519", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/structure/structure_helper.go", "func_name": "DeRef", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeRef returns the value pointed to by the interface if the interface is a\n// pointer and is not nil, otherwise returns nil, or the direct value if it's\n// not a pointer.", "docstring_tokens": ["DeRef", "returns", "the", "value", "pointed", "to", "by", "the", "interface", "if", "the", "interface", "is", "a", "pointer", "and", "is", "not", "nil", "otherwise", "returns", "nil", "or", "the", "direct", "value", "if", "it", "s", "not", "a", "pointer", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/structure/structure_helper.go#L524-L537", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/structure/structure_helper.go", "func_name": "Less", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Less helps implement sort.Interface for MoRefSorter.", "docstring_tokens": ["Less", "helps", "implement", "sort", ".", "Interface", "for", "MoRefSorter", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/structure/structure_helper.go#L608-L610", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/structure/structure_helper.go", "func_name": "Swap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Swap helps implement sort.Interface for MoRefSorter.", "docstring_tokens": ["Swap", "helps", "implement", "sort", ".", "Interface", "for", "MoRefSorter", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/structure/structure_helper.go#L613-L615", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_data_store_system_helper.go", "func_name": "hostDatastoreSystemFromHostSystemID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// hostDatastoreSystemFromHostSystemID locates a HostDatastoreSystem from a\n// specified HostSystem managed object ID.", "docstring_tokens": ["hostDatastoreSystemFromHostSystemID", "locates", "a", "HostDatastoreSystem", "from", "a", "specified", "HostSystem", "managed", "object", "ID", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_data_store_system_helper.go#L17-L25", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_data_store_system_helper.go", "func_name": "availableScsiDisk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// availableScsiDisk checks to make sure that a disk is available for use in a\n// VMFS datastore, and returns the ScsiDisk.", "docstring_tokens": ["availableScsiDisk", "checks", "to", "make", "sure", "that", "a", "disk", "is", "available", "for", "use", "in", "a", "VMFS", "datastore", "and", "returns", "the", "ScsiDisk", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_data_store_system_helper.go#L29-L48", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_data_store_system_helper.go", "func_name": "diskSpecForCreate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// diskSpecForCreate checks to make sure that a disk is available to be used to\n// create a VMFS datastore, specifically in its entirety, and returns a\n// respective VmfsDatastoreCreateSpec.", "docstring_tokens": ["diskSpecForCreate", "checks", "to", "make", "sure", "that", "a", "disk", "is", "available", "to", "be", "used", "to", "create", "a", "VMFS", "datastore", "specifically", "in", "its", "entirety", "and", "returns", "a", "respective", "VmfsDatastoreCreateSpec", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_data_store_system_helper.go#L53-L76", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_data_store_system_helper.go", "func_name": "diskSpecForExtend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// diskSpecForExtend checks to make sure that a disk is available to be\n// used to extend a VMFS datastore, specifically in its entirety, and returns a\n// respective VmfsDatastoreExtendSpec if it is. An error is returned if it's\n// not.", "docstring_tokens": ["diskSpecForExtend", "checks", "to", "make", "sure", "that", "a", "disk", "is", "available", "to", "be", "used", "to", "extend", "a", "VMFS", "datastore", "specifically", "in", "its", "entirety", "and", "returns", "a", "respective", "VmfsDatastoreExtendSpec", "if", "it", "is", ".", "An", "error", "is", "returned", "if", "it", "s", "not", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_data_store_system_helper.go#L82-L110", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_data_store_system_helper.go", "func_name": "removeDatastore", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// removeDatastore is a convenience method for removing a referenced datastore.", "docstring_tokens": ["removeDatastore", "is", "a", "convenience", "method", "for", "removing", "a", "referenced", "datastore", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_data_store_system_helper.go#L113-L117", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_data_store_system_helper.go", "func_name": "queryVmfsDatastoreExtendOptions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// queryVmfsDatastoreExtendOptions is a stop-gap method that implements\n// QueryVmfsDatastoreExtendOptions. It will be removed once the higher level\n// HostDatastoreSystem object supports this method.", "docstring_tokens": ["queryVmfsDatastoreExtendOptions", "is", "a", "stop", "-", "gap", "method", "that", "implements", "QueryVmfsDatastoreExtendOptions", ".", "It", "will", "be", "removed", "once", "the", "higher", "level", "HostDatastoreSystem", "object", "supports", "this", "method", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_data_store_system_helper.go#L122-L136", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_data_store_system_helper.go", "func_name": "extendVmfsDatastore", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// extendVmfsDatastore is a stop-gap method that implements\n// ExtendVmfsDatastore. It will be removed once the higher level\n// HostDatastoreSystem object supports this method.", "docstring_tokens": ["extendVmfsDatastore", "is", "a", "stop", "-", "gap", "method", "that", "implements", "ExtendVmfsDatastore", ".", "It", "will", "be", "removed", "once", "the", "higher", "level", "HostDatastoreSystem", "object", "supports", "this", "method", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_data_store_system_helper.go#L141-L154", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "resourceVSphereComputeClusterImportSetDefaults", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereComputeClusterImportSetDefaults sets configuration defaults\n// for resource attributes that are not managed by read. This gives\n// completeness for import, in addition to reducing the number of post-import\n// diffs that may need to happen.", "docstring_tokens": ["resourceVSphereComputeClusterImportSetDefaults", "sets", "configuration", "defaults", "for", "resource", "attributes", "that", "are", "not", "managed", "by", "read", ".", "This", "gives", "completeness", "for", "import", "in", "addition", "to", "reducing", "the", "number", "of", "post", "-", "import", "diffs", "that", "may", "need", "to", "happen", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L616-L626", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "resourceVSphereComputeClusterApplyCreate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereComputeClusterApplyCreate processes the creation part of\n// resourceVSphereComputeClusterCreate.", "docstring_tokens": ["resourceVSphereComputeClusterApplyCreate", "processes", "the", "creation", "part", "of", "resourceVSphereComputeClusterCreate", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L630-L662", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "resourceVSphereComputeClusterApplyTags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereComputeClusterApplyTags processes the tags step for both\n// create and update for vsphere_compute_cluster.", "docstring_tokens": ["resourceVSphereComputeClusterApplyTags", "processes", "the", "tags", "step", "for", "both", "create", "and", "update", "for", "vsphere_compute_cluster", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L786-L800", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "resourceVSphereComputeClusterReadTags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereComputeClusterReadTags reads the tags for\n// vsphere_compute_cluster.", "docstring_tokens": ["resourceVSphereComputeClusterReadTags", "reads", "the", "tags", "for", "vsphere_compute_cluster", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L804-L814", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "resourceVSphereComputeClusterApplyCustomAttributes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereComputeClusterApplyCustomAttributes processes the custom\n// attributes step for both create and update for vsphere_compute_cluster.", "docstring_tokens": ["resourceVSphereComputeClusterApplyCustomAttributes", "processes", "the", "custom", "attributes", "step", "for", "both", "create", "and", "update", "for", "vsphere_compute_cluster", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L818-L837", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "resourceVSphereComputeClusterReadCustomAttributes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereComputeClusterReadCustomAttributes reads the custom\n// attributes for vsphere_compute_cluster.", "docstring_tokens": ["resourceVSphereComputeClusterReadCustomAttributes", "reads", "the", "custom", "attributes", "for", "vsphere_compute_cluster", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L841-L860", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "resourceVSphereComputeClusterGetCluster", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereComputeClusterGetCluster gets the ComputeClusterResource from the ID\n// in the supplied ResourceData.", "docstring_tokens": ["resourceVSphereComputeClusterGetCluster", "gets", "the", "ComputeClusterResource", "from", "the", "ID", "in", "the", "supplied", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L864-L875", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "resourceVSphereComputeClusterGetClusterFromPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereComputeClusterGetClusterFromPath gets the ComputeClusterResource from a\n// supplied path. If no datacenter is supplied, the path must be a full path.", "docstring_tokens": ["resourceVSphereComputeClusterGetClusterFromPath", "gets", "the", "ComputeClusterResource", "from", "a", "supplied", "path", ".", "If", "no", "datacenter", "is", "supplied", "the", "path", "must", "be", "a", "full", "path", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L879-L901", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "resourceVSphereComputeClusterSaveDatacenter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereComputeClusterSaveDatacenter saves the datacenter that the\n// cluster is a member of for correctness on imports.", "docstring_tokens": ["resourceVSphereComputeClusterSaveDatacenter", "saves", "the", "datacenter", "that", "the", "cluster", "is", "a", "member", "of", "for", "correctness", "on", "imports", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L905-L927", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "resourceVSphereComputeClusterSaveNameAndPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereComputeClusterSaveNameAndPath saves the name and path of a\n// StoragePod into the supplied ResourceData.", "docstring_tokens": ["resourceVSphereComputeClusterSaveNameAndPath", "saves", "the", "name", "and", "path", "of", "a", "StoragePod", "into", "the", "supplied", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L931-L950", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "resourceVSphereComputeClusterApplyNameChange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereComputeClusterApplyNameChange applies any changes to a\n// ClusterComputeResource's name.", "docstring_tokens": ["resourceVSphereComputeClusterApplyNameChange", "applies", "any", "changes", "to", "a", "ClusterComputeResource", "s", "name", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L954-L990", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "resourceVSphereComputeClusterApplyFolderChange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereComputeClusterApplyFolderChange applies any changes to a\n// ClusterComputeResource's folder location.", "docstring_tokens": ["resourceVSphereComputeClusterApplyFolderChange", "applies", "any", "changes", "to", "a", "ClusterComputeResource", "s", "folder", "location", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L994-L1032", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "resourceVSphereComputeClusterValidateEmptyCluster", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereComputeClusterValidateEmptyCluster validates that the cluster\n// is empty. This is used to ensure a safe deletion of the cluster - we do not\n// allow deletion of clusters that still virtual machines or hosts in them.", "docstring_tokens": ["resourceVSphereComputeClusterValidateEmptyCluster", "validates", "that", "the", "cluster", "is", "empty", ".", "This", "is", "used", "to", "ensure", "a", "safe", "deletion", "of", "the", "cluster", "-", "we", "do", "not", "allow", "deletion", "of", "clusters", "that", "still", "virtual", "machines", "or", "hosts", "in", "them", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L1037-L1053", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "resourceVSphereComputeClusterApplyDelete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereComputeClusterApplyDelete process the removal of a\n// cluster.", "docstring_tokens": ["resourceVSphereComputeClusterApplyDelete", "process", "the", "removal", "of", "a", "cluster", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L1094-L1100", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "resourceVSphereComputeClusterFlattenData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereComputeClusterFlattenData saves the configuration attributes\n// from a ClusterComputeResource into the supplied ResourceData. It also saves\n// the root resource pool for the cluster in resource_pool_id.\n//\n// Note that other functions handle other non-configuration related items, such\n// as path, name, tags, and custom attributes.", "docstring_tokens": ["resourceVSphereComputeClusterFlattenData", "saves", "the", "configuration", "attributes", "from", "a", "ClusterComputeResource", "into", "the", "supplied", "ResourceData", ".", "It", "also", "saves", "the", "root", "resource", "pool", "for", "the", "cluster", "in", "resource_pool_id", ".", "Note", "that", "other", "functions", "handle", "other", "non", "-", "configuration", "related", "items", "such", "as", "path", "name", "tags", "and", "custom", "attributes", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L1108-L1135", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "expandClusterConfigSpecEx", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandClusterConfigSpecEx reads certain ResourceData keys and returns a\n// ClusterConfigSpecEx.", "docstring_tokens": ["expandClusterConfigSpecEx", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "ClusterConfigSpecEx", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L1139-L1153", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "flattenClusterConfigSpecEx", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenClusterConfigSpecEx saves a ClusterConfigSpecEx into the supplied\n// ResourceData.", "docstring_tokens": ["flattenClusterConfigSpecEx", "saves", "a", "ClusterConfigSpecEx", "into", "the", "supplied", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L1157-L1183", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "expandClusterDasConfigInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandClusterDasConfigInfo reads certain ResourceData keys and returns a\n// ClusterDasConfigInfo.", "docstring_tokens": ["expandClusterDasConfigInfo", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "ClusterDasConfigInfo", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L1187-L1214", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "flattenClusterDasConfigInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenClusterDasConfigInfo saves a ClusterDasConfigInfo into the supplied\n// ResourceData.", "docstring_tokens": ["flattenClusterDasConfigInfo", "saves", "a", "ClusterDasConfigInfo", "into", "the", "supplied", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L1218-L1256", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "expandBaseClusterDasAdmissionControlPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandBaseClusterDasAdmissionControlPolicy reads certain ResourceData keys\n// and returns a BaseClusterDasAdmissionControlPolicy.", "docstring_tokens": ["expandBaseClusterDasAdmissionControlPolicy", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "BaseClusterDasAdmissionControlPolicy", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L1260-L1283", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "flattenBaseClusterDasAdmissionControlPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenBaseClusterDasAdmissionControlPolicy saves a\n// BaseClusterDasAdmissionControlPolicy into the supplied ResourceData.", "docstring_tokens": ["flattenBaseClusterDasAdmissionControlPolicy", "saves", "a", "BaseClusterDasAdmissionControlPolicy", "into", "the", "supplied", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L1287-L1315", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "expandClusterFailoverResourcesAdmissionControlPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandClusterFailoverResourcesAdmissionControlPolicy reads certain\n// ResourceData keys and returns a\n// ClusterFailoverResourcesAdmissionControlPolicy.", "docstring_tokens": ["expandClusterFailoverResourcesAdmissionControlPolicy", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "ClusterFailoverResourcesAdmissionControlPolicy", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L1320-L1335", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "flattenClusterFailoverResourcesAdmissionControlPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenClusterFailoverResourcesAdmissionControlPolicy saves a\n// ClusterFailoverResourcesAdmissionControlPolicy into the supplied\n// ResourceData.", "docstring_tokens": ["flattenClusterFailoverResourcesAdmissionControlPolicy", "saves", "a", "ClusterFailoverResourcesAdmissionControlPolicy", "into", "the", "supplied", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L1340-L1367", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "expandClusterFailoverLevelAdmissionControlPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandClusterFailoverLevelAdmissionControlPolicy reads certain ResourceData\n// keys and returns a ClusterFailoverLevelAdmissionControlPolicy.", "docstring_tokens": ["expandClusterFailoverLevelAdmissionControlPolicy", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "ClusterFailoverLevelAdmissionControlPolicy", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L1371-L1384", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "flattenClusterFailoverLevelAdmissionControlPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenClusterFailoverLevelAdmissionControlPolicy saves a\n// ClusterFailoverLevelAdmissionControlPolicy into the supplied ResourceData.", "docstring_tokens": ["flattenClusterFailoverLevelAdmissionControlPolicy", "saves", "a", "ClusterFailoverLevelAdmissionControlPolicy", "into", "the", "supplied", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L1388-L1404", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "expandClusterFailoverHostAdmissionControlPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandClusterFailoverHostAdmissionControlPolicy reads certain ResourceData\n// keys and returns a ClusterFailoverHostAdmissionControlPolicy.", "docstring_tokens": ["expandClusterFailoverHostAdmissionControlPolicy", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "ClusterFailoverHostAdmissionControlPolicy", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L1408-L1424", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "flattenClusterFailoverHostAdmissionControlPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenClusterFailoverHostAdmissionControlPolicy saves a\n// ClusterFailoverHostAdmissionControlPolicy into the supplied ResourceData.", "docstring_tokens": ["flattenClusterFailoverHostAdmissionControlPolicy", "saves", "a", "ClusterFailoverHostAdmissionControlPolicy", "into", "the", "supplied", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L1428-L1447", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "expandClusterDasVMSettings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandClusterDasVMSettings reads certain ResourceData keys and returns a\n// ClusterDasVmSettings.", "docstring_tokens": ["expandClusterDasVMSettings", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "ClusterDasVmSettings", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L1451-L1466", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "flattenClusterDasVMSettings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenClusterDasVMSettings saves a ClusterDasVmSettings into the supplied\n// ResourceData.", "docstring_tokens": ["flattenClusterDasVMSettings", "saves", "a", "ClusterDasVmSettings", "into", "the", "supplied", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L1470-L1493", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "expandClusterVMComponentProtectionSettings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandClusterVMComponentProtectionSettings reads certain ResourceData keys and returns a\n// ClusterVmComponentProtectionSettings.", "docstring_tokens": ["expandClusterVMComponentProtectionSettings", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "ClusterVmComponentProtectionSettings", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L1497-L1517", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "flattenClusterVMComponentProtectionSettings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenClusterVmComponentProtectionSettings saves a\n// ClusterVmComponentProtectionSettings into the supplied ResourceData.", "docstring_tokens": ["flattenClusterVmComponentProtectionSettings", "saves", "a", "ClusterVmComponentProtectionSettings", "into", "the", "supplied", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L1521-L1528", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "expandClusterVMToolsMonitoringSettings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandClusterVMToolsMonitoringSettings reads certain ResourceData keys and returns a\n// ClusterVmToolsMonitoringSettings.", "docstring_tokens": ["expandClusterVMToolsMonitoringSettings", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "ClusterVmToolsMonitoringSettings", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L1532-L1542", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "flattenClusterVMToolsMonitoringSettings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenClusterVmToolsMonitoringSettings saves a\n// ClusterVmToolsMonitoringSettings into the supplied ResourceData.", "docstring_tokens": ["flattenClusterVmToolsMonitoringSettings", "saves", "a", "ClusterVmToolsMonitoringSettings", "into", "the", "supplied", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L1546-L1554", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "expandClusterDpmConfigInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandClusterDpmConfigInfo reads certain ResourceData keys and returns a\n// ClusterDpmConfigInfo.", "docstring_tokens": ["expandClusterDpmConfigInfo", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "ClusterDpmConfigInfo", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L1586-L1594", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "flattenClusterDpmConfigInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenClusterDpmConfigInfo saves a ClusterDpmConfigInfo into the supplied\n// ResourceData.", "docstring_tokens": ["flattenClusterDpmConfigInfo", "saves", "a", "ClusterDpmConfigInfo", "into", "the", "supplied", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L1598-L1604", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "expandClusterDrsConfigInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandClusterDrsConfigInfo reads certain ResourceData keys and returns a\n// ClusterDrsConfigInfo.", "docstring_tokens": ["expandClusterDrsConfigInfo", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "ClusterDrsConfigInfo", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L1608-L1618", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "flattenClusterDrsConfigInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenClusterDrsConfigInfo saves a ClusterDrsConfigInfo into the supplied\n// ResourceData.", "docstring_tokens": ["flattenClusterDrsConfigInfo", "saves", "a", "ClusterDrsConfigInfo", "into", "the", "supplied", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L1622-L1634", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "expandResourceVSphereComputeClusterDrsAdvancedOptions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandResourceVSphereComputeClusterDrsAdvancedOptions reads certain\n// ResourceData keys and returns a BaseOptionValue list designed for use as DRS\n// advanced options.", "docstring_tokens": ["expandResourceVSphereComputeClusterDrsAdvancedOptions", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "BaseOptionValue", "list", "designed", "for", "use", "as", "DRS", "advanced", "options", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L1639-L1650", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "expandClusterInfraUpdateHaConfigInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandClusterInfraUpdateHaConfigInfo reads certain ResourceData keys and returns a\n// ClusterInfraUpdateHaConfigInfo.", "docstring_tokens": ["expandClusterInfraUpdateHaConfigInfo", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "ClusterInfraUpdateHaConfigInfo", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L1666-L1676", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "flattenClusterInfraUpdateHaConfigInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenClusterInfraUpdateHaConfigInfo saves a ClusterInfraUpdateHaConfigInfo into the\n// supplied ResourceData.", "docstring_tokens": ["flattenClusterInfraUpdateHaConfigInfo", "saves", "a", "ClusterInfraUpdateHaConfigInfo", "into", "the", "supplied", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L1680-L1688", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "expandClusterOrchestrationInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandClusterOrchestrationInfo reads certain ResourceData keys and returns a\n// ClusterOrchestrationInfo.", "docstring_tokens": ["expandClusterOrchestrationInfo", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "ClusterOrchestrationInfo", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L1692-L1701", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "flattenClusterOrchestrationInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenClusterOrchestrationInfo saves a ClusterOrchestrationInfo into the\n// supplied ResourceData.", "docstring_tokens": ["flattenClusterOrchestrationInfo", "saves", "a", "ClusterOrchestrationInfo", "into", "the", "supplied", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L1705-L1710", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "expandClusterProactiveDrsConfigInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandClusterProactiveDrsConfigInfo reads certain ResourceData keys and returns a\n// ClusterProactiveDrsConfigInfo.", "docstring_tokens": ["expandClusterProactiveDrsConfigInfo", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "ClusterProactiveDrsConfigInfo", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L1714-L1720", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster.go", "func_name": "flattenClusterProactiveDrsConfigInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenClusterProactiveDrsConfigInfo saves a ClusterProactiveDrsConfigInfo into the\n// supplied ResourceData.", "docstring_tokens": ["flattenClusterProactiveDrsConfigInfo", "saves", "a", "ClusterProactiveDrsConfigInfo", "into", "the", "supplied", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster.go#L1724-L1728", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/storagepod/storage_pod_helper.go", "func_name": "Properties", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Properties is a convenience method that wraps fetching the\n// StoragePod MO from its higher-level object.", "docstring_tokens": ["Properties", "is", "a", "convenience", "method", "that", "wraps", "fetching", "the", "StoragePod", "MO", "from", "its", "higher", "-", "level", "object", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/storagepod/storage_pod_helper.go#L61-L69", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/storagepod/storage_pod_helper.go", "func_name": "Create", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create creates a StoragePod from a supplied folder. The resulting StoragePod\n// is returned.", "docstring_tokens": ["Create", "creates", "a", "StoragePod", "from", "a", "supplied", "folder", ".", "The", "resulting", "StoragePod", "is", "returned", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/storagepod/storage_pod_helper.go#L73-L82", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/storagepod/storage_pod_helper.go", "func_name": "ApplyDRSConfiguration", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ApplyDRSConfiguration takes a types.StorageDrsConfigSpec and applies it\n// against the specified StoragePod.", "docstring_tokens": ["ApplyDRSConfiguration", "takes", "a", "types", ".", "StorageDrsConfigSpec", "and", "applies", "it", "against", "the", "specified", "StoragePod", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/storagepod/storage_pod_helper.go#L86-L96", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/storagepod/storage_pod_helper.go", "func_name": "Rename", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Rename renames a StoragePod.", "docstring_tokens": ["Rename", "renames", "a", "StoragePod", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/storagepod/storage_pod_helper.go#L99-L108", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/storagepod/storage_pod_helper.go", "func_name": "MoveToFolder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MoveToFolder is a complex method that moves a StoragePod to a given relative\n// datastore folder path. \"Relative\" here means relative to a datacenter, which\n// is discovered from the current StoragePod path.", "docstring_tokens": ["MoveToFolder", "is", "a", "complex", "method", "that", "moves", "a", "StoragePod", "to", "a", "given", "relative", "datastore", "folder", "path", ".", "Relative", "here", "means", "relative", "to", "a", "datacenter", "which", "is", "discovered", "from", "the", "current", "StoragePod", "path", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/storagepod/storage_pod_helper.go#L113-L119", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/storagepod/storage_pod_helper.go", "func_name": "StorageDRSEnabled", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StorageDRSEnabled checks a StoragePod to see if Storage DRS is enabled.", "docstring_tokens": ["StorageDRSEnabled", "checks", "a", "StoragePod", "to", "see", "if", "Storage", "DRS", "is", "enabled", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/storagepod/storage_pod_helper.go#L144-L153", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/storagepod/storage_pod_helper.go", "func_name": "CreateVM", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateVM creates a virtual machine on a datastore cluster via the\n// StorageResourceManager API. It mimics our helper in the virtualmachine\n// package in functionality, returning a VM helper object on success.", "docstring_tokens": ["CreateVM", "creates", "a", "virtual", "machine", "on", "a", "datastore", "cluster", "via", "the", "StorageResourceManager", "API", ".", "It", "mimics", "our", "helper", "in", "the", "virtualmachine", "package", "in", "functionality", "returning", "a", "VM", "helper", "object", "on", "success", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/storagepod/storage_pod_helper.go#L158-L210", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/storagepod/storage_pod_helper.go", "func_name": "CloneVM", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CloneVM clones a virtual machine to a datastore cluster via the\n// StorageResourceManager API. It mimics our helper in the virtualmachine\n// package in functionality, returning a VM helper object on success.", "docstring_tokens": ["CloneVM", "clones", "a", "virtual", "machine", "to", "a", "datastore", "cluster", "via", "the", "StorageResourceManager", "API", ".", "It", "mimics", "our", "helper", "in", "the", "virtualmachine", "package", "in", "functionality", "returning", "a", "VM", "helper", "object", "on", "success", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/storagepod/storage_pod_helper.go#L215-L250", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/storagepod/storage_pod_helper.go", "func_name": "ReconfigureVM", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReconfigureVM reconfigures a virtual machine via the StorageResourceManager\n// API, applying any disk modifications that will require going through Storage\n// DRS. It mimics our helper in the virtualmachine package in functionality.\n//\n// Note that this function will fail if there are no new disks in the spec,\n// check this first before using this function. If no disk create operations\n// are necessary, use the regular Reconfigure function in the virtualmachine\n// helper package.", "docstring_tokens": ["ReconfigureVM", "reconfigures", "a", "virtual", "machine", "via", "the", "StorageResourceManager", "API", "applying", "any", "disk", "modifications", "that", "will", "require", "going", "through", "Storage", "DRS", ".", "It", "mimics", "our", "helper", "in", "the", "virtualmachine", "package", "in", "functionality", ".", "Note", "that", "this", "function", "will", "fail", "if", "there", "are", "no", "new", "disks", "in", "the", "spec", "check", "this", "first", "before", "using", "this", "function", ".", "If", "no", "disk", "create", "operations", "are", "necessary", "use", "the", "regular", "Reconfigure", "function", "in", "the", "virtualmachine", "helper", "package", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/storagepod/storage_pod_helper.go#L260-L291", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/storagepod/storage_pod_helper.go", "func_name": "RelocateVM", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RelocateVM migrates a virtual machine to a datastore cluster via the\n// StorageResourceManager API. It mimics our helper in the virtualmachine\n// package in functionality.", "docstring_tokens": ["RelocateVM", "migrates", "a", "virtual", "machine", "to", "a", "datastore", "cluster", "via", "the", "StorageResourceManager", "API", ".", "It", "mimics", "our", "helper", "in", "the", "virtualmachine", "package", "in", "functionality", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/storagepod/storage_pod_helper.go#L296-L328", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/storagepod/storage_pod_helper.go", "func_name": "HasDiskCreationOperations", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasDiskCreationOperations is an exported function that checks a list of\n// device changes to see if there are any disk creation operations. This should\n// be used to check if ReconfigureVM should be done through the Storage DRS\n// API, as a Reconfig operation done through SDRS without new disk operations\n// will fail.", "docstring_tokens": ["HasDiskCreationOperations", "is", "an", "exported", "function", "that", "checks", "a", "list", "of", "device", "changes", "to", "see", "if", "there", "are", "any", "disk", "creation", "operations", ".", "This", "should", "be", "used", "to", "check", "if", "ReconfigureVM", "should", "be", "done", "through", "the", "Storage", "DRS", "API", "as", "a", "Reconfig", "operation", "done", "through", "SDRS", "without", "new", "disk", "operations", "will", "fail", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/storagepod/storage_pod_helper.go#L419-L427", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/storagepod/storage_pod_helper.go", "func_name": "IsMember", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsMember checks to see if a datastore is a member of the datastore cluster\n// in question.\n//\n// This is a pretty basic operation that checks that the parent of the\n// datastore is the StoragePod.", "docstring_tokens": ["IsMember", "checks", "to", "see", "if", "a", "datastore", "is", "a", "member", "of", "the", "datastore", "cluster", "in", "question", ".", "This", "is", "a", "pretty", "basic", "operation", "that", "checks", "that", "the", "parent", "of", "the", "datastore", "is", "the", "StoragePod", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/storagepod/storage_pod_helper.go#L473-L485", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/config.go", "func_name": "NewConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewConfig returns a new Config from a supplied ResourceData.", "docstring_tokens": ["NewConfig", "returns", "a", "new", "Config", "from", "a", "supplied", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/config.go#L85-L113", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/config.go", "func_name": "Client", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Client returns a new client for accessing VMWare vSphere.", "docstring_tokens": ["Client", "returns", "a", "new", "client", "for", "accessing", "VMWare", "vSphere", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/config.go#L128-L171", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/config.go", "func_name": "EnableDebug", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EnableDebug turns on govmomi API operation logging, if appropriate settings\n// are set on the provider.", "docstring_tokens": ["EnableDebug", "turns", "on", "govmomi", "API", "operation", "logging", "if", "appropriate", "settings", "are", "set", "on", "the", "provider", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/config.go#L175-L210", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/config.go", "func_name": "sessionFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// sessionFile is a helper that generates a unique hash of the client's URL\n// to use as the session file name.\n//\n// This is the same logic used as part of govmomi and is designed to be\n// consistent so that sessions can be shared if possible between both tools.", "docstring_tokens": ["sessionFile", "is", "a", "helper", "that", "generates", "a", "unique", "hash", "of", "the", "client", "s", "URL", "to", "use", "as", "the", "session", "file", "name", ".", "This", "is", "the", "same", "logic", "used", "as", "part", "of", "govmomi", "and", "is", "designed", "to", "be", "consistent", "so", "that", "sessions", "can", "be", "shared", "if", "possible", "between", "both", "tools", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/config.go#L227-L238", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/config.go", "func_name": "vimSessionFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// vimSessionFile is takes the session file name generated by sessionFile and\n// then prefixes the SOAP client session path to it.", "docstring_tokens": ["vimSessionFile", "is", "takes", "the", "session", "file", "name", "generated", "by", "sessionFile", "and", "then", "prefixes", "the", "SOAP", "client", "session", "path", "to", "it", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/config.go#L242-L248", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/config.go", "func_name": "restSessionFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// restSessionFile is takes the session file name generated by sessionFile and\n// then prefixes the REST client session path to it.", "docstring_tokens": ["restSessionFile", "is", "takes", "the", "session", "file", "name", "generated", "by", "sessionFile", "and", "then", "prefixes", "the", "REST", "client", "session", "path", "to", "it", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/config.go#L252-L258", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/config.go", "func_name": "SaveVimClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SaveVimClient saves a client to the supplied path. This facilitates re-use of\n// the session at a later date.\n//\n// Note the logic in this function has been largely adapted from govc and is\n// designed to be compatible with it.", "docstring_tokens": ["SaveVimClient", "saves", "a", "client", "to", "the", "supplied", "path", ".", "This", "facilitates", "re", "-", "use", "of", "the", "session", "at", "a", "later", "date", ".", "Note", "the", "logic", "in", "this", "function", "has", "been", "largely", "adapted", "from", "govc", "and", "is", "designed", "to", "be", "compatible", "with", "it", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/config.go#L265-L298", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/config.go", "func_name": "SaveRestClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SaveRestClient saves the REST client session ID to the supplied path. This\n// facilitates re-use of the session at a later date.", "docstring_tokens": ["SaveRestClient", "saves", "the", "REST", "client", "session", "ID", "to", "the", "supplied", "path", ".", "This", "facilitates", "re", "-", "use", "of", "the", "session", "at", "a", "later", "date", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/config.go#L302-L324", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/config.go", "func_name": "restoreVimClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// restoreVimClient loads the saved session from disk. Note that this is a helper\n// function to LoadVimClient and should not be called directly.", "docstring_tokens": ["restoreVimClient", "loads", "the", "saved", "session", "from", "disk", ".", "Note", "that", "this", "is", "a", "helper", "function", "to", "LoadVimClient", "and", "should", "not", "be", "called", "directly", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/config.go#L328-L361", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/config.go", "func_name": "readRestSessionID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// readRestSessionID reads a saved REST session ID and returns it. An empty\n// string is returned if session does not exist.", "docstring_tokens": ["readRestSessionID", "reads", "a", "saved", "REST", "session", "ID", "and", "returns", "it", ".", "An", "empty", "string", "is", "returned", "if", "session", "does", "not", "exist", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/config.go#L365-L386", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/config.go", "func_name": "LoadVimClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadVimClient loads a saved vSphere SOAP API session from disk, previously\n// saved by SaveVimClient, checking it for validity before returning it. A nil\n// client means that the session is no longer valid and should be created from\n// scratch.\n//\n// Note the logic in this function has been largely adapted from govc and is\n// designed to be compatible with it - if a session has already been saved with\n// govc, Terraform will attempt to use that session first.", "docstring_tokens": ["LoadVimClient", "loads", "a", "saved", "vSphere", "SOAP", "API", "session", "from", "disk", "previously", "saved", "by", "SaveVimClient", "checking", "it", "for", "validity", "before", "returning", "it", ".", "A", "nil", "client", "means", "that", "the", "session", "is", "no", "longer", "valid", "and", "should", "be", "created", "from", "scratch", ".", "Note", "the", "logic", "in", "this", "function", "has", "been", "largely", "adapted", "from", "govc", "and", "is", "designed", "to", "be", "compatible", "with", "it", "-", "if", "a", "session", "has", "already", "been", "saved", "with", "govc", "Terraform", "will", "attempt", "to", "use", "that", "session", "first", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/config.go#L396-L434", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/config.go", "func_name": "LoadRestClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadRestClient loads a saved vSphere REST API session from disk, previously\n// saved by SaveRestClient, checking it for validity before returning it. If\n// it's not valid, false is returned as the third return value, but the client\n// can still be technically used for logging in by calling Login on the client.", "docstring_tokens": ["LoadRestClient", "loads", "a", "saved", "vSphere", "REST", "API", "session", "from", "disk", "previously", "saved", "by", "SaveRestClient", "checking", "it", "for", "validity", "before", "returning", "it", ".", "If", "it", "s", "not", "valid", "false", "is", "returned", "as", "the", "third", "return", "value", "but", "the", "client", "can", "still", "be", "technically", "used", "for", "logging", "in", "by", "calling", "Login", "on", "the", "client", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/config.go#L440-L460", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/config.go", "func_name": "SavedVimSessionOrNew", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SavedVimSessionOrNew either loads a saved SOAP session from disk, or creates\n// a new one.", "docstring_tokens": ["SavedVimSessionOrNew", "either", "loads", "a", "saved", "SOAP", "session", "from", "disk", "or", "creates", "a", "new", "one", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/config.go#L464-L481", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/config.go", "func_name": "SavedRestSessionOrNew", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SavedRestSessionOrNew either loads a saved REST session from disk, or creates\n// a new one.", "docstring_tokens": ["SavedRestSessionOrNew", "either", "loads", "a", "saved", "REST", "session", "from", "disk", "or", "creates", "a", "new", "one", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/config.go#L485-L501", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/event_helper.go", "func_name": "wait", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// wait waits for the customization of a supplied VirtualMachine to complete,\n// either due to success or error. It does this by watching specifically for\n// CustomizationSucceeded and CustomizationFailed events. If the customization\n// failed due to some sort of error, the full formatted message is returned as\n// an error.", "docstring_tokens": ["wait", "waits", "for", "the", "customization", "of", "a", "supplied", "VirtualMachine", "to", "complete", "either", "due", "to", "success", "or", "error", ".", "It", "does", "this", "by", "watching", "specifically", "for", "CustomizationSucceeded", "and", "CustomizationFailed", "events", ".", "If", "the", "customization", "failed", "due", "to", "some", "sort", "of", "error", "the", "full", "formatted", "message", "is", "returned", "as", "an", "error", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/event_helper.go#L72-L120", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/event_helper.go", "func_name": "selectEventsForReference", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// selectEventsForReference allows you to query events for a specific\n// ManagedObjectReference.\n//\n// Event types can be supplied to this function via the eventTypes parameter.\n// This is highly recommended when you expect the list of events to be large,\n// as there is no limit on returned events.", "docstring_tokens": ["selectEventsForReference", "allows", "you", "to", "query", "events", "for", "a", "specific", "ManagedObjectReference", ".", "Event", "types", "can", "be", "supplied", "to", "this", "function", "via", "the", "eventTypes", "parameter", ".", "This", "is", "highly", "recommended", "when", "you", "expect", "the", "list", "of", "events", "to", "be", "large", "as", "there", "is", "no", "limit", "on", "returned", "events", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/event_helper.go#L128-L140", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_file.go", "func_name": "getDatastore", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getDatastore gets datastore object", "docstring_tokens": ["getDatastore", "gets", "datastore", "object"], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_file.go#L396-L405", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_virtual_machine.go", "func_name": "resourceVSphereVirtualMachineUpdateReconfigureWithSDRS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereVirtualMachineUpdateReconfigureWithSDRS runs the reconfigure\n// part of resourceVSphereVirtualMachineUpdate through storage DRS. It's\n// designed to be run when a storage cluster is specified, versus simply\n// specifying datastores.", "docstring_tokens": ["resourceVSphereVirtualMachineUpdateReconfigureWithSDRS", "runs", "the", "reconfigure", "part", "of", "resourceVSphereVirtualMachineUpdate", "through", "storage", "DRS", ".", "It", "s", "designed", "to", "be", "run", "when", "a", "storage", "cluster", "is", "specified", "versus", "simply", "specifying", "datastores", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_virtual_machine.go#L610-L639", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_virtual_machine.go", "func_name": "resourceVSphereVirtualMachineCreateBareWithSDRS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereVirtualMachineCreateBareWithSDRS runs the creation part of\n// resourceVSphereVirtualMachineCreateBare through storage DRS. It's designed\n// to be run when a storage cluster is specified, versus simply specifying\n// datastores.", "docstring_tokens": ["resourceVSphereVirtualMachineCreateBareWithSDRS", "runs", "the", "creation", "part", "of", "resourceVSphereVirtualMachineCreateBare", "through", "storage", "DRS", ".", "It", "s", "designed", "to", "be", "run", "when", "a", "storage", "cluster", "is", "specified", "versus", "simply", "specifying", "datastores", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_virtual_machine.go#L1004-L1029", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_virtual_machine.go", "func_name": "resourceVSphereVirtualMachineCreateBareStandard", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereVirtualMachineCreateBareStandard performs the steps necessary\n// during resourceVSphereVirtualMachineCreateBare to create a virtual machine\n// when a datastore cluster is not supplied.", "docstring_tokens": ["resourceVSphereVirtualMachineCreateBareStandard", "performs", "the", "steps", "necessary", "during", "resourceVSphereVirtualMachineCreateBare", "to", "create", "a", "virtual", "machine", "when", "a", "datastore", "cluster", "is", "not", "supplied", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_virtual_machine.go#L1034-L1058", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_virtual_machine.go", "func_name": "resourceVSphereVirtualMachineCreateCloneWithSDRS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereVirtualMachineCreateCloneWithSDRS runs the clone part of\n// resourceVSphereVirtualMachineCreateClone through storage DRS. It's designed\n// to be run when a storage cluster is specified, versus simply specifying\n// datastores.", "docstring_tokens": ["resourceVSphereVirtualMachineCreateCloneWithSDRS", "runs", "the", "clone", "part", "of", "resourceVSphereVirtualMachineCreateClone", "through", "storage", "DRS", ".", "It", "s", "designed", "to", "be", "run", "when", "a", "storage", "cluster", "is", "specified", "versus", "simply", "specifying", "datastores", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_virtual_machine.go#L1237-L1263", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_virtual_machine.go", "func_name": "resourceVSphereVirtualMachineRollbackCreate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereVirtualMachineRollbackCreate attempts to \"roll back\" a\n// resource due to an error that happened post-create that will put the VM in a\n// state where it cannot be worked with. This should only be done early on in\n// the process, namely on clone operations between when the clone actually\n// happens, and no later than after the initial post-clone update is complete.\n//\n// If the rollback fails, an error is displayed prompting the user to manually\n// delete the virtual machine before trying again.", "docstring_tokens": ["resourceVSphereVirtualMachineRollbackCreate", "attempts", "to", "roll", "back", "a", "resource", "due", "to", "an", "error", "that", "happened", "post", "-", "create", "that", "will", "put", "the", "VM", "in", "a", "state", "where", "it", "cannot", "be", "worked", "with", ".", "This", "should", "only", "be", "done", "early", "on", "in", "the", "process", "namely", "on", "clone", "operations", "between", "when", "the", "clone", "actually", "happens", "and", "no", "later", "than", "after", "the", "initial", "post", "-", "clone", "update", "is", "complete", ".", "If", "the", "rollback", "fails", "an", "error", "is", "displayed", "prompting", "the", "user", "to", "manually", "delete", "the", "virtual", "machine", "before", "trying", "again", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_virtual_machine.go#L1273-L1288", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_virtual_machine.go", "func_name": "resourceVSphereVirtualMachineUpdateLocationRelocateWithSDRS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereVirtualMachineUpdateLocationRelocateWithSDRS runs the storage vMotion\n// part of resourceVSphereVirtualMachineUpdateLocation through storage DRS.\n// It's designed to be run when a storage cluster is specified, versus simply\n// specifying datastores.", "docstring_tokens": ["resourceVSphereVirtualMachineUpdateLocationRelocateWithSDRS", "runs", "the", "storage", "vMotion", "part", "of", "resourceVSphereVirtualMachineUpdateLocation", "through", "storage", "DRS", ".", "It", "s", "designed", "to", "be", "run", "when", "a", "storage", "cluster", "is", "specified", "versus", "simply", "specifying", "datastores", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_virtual_machine.go#L1378-L1401", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_virtual_machine.go", "func_name": "applyVirtualDevices", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// applyVirtualDevices is used by Create and Update to build a list of virtual\n// device changes.", "docstring_tokens": ["applyVirtualDevices", "is", "used", "by", "Create", "and", "Update", "to", "build", "a", "list", "of", "virtual", "device", "changes", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_virtual_machine.go#L1405-L1442", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_dpm_host_override.go", "func_name": "expandClusterDpmHostConfigInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandClusterDrsVMConfigInfo reads certain ResourceData keys and returns a\n// ClusterDpmHostConfigInfo.", "docstring_tokens": ["expandClusterDrsVMConfigInfo", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "ClusterDpmHostConfigInfo", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_dpm_host_override.go#L235-L243", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_dpm_host_override.go", "func_name": "flattenClusterDpmHostConfigInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenClusterDpmHostConfigInfo saves a ClusterDpmHostConfigInfo into the\n// supplied ResourceData.", "docstring_tokens": ["flattenClusterDpmHostConfigInfo", "saves", "a", "ClusterDpmHostConfigInfo", "into", "the", "supplied", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_dpm_host_override.go#L247-L252", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_dpm_host_override.go", "func_name": "resourceVSphereDPMHostOverrideFlattenID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereDPMHostOverrideFlattenID makes an ID for the\n// vsphere_dpm_host_override resource.", "docstring_tokens": ["resourceVSphereDPMHostOverrideFlattenID", "makes", "an", "ID", "for", "the", "vsphere_dpm_host_override", "resource", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_dpm_host_override.go#L262-L264", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_dpm_host_override.go", "func_name": "resourceVSphereDPMHostOverrideFindEntry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereDPMHostOverrideFindEntry attempts to locate an existing DRS VM\n// config in a cluster's configuration. It's used by the resource's read\n// functionality and tests. nil is returned if the entry cannot be found.", "docstring_tokens": ["resourceVSphereDPMHostOverrideFindEntry", "attempts", "to", "locate", "an", "existing", "DRS", "VM", "config", "in", "a", "cluster", "s", "configuration", ".", "It", "s", "used", "by", "the", "resource", "s", "read", "functionality", "and", "tests", ".", "nil", "is", "returned", "if", "the", "entry", "cannot", "be", "found", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_dpm_host_override.go#L279-L297", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_virtual_disk.go", "func_name": "resourceVSphereVirtualDisk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Define VirtualDisk args", "docstring_tokens": ["Define", "VirtualDisk", "args"], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_virtual_disk.go#L30-L106", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_virtual_disk.go", "func_name": "createHardDisk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// createHardDisk creates a new Hard Disk.", "docstring_tokens": ["createHardDisk", "creates", "a", "new", "Hard", "Disk", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_virtual_disk.go#L350-L388", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_virtual_disk.go", "func_name": "searchForDirectory", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Searches for the presence of a directory path.", "docstring_tokens": ["Searches", "for", "the", "presence", "of", "a", "directory", "path", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_virtual_disk.go#L391-L460", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/nas_datastore_helper.go", "func_name": "processMountOperations", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// processMountOperations processes all pending mount operations by diffing old\n// and new and adding any hosts that were not found in old. The datastore is\n// returned, along with any error.", "docstring_tokens": ["processMountOperations", "processes", "all", "pending", "mount", "operations", "by", "diffing", "old", "and", "new", "and", "adding", "any", "hosts", "that", "were", "not", "found", "in", "old", ".", "The", "datastore", "is", "returned", "along", "with", "any", "error", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/nas_datastore_helper.go#L68-L96", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/nas_datastore_helper.go", "func_name": "processUnmountOperations", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// processUnmountOperations processes all pending unmount operations by diffing old\n// and new and removing any hosts that were not found in new. This operation\n// only proceeds if the datastore field in the processor is populated.", "docstring_tokens": ["processUnmountOperations", "processes", "all", "pending", "unmount", "operations", "by", "diffing", "old", "and", "new", "and", "removing", "any", "hosts", "that", "were", "not", "found", "in", "new", ".", "This", "operation", "only", "proceeds", "if", "the", "datastore", "field", "in", "the", "processor", "is", "populated", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/nas_datastore_helper.go#L101-L117", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/tags_helper.go", "func_name": "isEligibleTagEndpoint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isEligibleTagEndpoint is a meta-validation that is used on login to see if\n// the connected endpoint supports the CIS REST API, which we use for tags.", "docstring_tokens": ["isEligibleTagEndpoint", "is", "a", "meta", "-", "validation", "that", "is", "used", "on", "login", "to", "see", "if", "the", "connected", "endpoint", "supports", "the", "CIS", "REST", "API", "which", "we", "use", "for", "tags", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/tags_helper.go#L109-L118", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/tags_helper.go", "func_name": "tagCategoryByName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// tagCategoryByName locates a tag category by name. It's used by the\n// vsphere_tag_category data source, and the resource importer.", "docstring_tokens": ["tagCategoryByName", "locates", "a", "tag", "category", "by", "name", ".", "It", "s", "used", "by", "the", "vsphere_tag_category", "data", "source", "and", "the", "resource", "importer", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/tags_helper.go#L122-L143", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/tags_helper.go", "func_name": "tagByName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// tagByName locates a tag by it supplied name and category ID. Use\n// tagCategoryByName to get the tag category ID if require the category ID as\n// well.", "docstring_tokens": ["tagByName", "locates", "a", "tag", "by", "it", "supplied", "name", "and", "category", "ID", ".", "Use", "tagCategoryByName", "to", "get", "the", "tag", "category", "ID", "if", "require", "the", "category", "ID", "as", "well", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/tags_helper.go#L148-L167", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/tags_helper.go", "func_name": "tagsSchema", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// tagsSchema returns the schema for the tags configuration attribute for each\n// resource that needs it.\n//\n// The key is usually \"tags\" and should be a list of tag IDs to associate with\n// this resource.", "docstring_tokens": ["tagsSchema", "returns", "the", "schema", "for", "the", "tags", "configuration", "attribute", "for", "each", "resource", "that", "needs", "it", ".", "The", "key", "is", "usually", "tags", "and", "should", "be", "a", "list", "of", "tag", "IDs", "to", "associate", "with", "this", "resource", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/tags_helper.go#L174-L181", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/tags_helper.go", "func_name": "tagTypeForObject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// tagTypeForObject takes an object.Reference and returns the tag type based on\n// its underlying type. If it's not in this list, we don't support it for\n// tagging and we return an error.", "docstring_tokens": ["tagTypeForObject", "takes", "an", "object", ".", "Reference", "and", "returns", "the", "tag", "type", "based", "on", "its", "underlying", "type", ".", "If", "it", "s", "not", "in", "this", "list", "we", "don", "t", "support", "it", "for", "tagging", "and", "we", "return", "an", "error", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/tags_helper.go#L186-L216", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/tags_helper.go", "func_name": "readTagsForResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// readTagsForResource reads the tags for a given reference and saves the list\n// in the supplied ResourceData. It returns an error if there was an issue\n// reading the tags.", "docstring_tokens": ["readTagsForResource", "reads", "the", "tags", "for", "a", "given", "reference", "and", "saves", "the", "list", "in", "the", "supplied", "ResourceData", ".", "It", "returns", "an", "error", "if", "there", "was", "an", "issue", "reading", "the", "tags", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/tags_helper.go#L221-L239", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/tags_helper.go", "func_name": "diff", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// diff is what diffOldNew and diffNewOld hand off to.", "docstring_tokens": ["diff", "is", "what", "diffOldNew", "and", "diffNewOld", "hand", "off", "to", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/tags_helper.go#L268-L283", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/tags_helper.go", "func_name": "processAttachOperations", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// processAttachOperations processes all pending attach operations by diffing old\n// and new and adding any IDs that were not found in old.", "docstring_tokens": ["processAttachOperations", "processes", "all", "pending", "attach", "operations", "by", "diffing", "old", "and", "new", "and", "adding", "any", "IDs", "that", "were", "not", "found", "in", "old", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/tags_helper.go#L287-L307", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/tags_helper.go", "func_name": "tagsClientIfDefined", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// tagsClientIfDefined goes through the client validation process and returns\n// the tags client only if there are tags defined in the supplied ResourceData.\n//\n// This should be used to fetch the tagging REST client on resources that\n// support tags, usually closer to the beginning of a CRUD function to check to\n// make sure it's worth proceeding with most of the operation. The returned\n// client should be checked for nil before passing it to processTagDiff.", "docstring_tokens": ["tagsClientIfDefined", "goes", "through", "the", "client", "validation", "process", "and", "returns", "the", "tags", "client", "only", "if", "there", "are", "tags", "defined", "in", "the", "supplied", "ResourceData", ".", "This", "should", "be", "used", "to", "fetch", "the", "tagging", "REST", "client", "on", "resources", "that", "support", "tags", "usually", "closer", "to", "the", "beginning", "of", "a", "CRUD", "function", "to", "check", "to", "make", "sure", "it", "s", "worth", "proceeding", "with", "most", "of", "the", "operation", ".", "The", "returned", "client", "should", "be", "checked", "for", "nil", "before", "passing", "it", "to", "processTagDiff", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/tags_helper.go#L340-L352", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/tags_helper.go", "func_name": "processTagDiff", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// processTagDiff wraps the whole tag diffing operation into a nice clean\n// function that resources can use.", "docstring_tokens": ["processTagDiff", "wraps", "the", "whole", "tag", "diffing", "operation", "into", "a", "nice", "clean", "function", "that", "resources", "can", "use", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/tags_helper.go#L356-L372", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_switch_structure.go", "func_name": "expandDVSContactInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandDVSContactInfo reads certain ResourceData keys and\n// returns a DVSContactInfo.", "docstring_tokens": ["expandDVSContactInfo", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "DVSContactInfo", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_switch_structure.go#L221-L227", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_switch_structure.go", "func_name": "flattenDVSContactInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenDVSContactInfo reads various fields from a\n// DVSContactInfo into the passed in ResourceData.", "docstring_tokens": ["flattenDVSContactInfo", "reads", "various", "fields", "from", "a", "DVSContactInfo", "into", "the", "passed", "in", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_switch_structure.go#L231-L235", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_switch_structure.go", "func_name": "expandDistributedVirtualSwitchHostMemberConfigSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandDistributedVirtualSwitchHostMemberConfigSpec reads certain keys from a\n// Set object map and returns a DistributedVirtualSwitchHostMemberConfigSpec.", "docstring_tokens": ["expandDistributedVirtualSwitchHostMemberConfigSpec", "reads", "certain", "keys", "from", "a", "Set", "object", "map", "and", "returns", "a", "DistributedVirtualSwitchHostMemberConfigSpec", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_switch_structure.go#L239-L262", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_switch_structure.go", "func_name": "flattenDistributedVirtualSwitchHostMember", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenDistributedVirtualSwitchHostMemberConfigSpec reads various fields\n// from a DistributedVirtualSwitchHostMemberConfigSpec and returns a Set object\n// map.\n//\n// This is the flatten counterpart to\n// expandDistributedVirtualSwitchHostMemberConfigSpec.", "docstring_tokens": ["flattenDistributedVirtualSwitchHostMemberConfigSpec", "reads", "various", "fields", "from", "a", "DistributedVirtualSwitchHostMemberConfigSpec", "and", "returns", "a", "Set", "object", "map", ".", "This", "is", "the", "flatten", "counterpart", "to", "expandDistributedVirtualSwitchHostMemberConfigSpec", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_switch_structure.go#L270-L283", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_switch_structure.go", "func_name": "expandSliceOfDistributedVirtualSwitchHostMemberConfigSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandSliceOfDistributedVirtualSwitchHostMemberConfigSpec expands all host\n// entires for a VMware DVS, detecting if a host spec needs to be added,\n// removed, or updated as well. The whole slice is returned.", "docstring_tokens": ["expandSliceOfDistributedVirtualSwitchHostMemberConfigSpec", "expands", "all", "host", "entires", "for", "a", "VMware", "DVS", "detecting", "if", "a", "host", "spec", "needs", "to", "be", "added", "removed", "or", "updated", "as", "well", ".", "The", "whole", "slice", "is", "returned", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_switch_structure.go#L288-L341", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_switch_structure.go", "func_name": "flattenSliceOfDistributedVirtualSwitchHostMember", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenSliceOfDistributedVirtualSwitchHostMember creates a set of all host\n// entries for a supplied slice of DistributedVirtualSwitchHostMember.\n//\n// This is the flatten counterpart to\n// expandSliceOfDistributedVirtualSwitchHostMemberConfigSpec.", "docstring_tokens": ["flattenSliceOfDistributedVirtualSwitchHostMember", "creates", "a", "set", "of", "all", "host", "entries", "for", "a", "supplied", "slice", "of", "DistributedVirtualSwitchHostMember", ".", "This", "is", "the", "flatten", "counterpart", "to", "expandSliceOfDistributedVirtualSwitchHostMemberConfigSpec", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_switch_structure.go#L348-L357", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_switch_structure.go", "func_name": "expandVMwareIpfixConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandVMwareIpfixConfig reads certain ResourceData keys and\n// returns a VMwareIpfixConfig.", "docstring_tokens": ["expandVMwareIpfixConfig", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "VMwareIpfixConfig", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_switch_structure.go#L361-L372", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_switch_structure.go", "func_name": "flattenVMwareIpfixConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenVMwareIpfixConfig reads various fields from a\n// VMwareIpfixConfig into the passed in ResourceData.", "docstring_tokens": ["flattenVMwareIpfixConfig", "reads", "various", "fields", "from", "a", "VMwareIpfixConfig", "into", "the", "passed", "in", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_switch_structure.go#L376-L385", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_switch_structure.go", "func_name": "flattenDvsHostInfrastructureTrafficResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenDvsHostInfrastructureTrafficResource reads various fields from a\n// DvsHostInfrastructureTrafficResource and sets appropriate keys in the\n// supplied ResourceData.", "docstring_tokens": ["flattenDvsHostInfrastructureTrafficResource", "reads", "various", "fields", "from", "a", "DvsHostInfrastructureTrafficResource", "and", "sets", "appropriate", "keys", "in", "the", "supplied", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_switch_structure.go#L473-L486", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_switch_structure.go", "func_name": "expandDVSNameArrayUplinkPortPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandDVSNameArrayUplinkPortPolicy reads certain ResourceData keys and\n// returns a DVSNameArrayUplinkPortPolicy.", "docstring_tokens": ["expandDVSNameArrayUplinkPortPolicy", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "DVSNameArrayUplinkPortPolicy", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_switch_structure.go#L514-L522", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_switch_structure.go", "func_name": "flattenDVSNameArrayUplinkPortPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenDVSNameArrayUplinkPortPolicy reads various fields from a\n// DVSNameArrayUplinkPortPolicy into the passed in ResourceData.", "docstring_tokens": ["flattenDVSNameArrayUplinkPortPolicy", "reads", "various", "fields", "from", "a", "DVSNameArrayUplinkPortPolicy", "into", "the", "passed", "in", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_switch_structure.go#L526-L531", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_switch_structure.go", "func_name": "expandVMwareDVSConfigSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandVMwareDVSConfigSpec reads certain ResourceData keys and\n// returns a VMwareDVSConfigSpec.", "docstring_tokens": ["expandVMwareDVSConfigSpec", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "VMwareDVSConfigSpec", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_switch_structure.go#L535-L556", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_switch_structure.go", "func_name": "flattenVMwareDVSConfigInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenVMwareDVSConfigInfo reads various fields from a\n// VMwareDVSConfigInfo into the passed in ResourceData.\n//\n// This is the flatten counterpart to expandVMwareDVSConfigSpec, as the\n// configuration info from a DVS comes back as this type instead of a specific\n// ConfigSpec.", "docstring_tokens": ["flattenVMwareDVSConfigInfo", "reads", "various", "fields", "from", "a", "VMwareDVSConfigInfo", "into", "the", "passed", "in", "ResourceData", ".", "This", "is", "the", "flatten", "counterpart", "to", "expandVMwareDVSConfigSpec", "as", "the", "configuration", "info", "from", "a", "DVS", "comes", "back", "as", "this", "type", "instead", "of", "a", "specific", "ConfigSpec", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_switch_structure.go#L564-L603", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_switch_structure.go", "func_name": "schemaDVSCreateSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// schemaDVSCreateSpec returns schema items for resources that\n// need to work with a DVSCreateSpec.", "docstring_tokens": ["schemaDVSCreateSpec", "returns", "schema", "items", "for", "resources", "that", "need", "to", "work", "with", "a", "DVSCreateSpec", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_switch_structure.go#L607-L621", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_switch_structure.go", "func_name": "expandDVSCreateSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandDVSCreateSpec reads certain ResourceData keys and\n// returns a DVSCreateSpec.", "docstring_tokens": ["expandDVSCreateSpec", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "DVSCreateSpec", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_switch_structure.go#L625-L635", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/virtual_machine_config_structure.go", "func_name": "getWithRestart", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getWithRestart fetches the resoruce data specified at key. If the value has\n// changed, a reboot is flagged in the virtual machine by setting\n// reboot_required to true.", "docstring_tokens": ["getWithRestart", "fetches", "the", "resoruce", "data", "specified", "at", "key", ".", "If", "the", "value", "has", "changed", "a", "reboot", "is", "flagged", "in", "the", "virtual", "machine", "by", "setting", "reboot_required", "to", "true", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/virtual_machine_config_structure.go#L53-L59", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/virtual_machine_config_structure.go", "func_name": "vAppSubresourceSchema", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// vAppSubresourceSchema represents the schema for the vApp sub-resource.\n//\n// This sub-resource allows the customization of vApp properties\n// on cloned VMs.", "docstring_tokens": ["vAppSubresourceSchema", "represents", "the", "schema", "for", "the", "vApp", "sub", "-", "resource", ".", "This", "sub", "-", "resource", "allows", "the", "customization", "of", "vApp", "properties", "on", "cloned", "VMs", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/virtual_machine_config_structure.go#L288-L297", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/virtual_machine_config_structure.go", "func_name": "expandVirtualMachineBootOptions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandVirtualMachineBootOptions reads certain ResourceData keys and\n// returns a VirtualMachineBootOptions.", "docstring_tokens": ["expandVirtualMachineBootOptions", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "VirtualMachineBootOptions", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/virtual_machine_config_structure.go#L301-L313", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/virtual_machine_config_structure.go", "func_name": "flattenVirtualMachineBootOptions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenVirtualMachineBootOptions reads various fields from a\n// VirtualMachineBootOptions into the passed in ResourceData.", "docstring_tokens": ["flattenVirtualMachineBootOptions", "reads", "various", "fields", "from", "a", "VirtualMachineBootOptions", "into", "the", "passed", "in", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/virtual_machine_config_structure.go#L317-L323", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/virtual_machine_config_structure.go", "func_name": "expandVirtualMachineFlagInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandVirtualMachineFlagInfo reads certain ResourceData keys and\n// returns a VirtualMachineFlagInfo.", "docstring_tokens": ["expandVirtualMachineFlagInfo", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "VirtualMachineFlagInfo", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/virtual_machine_config_structure.go#L327-L335", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/virtual_machine_config_structure.go", "func_name": "flattenVirtualMachineFlagInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenVirtualMachineFlagInfo reads various fields from a\n// VirtualMachineFlagInfo into the passed in ResourceData.", "docstring_tokens": ["flattenVirtualMachineFlagInfo", "reads", "various", "fields", "from", "a", "VirtualMachineFlagInfo", "into", "the", "passed", "in", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/virtual_machine_config_structure.go#L339-L345", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/virtual_machine_config_structure.go", "func_name": "expandToolsConfigInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandToolsConfigInfo reads certain ResourceData keys and\n// returns a ToolsConfigInfo.", "docstring_tokens": ["expandToolsConfigInfo", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "ToolsConfigInfo", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/virtual_machine_config_structure.go#L349-L359", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/virtual_machine_config_structure.go", "func_name": "flattenToolsConfigInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenToolsConfigInfo reads various fields from a\n// ToolsConfigInfo into the passed in ResourceData.", "docstring_tokens": ["flattenToolsConfigInfo", "reads", "various", "fields", "from", "a", "ToolsConfigInfo", "into", "the", "passed", "in", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/virtual_machine_config_structure.go#L363-L371", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/virtual_machine_config_structure.go", "func_name": "schemaVirtualMachineResourceAllocation", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// schemaVirtualMachineResourceAllocation returns the respective schema keys\n// for the various kinds of resource allocation settings available to a virtual\n// machine. This is an abridged version of ResourceAllocationInfo with only the\n// keys present that make sense for virtual machines.", "docstring_tokens": ["schemaVirtualMachineResourceAllocation", "returns", "the", "respective", "schema", "keys", "for", "the", "various", "kinds", "of", "resource", "allocation", "settings", "available", "to", "a", "virtual", "machine", ".", "This", "is", "an", "abridged", "version", "of", "ResourceAllocationInfo", "with", "only", "the", "keys", "present", "that", "make", "sense", "for", "virtual", "machines", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/virtual_machine_config_structure.go#L377-L420", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/virtual_machine_config_structure.go", "func_name": "expandVirtualMachineResourceAllocation", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandVirtualMachineResourceAllocation reads the VM resource allocation\n// resource data keys for the type supplied by key and returns an appropriate\n// types.ResourceAllocationInfo reference.", "docstring_tokens": ["expandVirtualMachineResourceAllocation", "reads", "the", "VM", "resource", "allocation", "resource", "data", "keys", "for", "the", "type", "supplied", "by", "key", "and", "returns", "an", "appropriate", "types", ".", "ResourceAllocationInfo", "reference", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/virtual_machine_config_structure.go#L425-L441", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/virtual_machine_config_structure.go", "func_name": "expandLatencySensitivity", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandLatencySensitivity reads certain ResourceData keys and returns a\n// LatencySensitivity.", "docstring_tokens": ["expandLatencySensitivity", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "LatencySensitivity", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/virtual_machine_config_structure.go#L445-L450", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/virtual_machine_config_structure.go", "func_name": "flattenLatencySensitivity", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenLatencySensitivity reads various fields from a LatencySensitivity and\n// sets appropriate keys in the supplied ResourceData.", "docstring_tokens": ["flattenLatencySensitivity", "reads", "various", "fields", "from", "a", "LatencySensitivity", "and", "sets", "appropriate", "keys", "in", "the", "supplied", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/virtual_machine_config_structure.go#L454-L460", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/virtual_machine_config_structure.go", "func_name": "flattenVirtualMachineResourceAllocation", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenVirtualMachineResourceAllocation reads various fields from a\n// ResourceAllocationInfo and sets appropriate keys in the\n// supplied ResourceData.", "docstring_tokens": ["flattenVirtualMachineResourceAllocation", "reads", "various", "fields", "from", "a", "ResourceAllocationInfo", "and", "sets", "appropriate", "keys", "in", "the", "supplied", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/virtual_machine_config_structure.go#L465-L478", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/virtual_machine_config_structure.go", "func_name": "flattenVAppConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenVAppConfig reads in the vAppConfig from a running virtual machine\n// and sets all keys in vapp.", "docstring_tokens": ["flattenVAppConfig", "reads", "in", "the", "vAppConfig", "from", "a", "running", "virtual", "machine", "and", "sets", "all", "keys", "in", "vapp", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/virtual_machine_config_structure.go#L655-L683", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/virtual_machine_config_structure.go", "func_name": "expandVirtualMachineConfigSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandVirtualMachineConfigSpec reads certain ResourceData keys and\n// returns a VirtualMachineConfigSpec.", "docstring_tokens": ["expandVirtualMachineConfigSpec", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "VirtualMachineConfigSpec", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/virtual_machine_config_structure.go#L746-L780", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/virtual_machine_config_structure.go", "func_name": "flattenVirtualMachineConfigInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenVirtualMachineConfigInfo reads various fields from a\n// VirtualMachineConfigInfo into the passed in ResourceData.\n//\n// This is the flatten counterpart to expandVirtualMachineConfigSpec.", "docstring_tokens": ["flattenVirtualMachineConfigInfo", "reads", "various", "fields", "from", "a", "VirtualMachineConfigInfo", "into", "the", "passed", "in", "ResourceData", ".", "This", "is", "the", "flatten", "counterpart", "to", "expandVirtualMachineConfigSpec", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/virtual_machine_config_structure.go#L786-L830", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/virtual_machine_config_structure.go", "func_name": "expandVirtualMachineConfigSpecChanged", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandVirtualMachineConfigSpecChanged compares an existing\n// VirtualMachineConfigInfo with a VirtualMachineConfigSpec generated from\n// existing resource data and compares them to see if there is a change. The new spec\n//\n// It does this be creating a fake ResourceData off of the VM resource schema,\n// flattening the config info into that, and then expanding both ResourceData\n// instances and comparing the resultant ConfigSpecs.", "docstring_tokens": ["expandVirtualMachineConfigSpecChanged", "compares", "an", "existing", "VirtualMachineConfigInfo", "with", "a", "VirtualMachineConfigSpec", "generated", "from", "existing", "resource", "data", "and", "compares", "them", "to", "see", "if", "there", "is", "a", "change", ".", "The", "new", "spec", "It", "does", "this", "be", "creating", "a", "fake", "ResourceData", "off", "of", "the", "VM", "resource", "schema", "flattening", "the", "config", "info", "into", "that", "and", "then", "expanding", "both", "ResourceData", "instances", "and", "comparing", "the", "resultant", "ConfigSpecs", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/virtual_machine_config_structure.go#L839-L863", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/virtual_machine_config_structure.go", "func_name": "getMemoryReservationLockedToMax", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getMemoryReservationLockedToMax determines if the memory_reservation is not\n// set to be equal to memory. If they are not equal, then the memory\n// reservation needs to be unlocked from the maximum. Rather than supporting\n// the locking reservation to max option, we can set memory_reservation to\n// memory in the configuration. Not supporting the option causes problems when\n// cloning from a template that has it enabled. The solution is to set it to\n// false when needed, but leave it alone when the change is not necessary.", "docstring_tokens": ["getMemoryReservationLockedToMax", "determines", "if", "the", "memory_reservation", "is", "not", "set", "to", "be", "equal", "to", "memory", ".", "If", "they", "are", "not", "equal", "then", "the", "memory", "reservation", "needs", "to", "be", "unlocked", "from", "the", "maximum", ".", "Rather", "than", "supporting", "the", "locking", "reservation", "to", "max", "option", "we", "can", "set", "memory_reservation", "to", "memory", "in", "the", "configuration", ".", "Not", "supporting", "the", "option", "causes", "problems", "when", "cloning", "from", "a", "template", "that", "has", "it", "enabled", ".", "The", "solution", "is", "to", "set", "it", "to", "false", "when", "needed", "but", "leave", "it", "alone", "when", "the", "change", "is", "not", "necessary", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/virtual_machine_config_structure.go#L872-L877", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/resourcepool/resource_pool_helper.go", "func_name": "FromPathOrDefault", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FromPathOrDefault returns a ResourcePool via its supplied path.", "docstring_tokens": ["FromPathOrDefault", "returns", "a", "ResourcePool", "via", "its", "supplied", "path", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/resourcepool/resource_pool_helper.go#L19-L43", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/resourcepool/resource_pool_helper.go", "func_name": "Properties", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Properties returns the ResourcePool managed object from its higher-level\n// object.", "docstring_tokens": ["Properties", "returns", "the", "ResourcePool", "managed", "object", "from", "its", "higher", "-", "level", "object", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/resourcepool/resource_pool_helper.go#L67-L75", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/resourcepool/resource_pool_helper.go", "func_name": "ValidateHost", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidateHost checks to see if a HostSystem is a member of a ResourcePool\n// through cluster membership, or if the HostSystem ID matches the ID of a\n// standalone host ComputeResource. An error is returned if it is not a member\n// of the cluster to which the resource pool belongs, or if there was some sort\n// of other error with checking.\n//\n// This is used as an extra validation before a VM creation happens, or vMotion\n// to a specific host is attempted.", "docstring_tokens": ["ValidateHost", "checks", "to", "see", "if", "a", "HostSystem", "is", "a", "member", "of", "a", "ResourcePool", "through", "cluster", "membership", "or", "if", "the", "HostSystem", "ID", "matches", "the", "ID", "of", "a", "standalone", "host", "ComputeResource", ".", "An", "error", "is", "returned", "if", "it", "is", "not", "a", "member", "of", "the", "cluster", "to", "which", "the", "resource", "pool", "belongs", "or", "if", "there", "was", "some", "sort", "of", "other", "error", "with", "checking", ".", "This", "is", "used", "as", "an", "extra", "validation", "before", "a", "VM", "creation", "happens", "or", "vMotion", "to", "a", "specific", "host", "is", "attempted", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/resourcepool/resource_pool_helper.go#L85-L107", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/resourcepool/resource_pool_helper.go", "func_name": "OSFamily", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OSFamily uses the resource pool's environment browser to get the OS family\n// for a specific guest ID.", "docstring_tokens": ["OSFamily", "uses", "the", "resource", "pool", "s", "environment", "browser", "to", "get", "the", "OS", "family", "for", "a", "specific", "guest", "ID", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/resourcepool/resource_pool_helper.go#L122-L129", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/resourcepool/resource_pool_helper.go", "func_name": "Create", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create creates a ResourcePool.", "docstring_tokens": ["Create", "creates", "a", "ResourcePool", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/resourcepool/resource_pool_helper.go#L132-L141", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/resourcepool/resource_pool_helper.go", "func_name": "Update", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Update updates a ResourcePool.", "docstring_tokens": ["Update", "updates", "a", "ResourcePool", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/resourcepool/resource_pool_helper.go#L144-L149", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/resourcepool/resource_pool_helper.go", "func_name": "MoveIntoResourcePool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MoveIntoResourcePool moves a virtual machine, resource pool, or\n// vApp into the specified ResourcePool.", "docstring_tokens": ["MoveIntoResourcePool", "moves", "a", "virtual", "machine", "resource", "pool", "or", "vApp", "into", "the", "specified", "ResourcePool", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/resourcepool/resource_pool_helper.go#L165-L174", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_ha_vm_override.go", "func_name": "expandClusterDasVMConfigInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandClusterDasVMConfigInfo reads certain ResourceData keys and returns a\n// ClusterDasVmConfigInfo.", "docstring_tokens": ["expandClusterDasVMConfigInfo", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "ClusterDasVmConfigInfo", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_ha_vm_override.go#L355-L376", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_ha_vm_override.go", "func_name": "flattenClusterDasVMConfigInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenClusterDasVmConfigInfo saves a ClusterDasVmConfigInfo into the\n// supplied ResourceData.", "docstring_tokens": ["flattenClusterDasVmConfigInfo", "saves", "a", "ClusterDasVmConfigInfo", "into", "the", "supplied", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_ha_vm_override.go#L380-L393", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_ha_vm_override.go", "func_name": "resourceVSphereHAVMOverrideFlattenID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereHAVMOverrideFlattenID makes an ID for the\n// vsphere_ha_vm_override resource.", "docstring_tokens": ["resourceVSphereHAVMOverrideFlattenID", "makes", "an", "ID", "for", "the", "vsphere_ha_vm_override", "resource", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_ha_vm_override.go#L403-L411", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_ha_vm_override.go", "func_name": "resourceVSphereHAVMOverrideFindEntry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereHAVMOverrideFindEntry attempts to locate an existing\n// VM-specific HA config in a cluster's configuration. It's used by the\n// resource's read functionality and tests. nil is returned if the entry cannot\n// be found.", "docstring_tokens": ["resourceVSphereHAVMOverrideFindEntry", "attempts", "to", "locate", "an", "existing", "VM", "-", "specific", "HA", "config", "in", "a", "cluster", "s", "configuration", ".", "It", "s", "used", "by", "the", "resource", "s", "read", "functionality", "and", "tests", ".", "nil", "is", "returned", "if", "the", "entry", "cannot", "be", "found", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_ha_vm_override.go#L427-L445", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_port_group_structure.go", "func_name": "schemaHostPortGroupSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// schemaHostPortGroupSpec returns schema items for resources that\n// need to work with HostPortGroupSpec, such as port groups.", "docstring_tokens": ["schemaHostPortGroupSpec", "returns", "schema", "items", "for", "resources", "that", "need", "to", "work", "with", "HostPortGroupSpec", "such", "as", "port", "groups", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_port_group_structure.go#L18-L43", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_port_group_structure.go", "func_name": "expandHostPortGroupSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandHostPortGroupSpec reads certain ResourceData keys and returns a\n// HostPortGroupSpec.", "docstring_tokens": ["expandHostPortGroupSpec", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "HostPortGroupSpec", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_port_group_structure.go#L47-L55", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_port_group_structure.go", "func_name": "flattenHostPortGroupSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenHostPortGroupSpec reads various fields from a HostPortGroupSpec into\n// the passed in ResourceData.", "docstring_tokens": ["flattenHostPortGroupSpec", "reads", "various", "fields", "from", "a", "HostPortGroupSpec", "into", "the", "passed", "in", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_port_group_structure.go#L59-L65", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_port_group_structure.go", "func_name": "calculatePorts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// calculatePorts is a utility function that returns a set of port data.", "docstring_tokens": ["calculatePorts", "is", "a", "utility", "function", "that", "returns", "a", "set", "of", "port", "data", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_port_group_structure.go#L88-L98", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_port_group_structure.go", "func_name": "portGroupPortSchema", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// portGroupPortSchema returns a sub-schema for a port group's connected ports.", "docstring_tokens": ["portGroupPortSchema", "returns", "a", "sub", "-", "schema", "for", "a", "port", "group", "s", "connected", "ports", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_port_group_structure.go#L101-L122", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_port_group_structure.go", "func_name": "saveHostPortGroupID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// saveHostPortGroupID sets a special ID for a host virtual switch, composed of\n// the MOID for the concerned HostSystem and the port group's key.", "docstring_tokens": ["saveHostPortGroupID", "sets", "a", "special", "ID", "for", "a", "host", "virtual", "switch", "composed", "of", "the", "MOID", "for", "the", "concerned", "HostSystem", "and", "the", "port", "group", "s", "key", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_port_group_structure.go#L126-L128", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_port_group_structure.go", "func_name": "portGroupIDsFromResourceID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// portGroupIDsFromResourceID passes a resource's ID through\n// splitHostPortGroupID.", "docstring_tokens": ["portGroupIDsFromResourceID", "passes", "a", "resource", "s", "ID", "through", "splitHostPortGroupID", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_port_group_structure.go#L142-L144", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/computeresource/compute_resource_helper.go", "func_name": "BaseFromPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BaseFromPath returns a BaseComputeResource for a given path.", "docstring_tokens": ["BaseFromPath", "returns", "a", "BaseComputeResource", "for", "a", "given", "path", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/computeresource/compute_resource_helper.go#L80-L99", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/computeresource/compute_resource_helper.go", "func_name": "BaseFromReference", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BaseFromReference returns a BaseComputeResource for a given managed object\n// reference.", "docstring_tokens": ["BaseFromReference", "returns", "a", "BaseComputeResource", "for", "a", "given", "managed", "object", "reference", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/computeresource/compute_resource_helper.go#L103-L111", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/computeresource/compute_resource_helper.go", "func_name": "BaseProperties", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BaseProperties returns the base-level ComputeResource managed object for a\n// BaseComputeResource, an interface that any base-level ComputeResource and\n// derivative object implements.\n//\n// Note that this does not return any cluster-level attributes.", "docstring_tokens": ["BaseProperties", "returns", "the", "base", "-", "level", "ComputeResource", "managed", "object", "for", "a", "BaseComputeResource", "an", "interface", "that", "any", "base", "-", "level", "ComputeResource", "and", "derivative", "object", "implements", ".", "Note", "that", "this", "does", "not", "return", "any", "cluster", "-", "level", "attributes", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/computeresource/compute_resource_helper.go#L118-L126", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/computeresource/compute_resource_helper.go", "func_name": "BasePropertiesFromReference", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BasePropertiesFromReference combines BaseFromReference and BaseProperties to\n// get a base-level ComputeResource managed object for a specific managed\n// object reference.", "docstring_tokens": ["BasePropertiesFromReference", "combines", "BaseFromReference", "and", "BaseProperties", "to", "get", "a", "base", "-", "level", "ComputeResource", "managed", "object", "for", "a", "specific", "managed", "object", "reference", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/computeresource/compute_resource_helper.go#L131-L137", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/computeresource/compute_resource_helper.go", "func_name": "DefaultDevicesFromReference", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DefaultDevicesFromReference fetches the default virtual device list for a\n// specific compute resource from a supplied managed object reference.", "docstring_tokens": ["DefaultDevicesFromReference", "fetches", "the", "default", "virtual", "device", "list", "for", "a", "specific", "compute", "resource", "from", "a", "supplied", "managed", "object", "reference", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/computeresource/compute_resource_helper.go#L141-L150", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/computeresource/compute_resource_helper.go", "func_name": "OSFamily", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OSFamily uses the compute resource's environment browser to get the OS family\n// for a specific guest ID.", "docstring_tokens": ["OSFamily", "uses", "the", "compute", "resource", "s", "environment", "browser", "to", "get", "the", "OS", "family", "for", "a", "specific", "guest", "ID", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/computeresource/compute_resource_helper.go#L154-L162", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/computeresource/compute_resource_helper.go", "func_name": "EnvironmentBrowserFromReference", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EnvironmentBrowserFromReference loads an environment browser for the\n// specific compute resource reference. The reference can be either a\n// standalone host or cluster.\n//\n// As an added safety feature if the compute resource properties come back with\n// an unset environmentBrowser attribute, this function will return an error.\n// This is to protect against cases where this may come up such as licensing\n// issues or clusters without hosts.", "docstring_tokens": ["EnvironmentBrowserFromReference", "loads", "an", "environment", "browser", "for", "the", "specific", "compute", "resource", "reference", ".", "The", "reference", "can", "be", "either", "a", "standalone", "host", "or", "cluster", ".", "As", "an", "added", "safety", "feature", "if", "the", "compute", "resource", "properties", "come", "back", "with", "an", "unset", "environmentBrowser", "attribute", "this", "function", "will", "return", "an", "error", ".", "This", "is", "to", "protect", "against", "cases", "where", "this", "may", "come", "up", "such", "as", "licensing", "issues", "or", "clusters", "without", "hosts", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/computeresource/compute_resource_helper.go#L172-L188", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/clustercomputeresource/cluster_compute_resource_helper.go", "func_name": "Properties", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Properties is a convenience method that wraps fetching the\n// ClusterComputeResource MO from its higher-level object.", "docstring_tokens": ["Properties", "is", "a", "convenience", "method", "that", "wraps", "fetching", "the", "ClusterComputeResource", "MO", "from", "its", "higher", "-", "level", "object", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/clustercomputeresource/cluster_compute_resource_helper.go#L60-L68", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/clustercomputeresource/cluster_compute_resource_helper.go", "func_name": "Create", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create creates a ClusterComputeResource in a supplied folder. The resulting\n// ClusterComputeResource is returned.", "docstring_tokens": ["Create", "creates", "a", "ClusterComputeResource", "in", "a", "supplied", "folder", ".", "The", "resulting", "ClusterComputeResource", "is", "returned", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/clustercomputeresource/cluster_compute_resource_helper.go#L72-L81", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/clustercomputeresource/cluster_compute_resource_helper.go", "func_name": "MoveToFolder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MoveToFolder is a complex method that moves a ClusterComputeResource to a given relative\n// compute folder path. \"Relative\" here means relative to a datacenter, which\n// is discovered from the current ClusterComputeResource path.", "docstring_tokens": ["MoveToFolder", "is", "a", "complex", "method", "that", "moves", "a", "ClusterComputeResource", "to", "a", "given", "relative", "compute", "folder", "path", ".", "Relative", "here", "means", "relative", "to", "a", "datacenter", "which", "is", "discovered", "from", "the", "current", "ClusterComputeResource", "path", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/clustercomputeresource/cluster_compute_resource_helper.go#L98-L104", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/clustercomputeresource/cluster_compute_resource_helper.go", "func_name": "Reconfigure", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reconfigure reconfigures a cluster. This just gets dispatched to\n// computeresource as both methods are the same.", "docstring_tokens": ["Reconfigure", "reconfigures", "a", "cluster", ".", "This", "just", "gets", "dispatched", "to", "computeresource", "as", "both", "methods", "are", "the", "same", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/clustercomputeresource/cluster_compute_resource_helper.go#L118-L120", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/clustercomputeresource/cluster_compute_resource_helper.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete destroys a ClusterComputeResource.", "docstring_tokens": ["Delete", "destroys", "a", "ClusterComputeResource", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/clustercomputeresource/cluster_compute_resource_helper.go#L123-L132", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/clustercomputeresource/cluster_compute_resource_helper.go", "func_name": "IsMember", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsMember checks to see if a host is a member of the compute cluster\n// in question.\n//\n// This is a pretty basic operation that checks that the parent of the\n// compute is the ClusterComputeResource.", "docstring_tokens": ["IsMember", "checks", "to", "see", "if", "a", "host", "is", "a", "member", "of", "the", "compute", "cluster", "in", "question", ".", "This", "is", "a", "pretty", "basic", "operation", "that", "checks", "that", "the", "parent", "of", "the", "compute", "is", "the", "ClusterComputeResource", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/clustercomputeresource/cluster_compute_resource_helper.go#L139-L151", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/clustercomputeresource/cluster_compute_resource_helper.go", "func_name": "MoveHostsInto", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MoveHostsInto moves all of the supplied hosts into the cluster. All virtual\n// machines are moved to the cluster's root resource pool and any resource\n// pools on the host itself are deleted.", "docstring_tokens": ["MoveHostsInto", "moves", "all", "of", "the", "supplied", "hosts", "into", "the", "cluster", ".", "All", "virtual", "machines", "are", "moved", "to", "the", "cluster", "s", "root", "resource", "pool", "and", "any", "resource", "pools", "on", "the", "host", "itself", "are", "deleted", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/clustercomputeresource/cluster_compute_resource_helper.go#L156-L179", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/clustercomputeresource/cluster_compute_resource_helper.go", "func_name": "MoveHostsOutOf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MoveHostsOutOf moves a supplied list of hosts out of the specified cluster.\n// The host is moved to the root host folder for the datacenter that the\n// cluster is in.\n//\n// The host is placed into maintenance mode with evacuate flagged on, ensuring\n// that as many VMs as possible are moved out of the host before removing it\n// from the cluster. The effectiveness of this operation is dictated by the\n// cluster's DRS settings, which also affects if this means that the task will\n// block and require manual intervention. The supplied timeout is passed to the\n// maintenance mode operations, and represents the timeout in seconds.\n//\n// Individual hosts are taken out of maintenance mode after its operation is\n// complete.", "docstring_tokens": ["MoveHostsOutOf", "moves", "a", "supplied", "list", "of", "hosts", "out", "of", "the", "specified", "cluster", ".", "The", "host", "is", "moved", "to", "the", "root", "host", "folder", "for", "the", "datacenter", "that", "the", "cluster", "is", "in", ".", "The", "host", "is", "placed", "into", "maintenance", "mode", "with", "evacuate", "flagged", "on", "ensuring", "that", "as", "many", "VMs", "as", "possible", "are", "moved", "out", "of", "the", "host", "before", "removing", "it", "from", "the", "cluster", ".", "The", "effectiveness", "of", "this", "operation", "is", "dictated", "by", "the", "cluster", "s", "DRS", "settings", "which", "also", "affects", "if", "this", "means", "that", "the", "task", "will", "block", "and", "require", "manual", "intervention", ".", "The", "supplied", "timeout", "is", "passed", "to", "the", "maintenance", "mode", "operations", "and", "represents", "the", "timeout", "in", "seconds", ".", "Individual", "hosts", "are", "taken", "out", "of", "maintenance", "mode", "after", "its", "operation", "is", "complete", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/clustercomputeresource/cluster_compute_resource_helper.go#L194-L201", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_port_setting_structure.go", "func_name": "expandVmwareDistributedVirtualSwitchVlanIDSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandVmwareDistributedVirtualSwitchVlanIDSpec reads certain ResourceData keys and\n// returns a VmwareDistributedVirtualSwitchVlanIdSpec.", "docstring_tokens": ["expandVmwareDistributedVirtualSwitchVlanIDSpec", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "VmwareDistributedVirtualSwitchVlanIdSpec", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_port_setting_structure.go#L236-L241", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_port_setting_structure.go", "func_name": "flattenVmwareDistributedVirtualSwitchVlanIDSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenVmwareDistributedVirtualSwitchVlanIDSpec reads various fields from a\n// VmwareDistributedVirtualSwitchVlanIdSpec into the passed in ResourceData.", "docstring_tokens": ["flattenVmwareDistributedVirtualSwitchVlanIDSpec", "reads", "various", "fields", "from", "a", "VmwareDistributedVirtualSwitchVlanIdSpec", "into", "the", "passed", "in", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_port_setting_structure.go#L245-L248", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_port_setting_structure.go", "func_name": "expandVmwareDistributedVirtualSwitchTrunkVlanSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandVmwareDistributedVirtualSwitchTrunkVlanSpec reads certain ResourceData keys and\n// returns a VmwareDistributedVirtualSwitchTrunkVlanSpec.", "docstring_tokens": ["expandVmwareDistributedVirtualSwitchTrunkVlanSpec", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "VmwareDistributedVirtualSwitchTrunkVlanSpec", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_port_setting_structure.go#L252-L275", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_port_setting_structure.go", "func_name": "flattenVmwareDistributedVirtualSwitchTrunkVlanSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenVmwareDistributedVirtualSwitchTrunkVlanSpec reads various fields from a\n// VmwareDistributedVirtualSwitchTrunkVlanSpec into the passed in ResourceData.", "docstring_tokens": ["flattenVmwareDistributedVirtualSwitchTrunkVlanSpec", "reads", "various", "fields", "from", "a", "VmwareDistributedVirtualSwitchTrunkVlanSpec", "into", "the", "passed", "in", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_port_setting_structure.go#L279-L291", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_port_setting_structure.go", "func_name": "expandVmwareDistributedVirtualSwitchPvlanSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandVmwareDistributedVirtualSwitchPvlanSpec reads certain ResourceData keys and\n// returns a VmwareDistributedVirtualSwitchPvlanSpec.", "docstring_tokens": ["expandVmwareDistributedVirtualSwitchPvlanSpec", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "VmwareDistributedVirtualSwitchPvlanSpec", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_port_setting_structure.go#L295-L300", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_port_setting_structure.go", "func_name": "flattenVmwareDistributedVirtualSwitchPvlanSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenVmwareDistributedVirtualSwitchPvlanSpec reads various fields from a\n// VmwareDistributedVirtualSwitchPvlanSpec into the passed in ResourceData.", "docstring_tokens": ["flattenVmwareDistributedVirtualSwitchPvlanSpec", "reads", "various", "fields", "from", "a", "VmwareDistributedVirtualSwitchPvlanSpec", "into", "the", "passed", "in", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_port_setting_structure.go#L304-L307", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_port_setting_structure.go", "func_name": "expandBaseVmwareDistributedVirtualSwitchVlanSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandBaseVmwareDistributedVirtualSwitchVlanSpec reads certain ResourceData keys and\n// returns a BaseVmwareDistributedVirtualSwitchVlanSpec.", "docstring_tokens": ["expandBaseVmwareDistributedVirtualSwitchVlanSpec", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "BaseVmwareDistributedVirtualSwitchVlanSpec", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_port_setting_structure.go#L311-L328", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_port_setting_structure.go", "func_name": "flattenBaseVmwareDistributedVirtualSwitchVlanSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenBaseVmwareDistributedVirtualSwitchVlanSpec reads various fields from a\n// BaseVmwareDistributedVirtualSwitchVlanSpec into the passed in ResourceData.", "docstring_tokens": ["flattenBaseVmwareDistributedVirtualSwitchVlanSpec", "reads", "various", "fields", "from", "a", "BaseVmwareDistributedVirtualSwitchVlanSpec", "into", "the", "passed", "in", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_port_setting_structure.go#L332-L349", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_port_setting_structure.go", "func_name": "expandDVSFailureCriteria", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandDVSFailureCriteria reads certain ResourceData keys and\n// returns a DVSFailureCriteria.", "docstring_tokens": ["expandDVSFailureCriteria", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "DVSFailureCriteria", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_port_setting_structure.go#L353-L362", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_port_setting_structure.go", "func_name": "flattenDVSFailureCriteria", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenDVSFailureCriteria reads various fields from a\n// DVSFailureCriteria into the passed in ResourceData.", "docstring_tokens": ["flattenDVSFailureCriteria", "reads", "various", "fields", "from", "a", "DVSFailureCriteria", "into", "the", "passed", "in", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_port_setting_structure.go#L366-L373", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_port_setting_structure.go", "func_name": "expandVMwareUplinkPortOrderPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandVMwareUplinkPortOrderPolicy reads certain ResourceData keys and\n// returns a VMwareUplinkPortOrderPolicy.", "docstring_tokens": ["expandVMwareUplinkPortOrderPolicy", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "VMwareUplinkPortOrderPolicy", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_port_setting_structure.go#L377-L387", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_port_setting_structure.go", "func_name": "flattenVMwareUplinkPortOrderPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenVMwareUplinkPortOrderPolicy reads various fields from a\n// VMwareUplinkPortOrderPolicy into the passed in ResourceData.", "docstring_tokens": ["flattenVMwareUplinkPortOrderPolicy", "reads", "various", "fields", "from", "a", "VMwareUplinkPortOrderPolicy", "into", "the", "passed", "in", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_port_setting_structure.go#L391-L403", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_port_setting_structure.go", "func_name": "expandVmwareUplinkPortTeamingPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandVmwareUplinkPortTeamingPolicy reads certain ResourceData keys and\n// returns a VmwareUplinkPortTeamingPolicy.", "docstring_tokens": ["expandVmwareUplinkPortTeamingPolicy", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "VmwareUplinkPortTeamingPolicy", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_port_setting_structure.go#L407-L420", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_port_setting_structure.go", "func_name": "flattenVmwareUplinkPortTeamingPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenVmwareUplinkPortTeamingPolicy reads various fields from a\n// VmwareUplinkPortTeamingPolicy into the passed in ResourceData.", "docstring_tokens": ["flattenVmwareUplinkPortTeamingPolicy", "reads", "various", "fields", "from", "a", "VmwareUplinkPortTeamingPolicy", "into", "the", "passed", "in", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_port_setting_structure.go#L424-L440", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_port_setting_structure.go", "func_name": "expandDVSSecurityPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandDVSSecurityPolicy reads certain ResourceData keys and\n// returns a DVSSecurityPolicy.", "docstring_tokens": ["expandDVSSecurityPolicy", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "DVSSecurityPolicy", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_port_setting_structure.go#L444-L455", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_port_setting_structure.go", "func_name": "flattenDVSSecurityPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenDVSSecurityPolicy reads various fields from a\n// DVSSecurityPolicy into the passed in ResourceData.", "docstring_tokens": ["flattenDVSSecurityPolicy", "reads", "various", "fields", "from", "a", "DVSSecurityPolicy", "into", "the", "passed", "in", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_port_setting_structure.go#L459-L468", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_port_setting_structure.go", "func_name": "expandVMwareUplinkLacpPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandVMwareUplinkLacpPolicy reads certain ResourceData keys and\n// returns a VMwareUplinkLacpPolicy.", "docstring_tokens": ["expandVMwareUplinkLacpPolicy", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "VMwareUplinkLacpPolicy", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_port_setting_structure.go#L472-L482", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_port_setting_structure.go", "func_name": "flattenVMwareUplinkLacpPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenVMwareUplinkLacpPolicy reads various fields from a\n// VMwareUplinkLacpPolicy into the passed in ResourceData.", "docstring_tokens": ["flattenVMwareUplinkLacpPolicy", "reads", "various", "fields", "from", "a", "VMwareUplinkLacpPolicy", "into", "the", "passed", "in", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_port_setting_structure.go#L486-L494", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_port_setting_structure.go", "func_name": "expandDVSTrafficShapingPolicyIngress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandDVSTrafficShapingPolicyIngress reads certain ResourceData keys and\n// returns a DVSTrafficShapingPolicy for ingress traffic.", "docstring_tokens": ["expandDVSTrafficShapingPolicyIngress", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "DVSTrafficShapingPolicy", "for", "ingress", "traffic", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_port_setting_structure.go#L498-L510", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_port_setting_structure.go", "func_name": "flattenDVSTrafficShapingPolicyIngress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenDVSTrafficShapingPolicyIngress reads various fields from the\n// DVSTrafficShapingPolicy ingress policy into the passed in ResourceData.", "docstring_tokens": ["flattenDVSTrafficShapingPolicyIngress", "reads", "various", "fields", "from", "the", "DVSTrafficShapingPolicy", "ingress", "policy", "into", "the", "passed", "in", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_port_setting_structure.go#L514-L525", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_port_setting_structure.go", "func_name": "expandVMwareDVSPortSetting", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandVMwareDVSPortSetting reads certain ResourceData keys and\n// returns a VMwareDVSPortSetting.", "docstring_tokens": ["expandVMwareDVSPortSetting", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "VMwareDVSPortSetting", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_port_setting_structure.go#L559-L579", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_port_setting_structure.go", "func_name": "flattenVMwareDVSPortSetting", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenVMwareDVSPortSetting reads various fields from a\n// VMwareDVSPortSetting into the passed in ResourceData.", "docstring_tokens": ["flattenVMwareDVSPortSetting", "reads", "various", "fields", "from", "a", "VMwareDVSPortSetting", "into", "the", "passed", "in", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_port_setting_structure.go#L583-L612", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_drs_vm_override.go", "func_name": "expandClusterDrsVMConfigInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandClusterDrsVMConfigInfo reads certain ResourceData keys and returns a\n// ClusterDrsVmConfigInfo.", "docstring_tokens": ["expandClusterDrsVMConfigInfo", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "ClusterDrsVmConfigInfo", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_drs_vm_override.go#L242-L250", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_drs_vm_override.go", "func_name": "flattenClusterDrsVMConfigInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenClusterDrsVmConfigInfo saves a ClusterDrsVmConfigInfo into the\n// supplied ResourceData.", "docstring_tokens": ["flattenClusterDrsVmConfigInfo", "saves", "a", "ClusterDrsVmConfigInfo", "into", "the", "supplied", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_drs_vm_override.go#L254-L259", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_drs_vm_override.go", "func_name": "resourceVSphereDRSVMOverrideParseID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereDRSVMOverrideParseID parses an ID for the\n// vsphere_drs_vm_override and outputs its parts.", "docstring_tokens": ["resourceVSphereDRSVMOverrideParseID", "parses", "an", "ID", "for", "the", "vsphere_drs_vm_override", "and", "outputs", "its", "parts", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_drs_vm_override.go#L281-L287", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_drs_vm_override.go", "func_name": "resourceVSphereDRSVMOverrideFindEntry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereDRSVMOverrideFindEntry attempts to locate an existing DRS VM\n// config in a cluster's configuration. It's used by the resource's read\n// functionality and tests. nil is returned if the entry cannot be found.", "docstring_tokens": ["resourceVSphereDRSVMOverrideFindEntry", "attempts", "to", "locate", "an", "existing", "DRS", "VM", "config", "in", "a", "cluster", "s", "configuration", ".", "It", "s", "used", "by", "the", "resource", "s", "read", "functionality", "and", "tests", ".", "nil", "is", "returned", "if", "the", "entry", "cannot", "be", "found", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_drs_vm_override.go#L292-L310", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster_vm_anti_affinity_rule.go", "func_name": "resourceVSphereComputeClusterVMAntiAffinityRuleFlattenID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereComputeClusterVMAntiAffinityRuleFlattenID makes an ID for the\n// vsphere_compute_cluster_vm_anti_affinity_rule resource.", "docstring_tokens": ["resourceVSphereComputeClusterVMAntiAffinityRuleFlattenID", "makes", "an", "ID", "for", "the", "vsphere_compute_cluster_vm_anti_affinity_rule", "resource", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster_vm_anti_affinity_rule.go#L298-L301", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/datastore_structure.go", "func_name": "schemaDatastoreSummary", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// schemaDatastoreSummary returns schema items for resources that\n// need to work with a DatastoreSummary.", "docstring_tokens": ["schemaDatastoreSummary", "returns", "schema", "items", "for", "resources", "that", "need", "to", "work", "with", "a", "DatastoreSummary", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/datastore_structure.go#L17-L60", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/datastore_structure.go", "func_name": "flattenDatastoreSummary", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenDatastoreSummary reads various fields from a DatastoreSummary into\n// the passed in ResourceData.", "docstring_tokens": ["flattenDatastoreSummary", "reads", "various", "fields", "from", "a", "DatastoreSummary", "into", "the", "passed", "in", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/datastore_structure.go#L64-L79", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/datastore_structure.go", "func_name": "resourceVSphereDatastoreApplyFolderOrStorageClusterPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereDatastoreApplyFolderOrStorageClusterPath returns a path to a\n// folder or a datastore cluster, depending on what has been selected in the\n// resource.", "docstring_tokens": ["resourceVSphereDatastoreApplyFolderOrStorageClusterPath", "returns", "a", "path", "to", "a", "folder", "or", "a", "datastore", "cluster", "depending", "on", "what", "has", "been", "selected", "in", "the", "resource", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/datastore_structure.go#L84-L95", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/datastore_structure.go", "func_name": "resourceVSphereDatastoreReadFolderOrStorageClusterPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereDatastoreReadFolderOrStorageClusterPath checks the inventory\n// path of the supplied datastore and checks to see if it is a normal folder or\n// if it's a datastore cluster, and saves the attributes accordingly.", "docstring_tokens": ["resourceVSphereDatastoreReadFolderOrStorageClusterPath", "checks", "the", "inventory", "path", "of", "the", "supplied", "datastore", "and", "checks", "to", "see", "if", "it", "is", "a", "normal", "folder", "or", "if", "it", "s", "a", "datastore", "cluster", "and", "saves", "the", "attributes", "accordingly", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/datastore_structure.go#L109-L121", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_cdrom_subresource.go", "func_name": "CdromSubresourceSchema", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CdromSubresourceSchema represents the schema for the cdrom sub-resource.", "docstring_tokens": ["CdromSubresourceSchema", "represents", "the", "schema", "for", "the", "cdrom", "sub", "-", "resource", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_cdrom_subresource.go#L21-L43", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_cdrom_subresource.go", "func_name": "NewCdromSubresource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCdromSubresource returns a subresource populated with all of the necessary\n// fields.", "docstring_tokens": ["NewCdromSubresource", "returns", "a", "subresource", "populated", "with", "all", "of", "the", "necessary", "fields", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_cdrom_subresource.go#L53-L66", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_cdrom_subresource.go", "func_name": "CdromDiffOperation", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CdromDiffOperation performs operations relevant to managing the\n// diff on cdrom sub-resources", "docstring_tokens": ["CdromDiffOperation", "performs", "operations", "relevant", "to", "managing", "the", "diff", "on", "cdrom", "sub", "-", "resources"], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_cdrom_subresource.go#L404-L416", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_cdrom_subresource.go", "func_name": "ValidateDiff", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidateDiff performs any complex validation of an individual\n// cdrom sub-resource that can't be done in schema alone.", "docstring_tokens": ["ValidateDiff", "performs", "any", "complex", "validation", "of", "an", "individual", "cdrom", "sub", "-", "resource", "that", "can", "t", "be", "done", "in", "schema", "alone", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_cdrom_subresource.go#L420-L433", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_cdrom_subresource.go", "func_name": "Create", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create creates a vsphere_virtual_machine cdrom sub-resource.", "docstring_tokens": ["Create", "creates", "a", "vsphere_virtual_machine", "cdrom", "sub", "-", "resource", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_cdrom_subresource.go#L436-L464", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_cdrom_subresource.go", "func_name": "Read", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read reads a vsphere_virtual_machine cdrom sub-resource.", "docstring_tokens": ["Read", "reads", "a", "vsphere_virtual_machine", "cdrom", "sub", "-", "resource", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_cdrom_subresource.go#L467-L514", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_cdrom_subresource.go", "func_name": "Update", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Update updates a vsphere_virtual_machine cdrom sub-resource.", "docstring_tokens": ["Update", "updates", "a", "vsphere_virtual_machine", "cdrom", "sub", "-", "resource", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_cdrom_subresource.go#L517-L537", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_cdrom_subresource.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete deletes a vsphere_virtual_machine cdrom sub-resource.", "docstring_tokens": ["Delete", "deletes", "a", "vsphere_virtual_machine", "cdrom", "sub", "-", "resource", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_cdrom_subresource.go#L540-L557", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_cdrom_subresource.go", "func_name": "mapCdrom", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// mapCdrom takes a CdromSubresource and attaches either a client device or a datastore ISO.", "docstring_tokens": ["mapCdrom", "takes", "a", "CdromSubresource", "and", "attaches", "either", "a", "client", "device", "or", "a", "datastore", "ISO", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_cdrom_subresource.go#L560-L591", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_cdrom_subresource.go", "func_name": "VerifyVAppTransport", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// VerifyVAppTransport validates that all the required components are included in\n// the virtual machine configuration if vApp properties are set.", "docstring_tokens": ["VerifyVAppTransport", "validates", "that", "all", "the", "required", "components", "are", "included", "in", "the", "virtual", "machine", "configuration", "if", "vApp", "properties", "are", "set", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_cdrom_subresource.go#L595-L615", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_cdrom_subresource.go", "func_name": "verifyVAppCdromIso", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// verifyVAppCdromIso takes VirtualCdrom and determines if it is needed for\n// vApp ISO transport. It does this by first checking if it has an ISO inserted\n// that matches the vApp ISO naming pattern. If it does, then the next step is\n// to see if vApp ISO transport is supported on the VM. If both of those\n// conditions are met, then the CDROM is considered in use for vApp transport.", "docstring_tokens": ["verifyVAppCdromIso", "takes", "VirtualCdrom", "and", "determines", "if", "it", "is", "needed", "for", "vApp", "ISO", "transport", ".", "It", "does", "this", "by", "first", "checking", "if", "it", "has", "an", "ISO", "inserted", "that", "matches", "the", "vApp", "ISO", "naming", "pattern", ".", "If", "it", "does", "then", "the", "next", "step", "is", "to", "see", "if", "vApp", "ISO", "transport", "is", "supported", "on", "the", "VM", ".", "If", "both", "of", "those", "conditions", "are", "met", "then", "the", "CDROM", "is", "considered", "in", "use", "for", "vApp", "transport", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_cdrom_subresource.go#L622-L658", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/virtualdisk/virtual_disk_helper.go", "func_name": "DatastorePathFromString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DatastorePathFromString is a convenience method that returns a\n// fully-populated DatastorePath from a string containing a datastore path. A\n// flag indicating a successful parsing is also returned.", "docstring_tokens": ["DatastorePathFromString", "is", "a", "convenience", "method", "that", "returns", "a", "fully", "-", "populated", "DatastorePath", "from", "a", "string", "containing", "a", "datastore", "path", ".", "A", "flag", "indicating", "a", "successful", "parsing", "is", "also", "returned", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/virtualdisk/virtual_disk_helper.go#L19-L24", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/virtualdisk/virtual_disk_helper.go", "func_name": "IsVmdkDatastorePath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsVmdkDatastorePath ensures that a string can be parsed as a datastore path\n// pointing to a virtual disk. This only checks the validity of the path, not\n// whether or not the file exists.", "docstring_tokens": ["IsVmdkDatastorePath", "ensures", "that", "a", "string", "can", "be", "parsed", "as", "a", "datastore", "path", "pointing", "to", "a", "virtual", "disk", ".", "This", "only", "checks", "the", "validity", "of", "the", "path", "not", "whether", "or", "not", "the", "file", "exists", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/virtualdisk/virtual_disk_helper.go#L29-L38", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/virtualdisk/virtual_disk_helper.go", "func_name": "QueryDiskType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// QueryDiskType queries the disk type of the specified virtual disk.", "docstring_tokens": ["QueryDiskType", "queries", "the", "disk", "type", "of", "the", "specified", "virtual", "disk", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/virtualdisk/virtual_disk_helper.go#L95-L106", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/virtualdisk/virtual_disk_helper.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete deletes the virtual disk at the specified datastore path.", "docstring_tokens": ["Delete", "deletes", "the", "virtual", "disk", "at", "the", "specified", "datastore", "path", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/virtualdisk/virtual_disk_helper.go#L126-L145", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/viapi/vim_helper.go", "func_name": "soapFault", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// soapFault extracts the SOAP fault from an error fault, if it exists. Check\n// the returned boolean value to see if you have a SoapFault.", "docstring_tokens": ["soapFault", "extracts", "the", "SOAP", "fault", "from", "an", "error", "fault", "if", "it", "exists", ".", "Check", "the", "returned", "boolean", "value", "to", "see", "if", "you", "have", "a", "SoapFault", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/viapi/vim_helper.go#L25-L30", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/viapi/vim_helper.go", "func_name": "vimSoapFault", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// vimSoapFault extracts the VIM fault. Check the returned boolean value to see\n// if you have a fault, which will need to be further asserted into the error\n// that you are looking for.", "docstring_tokens": ["vimSoapFault", "extracts", "the", "VIM", "fault", ".", "Check", "the", "returned", "boolean", "value", "to", "see", "if", "you", "have", "a", "fault", "which", "will", "need", "to", "be", "further", "asserted", "into", "the", "error", "that", "you", "are", "looking", "for", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/viapi/vim_helper.go#L35-L40", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/viapi/vim_helper.go", "func_name": "taskFault", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// taskFault extracts the task fault from a supplied task.Error. Check the\n// returned boolean value to see if the fault was extracted correctly, after\n// which you will need to do further checking.", "docstring_tokens": ["taskFault", "extracts", "the", "task", "fault", "from", "a", "supplied", "task", ".", "Error", ".", "Check", "the", "returned", "boolean", "value", "to", "see", "if", "the", "fault", "was", "extracted", "correctly", "after", "which", "you", "will", "need", "to", "do", "further", "checking", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/viapi/vim_helper.go#L45-L50", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/viapi/vim_helper.go", "func_name": "IsManagedObjectNotFoundError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsManagedObjectNotFoundError checks an error to see if it's of the\n// ManagedObjectNotFound type.", "docstring_tokens": ["IsManagedObjectNotFoundError", "checks", "an", "error", "to", "see", "if", "it", "s", "of", "the", "ManagedObjectNotFound", "type", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/viapi/vim_helper.go#L54-L61", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/viapi/vim_helper.go", "func_name": "isNotFoundError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isNotFoundError checks an error to see if it's of the NotFoundError type.\n//\n// Note this is different from the other \"not found\" faults and is an error\n// type in its own right. Use IsAnyNotFoundError to check for any \"not found\"\n// type.", "docstring_tokens": ["isNotFoundError", "checks", "an", "error", "to", "see", "if", "it", "s", "of", "the", "NotFoundError", "type", ".", "Note", "this", "is", "different", "from", "the", "other", "not", "found", "faults", "and", "is", "an", "error", "type", "in", "its", "own", "right", ".", "Use", "IsAnyNotFoundError", "to", "check", "for", "any", "not", "found", "type", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/viapi/vim_helper.go#L68-L75", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/viapi/vim_helper.go", "func_name": "IsAnyNotFoundError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsAnyNotFoundError checks to see if the fault is of any not found error type\n// that we track.", "docstring_tokens": ["IsAnyNotFoundError", "checks", "to", "see", "if", "the", "fault", "is", "of", "any", "not", "found", "error", "type", "that", "we", "track", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/viapi/vim_helper.go#L79-L87", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/viapi/vim_helper.go", "func_name": "IsResourceInUseError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsResourceInUseError checks an error to see if it's of the\n// ResourceInUse type.", "docstring_tokens": ["IsResourceInUseError", "checks", "an", "error", "to", "see", "if", "it", "s", "of", "the", "ResourceInUse", "type", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/viapi/vim_helper.go#L91-L98", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/viapi/vim_helper.go", "func_name": "isConcurrentAccessError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isConcurrentAccessError checks an error to see if it's of the\n// ConcurrentAccess type.", "docstring_tokens": ["isConcurrentAccessError", "checks", "an", "error", "to", "see", "if", "it", "s", "of", "the", "ConcurrentAccess", "type", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/viapi/vim_helper.go#L102-L118", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/viapi/vim_helper.go", "func_name": "RenameObject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RenameObject renames a MO and tracks the task to make sure it completes.", "docstring_tokens": ["RenameObject", "renames", "a", "MO", "and", "tracks", "the", "task", "to", "make", "sure", "it", "completes", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/viapi/vim_helper.go#L121-L138", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/viapi/vim_helper.go", "func_name": "VimValidateVirtualCenter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// VimValidateVirtualCenter ensures that the client is connected to vCenter.\n//\n// This is a lower-level method that does not take the wrapped client from the\n// higher-level govmomi object, and can be used to facilitate validation when\n// it's not available.", "docstring_tokens": ["VimValidateVirtualCenter", "ensures", "that", "the", "client", "is", "connected", "to", "vCenter", ".", "This", "is", "a", "lower", "-", "level", "method", "that", "does", "not", "take", "the", "wrapped", "client", "from", "the", "higher", "-", "level", "govmomi", "object", "and", "can", "be", "used", "to", "facilitate", "validation", "when", "it", "s", "not", "available", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/viapi/vim_helper.go#L150-L155", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/viapi/vim_helper.go", "func_name": "parseVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseVersion creates a new VSphereVersion from a parsed version string and\n// build number.", "docstring_tokens": ["parseVersion", "creates", "a", "new", "VSphereVersion", "from", "a", "parsed", "version", "string", "and", "build", "number", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/viapi/vim_helper.go#L182-L209", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/viapi/vim_helper.go", "func_name": "parseVersionFromAboutInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseVersionFromAboutInfo returns a populated VSphereVersion from an\n// AboutInfo data object.\n//\n// This function panics if it cannot parse the version correctly, as given our\n// source of truth is a valid AboutInfo object, such an error is indicative of\n// a major issue with our version parsing logic.", "docstring_tokens": ["parseVersionFromAboutInfo", "returns", "a", "populated", "VSphereVersion", "from", "an", "AboutInfo", "data", "object", ".", "This", "function", "panics", "if", "it", "cannot", "parse", "the", "version", "correctly", "as", "given", "our", "source", "of", "truth", "is", "a", "valid", "AboutInfo", "object", "such", "an", "error", "is", "indicative", "of", "a", "major", "issue", "with", "our", "version", "parsing", "logic", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/viapi/vim_helper.go#L217-L223", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/viapi/vim_helper.go", "func_name": "ParseVersionFromClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseVersionFromClient returns a populated VSphereVersion from a client\n// connection.", "docstring_tokens": ["ParseVersionFromClient", "returns", "a", "populated", "VSphereVersion", "from", "a", "client", "connection", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/viapi/vim_helper.go#L227-L229", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/viapi/vim_helper.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String implements stringer for VSphereVersion.", "docstring_tokens": ["String", "implements", "stringer", "for", "VSphereVersion", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/viapi/vim_helper.go#L232-L234", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/viapi/vim_helper.go", "func_name": "ProductEqual", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProductEqual returns true if this version's product name is the same as the\n// supplied version's name.", "docstring_tokens": ["ProductEqual", "returns", "true", "if", "this", "version", "s", "product", "name", "is", "the", "same", "as", "the", "supplied", "version", "s", "name", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/viapi/vim_helper.go#L238-L240", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/viapi/vim_helper.go", "func_name": "Older", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Older returns true if this version's product is the same, and composite of\n// the version and build numbers, are older than the supplied version's\n// information.", "docstring_tokens": ["Older", "returns", "true", "if", "this", "version", "s", "product", "is", "the", "same", "and", "composite", "of", "the", "version", "and", "build", "numbers", "are", "older", "than", "the", "supplied", "version", "s", "information", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/viapi/vim_helper.go#L290-L308", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/viapi/vim_helper.go", "func_name": "Equal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Equal returns true if the version is equal to the supplied version.", "docstring_tokens": ["Equal", "returns", "true", "if", "the", "version", "is", "equal", "to", "the", "supplied", "version", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/viapi/vim_helper.go#L311-L313", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster_vm_group.go", "func_name": "expandClusterVMGroup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandClusterVMGroup reads certain ResourceData keys and returns a\n// ClusterVmGroup.", "docstring_tokens": ["expandClusterVMGroup", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "ClusterVmGroup", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster_vm_group.go#L233-L255", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster_vm_group.go", "func_name": "flattenClusterVMGroup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenClusterVmGroup saves a ClusterVmGroup into the supplied ResourceData.", "docstring_tokens": ["flattenClusterVmGroup", "saves", "a", "ClusterVmGroup", "into", "the", "supplied", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster_vm_group.go#L258-L275", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster_vm_group.go", "func_name": "resourceVSphereComputeClusterVMGroupFindEntry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereComputeClusterVMGroupFindEntry attempts to locate an existing\n// VM group config in a cluster's configuration. It's used by the resource's\n// read functionality and tests. nil is returned if the entry cannot be found.", "docstring_tokens": ["resourceVSphereComputeClusterVMGroupFindEntry", "attempts", "to", "locate", "an", "existing", "VM", "group", "config", "in", "a", "cluster", "s", "configuration", ".", "It", "s", "used", "by", "the", "resource", "s", "read", "functionality", "and", "tests", ".", "nil", "is", "returned", "if", "the", "entry", "cannot", "be", "found", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster_vm_group.go#L303-L324", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster_vm_group.go", "func_name": "resourceVSphereComputeClusterVMGroupFetchObjects", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereComputeClusterVMGroupFetchObjects fetches the \"objects\" for a\n// cluster VM group. This is currently just the cluster object as the name of\n// the group is a static value and a pass-through - this is to keep its\n// workflow consistent with other cluster-dependent resources that derive from\n// ArrayUpdateSpec that have managed object as keys, such as VM and host\n// overrides.", "docstring_tokens": ["resourceVSphereComputeClusterVMGroupFetchObjects", "fetches", "the", "objects", "for", "a", "cluster", "VM", "group", ".", "This", "is", "currently", "just", "the", "cluster", "object", "as", "the", "name", "of", "the", "group", "is", "a", "static", "value", "and", "a", "pass", "-", "through", "-", "this", "is", "to", "keep", "its", "workflow", "consistent", "with", "other", "cluster", "-", "dependent", "resources", "that", "derive", "from", "ArrayUpdateSpec", "that", "have", "managed", "object", "as", "keys", "such", "as", "VM", "and", "host", "overrides", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster_vm_group.go#L372-L388", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_resource_pool.go", "func_name": "resourceVSphereResourcePoolApplyTags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereResourcePoolApplyTags processes the tags step for both create\n// and update for vsphere_resource_pool.", "docstring_tokens": ["resourceVSphereResourcePoolApplyTags", "processes", "the", "tags", "step", "for", "both", "create", "and", "update", "for", "vsphere_resource_pool", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_resource_pool.go#L340-L354", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_resource_pool.go", "func_name": "resourceVSphereResourcePoolReadTags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereResourcePoolReadTags reads the tags for\n// vsphere_resource_pool.", "docstring_tokens": ["resourceVSphereResourcePoolReadTags", "reads", "the", "tags", "for", "vsphere_resource_pool", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_resource_pool.go#L358-L368", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster_vm_affinity_rule.go", "func_name": "expandClusterAffinityRuleSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandClusterAffinityRuleSpec reads certain ResourceData keys and returns a\n// ClusterAffinityRuleSpec.", "docstring_tokens": ["expandClusterAffinityRuleSpec", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "ClusterAffinityRuleSpec", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster_vm_affinity_rule.go#L241-L265", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster_vm_affinity_rule.go", "func_name": "flattenClusterAffinityRuleSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenClusterAffinityRuleSpec saves a ClusterAffinityRuleSpec into the supplied ResourceData.", "docstring_tokens": ["flattenClusterAffinityRuleSpec", "saves", "a", "ClusterAffinityRuleSpec", "into", "the", "supplied", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster_vm_affinity_rule.go#L268-L288", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster_vm_affinity_rule.go", "func_name": "resourceVSphereComputeClusterVMAffinityRuleFindEntry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereComputeClusterVMAffinityRuleFindEntry attempts to locate an\n// existing VM affinity rule in a cluster's configuration by key. It's used by the\n// resource's read functionality and tests. nil is returned if the entry cannot\n// be found.", "docstring_tokens": ["resourceVSphereComputeClusterVMAffinityRuleFindEntry", "attempts", "to", "locate", "an", "existing", "VM", "affinity", "rule", "in", "a", "cluster", "s", "configuration", "by", "key", ".", "It", "s", "used", "by", "the", "resource", "s", "read", "functionality", "and", "tests", ".", "nil", "is", "returned", "if", "the", "entry", "cannot", "be", "found", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster_vm_affinity_rule.go#L323-L344", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/customattribute/custom_attributes_helper.go", "func_name": "ConfigSchema", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ConfigSchema returns the schema for custom attribute configuration\n// for each resource that needs it.\n//\n// The key should be set to the ConfigKey constant and should be a\n// map of custom attribute ids to values.", "docstring_tokens": ["ConfigSchema", "returns", "the", "schema", "for", "custom", "attribute", "configuration", "for", "each", "resource", "that", "needs", "it", ".", "The", "key", "should", "be", "set", "to", "the", "ConfigKey", "constant", "and", "should", "be", "a", "map", "of", "custom", "attribute", "ids", "to", "values", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/customattribute/custom_attributes_helper.go#L36-L42", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/vmworkflow/virtual_machine_clone_subresource.go", "func_name": "VirtualMachineCloneSchema", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// VirtualMachineCloneSchema represents the schema for the VM clone sub-resource.\n//\n// This is a workflow for vsphere_virtual_machine that facilitates the creation\n// of a virtual machine through cloning from an existing template.\n// Customization is nested here, even though it exists in its own workflow.", "docstring_tokens": ["VirtualMachineCloneSchema", "represents", "the", "schema", "for", "the", "VM", "clone", "sub", "-", "resource", ".", "This", "is", "a", "workflow", "for", "vsphere_virtual_machine", "that", "facilitates", "the", "creation", "of", "a", "virtual", "machine", "through", "cloning", "from", "an", "existing", "template", ".", "Customization", "is", "nested", "here", "even", "though", "it", "exists", "in", "its", "own", "workflow", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/vmworkflow/virtual_machine_clone_subresource.go#L25-L52", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/vmworkflow/virtual_machine_clone_subresource.go", "func_name": "ValidateVirtualMachineClone", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidateVirtualMachineClone does pre-creation validation of a virtual\n// machine's configuration to make sure it's suitable for use in cloning.\n// This includes, but is not limited to checking to make sure that the disks in\n// the new VM configuration line up with the configuration in the existing\n// template, and checking to make sure that the VM has a single snapshot we can\n// use in the even that linked clones are enabled.", "docstring_tokens": ["ValidateVirtualMachineClone", "does", "pre", "-", "creation", "validation", "of", "a", "virtual", "machine", "s", "configuration", "to", "make", "sure", "it", "s", "suitable", "for", "use", "in", "cloning", ".", "This", "includes", "but", "is", "not", "limited", "to", "checking", "to", "make", "sure", "that", "the", "disks", "in", "the", "new", "VM", "configuration", "line", "up", "with", "the", "configuration", "in", "the", "existing", "template", "and", "checking", "to", "make", "sure", "that", "the", "VM", "has", "a", "single", "snapshot", "we", "can", "use", "in", "the", "even", "that", "linked", "clones", "are", "enabled", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/vmworkflow/virtual_machine_clone_subresource.go#L60-L126", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/vmworkflow/virtual_machine_clone_subresource.go", "func_name": "validateCloneSnapshots", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// validateCloneSnapshots checks a VM to make sure it has a single snapshot\n// with no children, to make sure there is no ambiguity when selecting a\n// snapshot for linked clones.", "docstring_tokens": ["validateCloneSnapshots", "checks", "a", "VM", "to", "make", "sure", "it", "has", "a", "single", "snapshot", "with", "no", "children", "to", "make", "sure", "there", "is", "no", "ambiguity", "when", "selecting", "a", "snapshot", "for", "linked", "clones", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/vmworkflow/virtual_machine_clone_subresource.go#L131-L148", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/network/network_helper.go", "func_name": "ReferenceProperties", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReferenceProperties is a convenience method that wraps fetching the Network\n// MO from a NetworkReference.\n//\n// Note that regardless of the network type, this only fetches the Network MO\n// and not any of the extended properties of that network.", "docstring_tokens": ["ReferenceProperties", "is", "a", "convenience", "method", "that", "wraps", "fetching", "the", "Network", "MO", "from", "a", "NetworkReference", ".", "Note", "that", "regardless", "of", "the", "network", "type", "this", "only", "fetches", "the", "Network", "MO", "and", "not", "any", "of", "the", "extended", "properties", "of", "that", "network", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/network/network_helper.go#L86-L95", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/hostsystem/host_system_helper.go", "func_name": "SystemOrDefault", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SystemOrDefault returns a HostSystem from a specific host name and\n// datacenter. If the user is connecting over ESXi, the default host system is\n// used.", "docstring_tokens": ["SystemOrDefault", "returns", "a", "HostSystem", "from", "a", "specific", "host", "name", "and", "datacenter", ".", "If", "the", "user", "is", "connecting", "over", "ESXi", "the", "default", "host", "system", "is", "used", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/hostsystem/host_system_helper.go#L21-L38", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/hostsystem/host_system_helper.go", "func_name": "Properties", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Properties is a convenience method that wraps fetching the HostSystem MO\n// from its higher-level object.", "docstring_tokens": ["Properties", "is", "a", "convenience", "method", "that", "wraps", "fetching", "the", "HostSystem", "MO", "from", "its", "higher", "-", "level", "object", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/hostsystem/host_system_helper.go#L62-L70", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/hostsystem/host_system_helper.go", "func_name": "ResourcePool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ResourcePool is a convenience method that wraps fetching the host system's\n// root resource pool", "docstring_tokens": ["ResourcePool", "is", "a", "convenience", "method", "that", "wraps", "fetching", "the", "host", "system", "s", "root", "resource", "pool"], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/hostsystem/host_system_helper.go#L74-L78", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/hostsystem/host_system_helper.go", "func_name": "hostSystemNameFromID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// hostSystemNameFromID returns the name of a host via its its managed object\n// reference ID.", "docstring_tokens": ["hostSystemNameFromID", "returns", "the", "name", "of", "a", "host", "via", "its", "its", "managed", "object", "reference", "ID", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/hostsystem/host_system_helper.go#L82-L88", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/hostsystem/host_system_helper.go", "func_name": "NameOrID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NameOrID is a convenience method mainly for helping displaying friendly\n// errors where space is important - it displays either the host name or the ID\n// if there was an error fetching it.", "docstring_tokens": ["NameOrID", "is", "a", "convenience", "method", "mainly", "for", "helping", "displaying", "friendly", "errors", "where", "space", "is", "important", "-", "it", "displays", "either", "the", "host", "name", "or", "the", "ID", "if", "there", "was", "an", "error", "fetching", "it", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/hostsystem/host_system_helper.go#L93-L99", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/hostsystem/host_system_helper.go", "func_name": "EnterMaintenanceMode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EnterMaintenanceMode puts a host into maintenance mode. If evacuate is set\n// to true, all powered off VMs will be removed from the host, or the task will\n// block until this is the case, depending on whether or not DRS is on or off\n// for the host's cluster. This parameter is ignored on direct ESXi.", "docstring_tokens": ["EnterMaintenanceMode", "puts", "a", "host", "into", "maintenance", "mode", ".", "If", "evacuate", "is", "set", "to", "true", "all", "powered", "off", "VMs", "will", "be", "removed", "from", "the", "host", "or", "the", "task", "will", "block", "until", "this", "is", "the", "case", "depending", "on", "whether", "or", "not", "DRS", "is", "on", "or", "off", "for", "the", "host", "s", "cluster", ".", "This", "parameter", "is", "ignored", "on", "direct", "ESXi", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/hostsystem/host_system_helper.go#L105-L120", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/hostsystem/host_system_helper.go", "func_name": "ExitMaintenanceMode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ExitMaintenanceMode takes a host out of maintenance mode.", "docstring_tokens": ["ExitMaintenanceMode", "takes", "a", "host", "out", "of", "maintenance", "mode", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/hostsystem/host_system_helper.go#L123-L138", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_switch_helper.go", "func_name": "dvsFromUUID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// dvsFromUUID gets a DVS object from its UUID.", "docstring_tokens": ["dvsFromUUID", "gets", "a", "DVS", "object", "from", "its", "UUID", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_switch_helper.go#L25-L37", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_switch_helper.go", "func_name": "dvsFromPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// dvsFromPath gets a DVS object from its path.", "docstring_tokens": ["dvsFromPath", "gets", "a", "DVS", "object", "from", "its", "path", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_switch_helper.go#L61-L70", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_switch_helper.go", "func_name": "dvsProperties", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// dvsProperties is a convenience method that wraps fetching the DVS MO from\n// its higher-level object.", "docstring_tokens": ["dvsProperties", "is", "a", "convenience", "method", "that", "wraps", "fetching", "the", "DVS", "MO", "from", "its", "higher", "-", "level", "object", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_switch_helper.go#L74-L82", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_switch_helper.go", "func_name": "upgradeDVS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// upgradeDVS upgrades a DVS to a specific version. Downgrades are not\n// supported and will result in an error. This should be checked before running\n// this function.", "docstring_tokens": ["upgradeDVS", "upgrades", "a", "DVS", "to", "a", "specific", "version", ".", "Downgrades", "are", "not", "supported", "and", "will", "result", "in", "an", "error", ".", "This", "should", "be", "checked", "before", "running", "this", "function", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_switch_helper.go#L87-L110", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/distributed_virtual_switch_helper.go", "func_name": "enableDVSNetworkResourceManagement", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// enableDVSNetworkResourceManagement exposes the\n// EnableNetworkResourceManagement method of the DistributedVirtualSwitch MO.\n// This local implementation may go away if this is exposed in the higher-level\n// object upstream.", "docstring_tokens": ["enableDVSNetworkResourceManagement", "exposes", "the", "EnableNetworkResourceManagement", "method", "of", "the", "DistributedVirtualSwitch", "MO", ".", "This", "local", "implementation", "may", "go", "away", "if", "this", "is", "exposed", "in", "the", "higher", "-", "level", "object", "upstream", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/distributed_virtual_switch_helper.go#L132-L146", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_datastore_cluster_vm_anti_affinity_rule.go", "func_name": "resourceVSphereDatastoreClusterVMAntiAffinityRuleFlattenID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereDatastoreClusterVMAntiAffinityRuleFlattenID makes an ID for the\n// vsphere_datastore_cluster_vm_anti_affinity_rule resource.", "docstring_tokens": ["resourceVSphereDatastoreClusterVMAntiAffinityRuleFlattenID", "makes", "an", "ID", "for", "the", "vsphere_datastore_cluster_vm_anti_affinity_rule", "resource", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_datastore_cluster_vm_anti_affinity_rule.go#L260-L263", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_datastore_cluster_vm_anti_affinity_rule.go", "func_name": "resourceVSphereDatastoreClusterVMAntiAffinityRuleFindEntry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereDatastoreClusterVMAntiAffinityRuleFindEntry attempts to\n// locate an existing VM anti-affinity rule in a datastore cluster's\n// configuration by key. It's used by the resource's read functionality and\n// tests. nil is returned if the entry cannot be found.", "docstring_tokens": ["resourceVSphereDatastoreClusterVMAntiAffinityRuleFindEntry", "attempts", "to", "locate", "an", "existing", "VM", "anti", "-", "affinity", "rule", "in", "a", "datastore", "cluster", "s", "configuration", "by", "key", ".", "It", "s", "used", "by", "the", "resource", "s", "read", "functionality", "and", "tests", ".", "nil", "is", "returned", "if", "the", "entry", "cannot", "be", "found", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_datastore_cluster_vm_anti_affinity_rule.go#L285-L306", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_datastore_cluster_vm_anti_affinity_rule.go", "func_name": "resourceVSphereDatastoreClusterVMAntiAffinityRuleFindEntryByName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereDatastoreClusterVMAntiAffinityRuleFindEntryByName attempts to\n// locate an existing VM anti-affinity rule in a datastore cluster's\n// configuration by name. It differs from the standard\n// resourceVSphereDatastoreClusterVMAntiAffinityRuleFindEntry in that we don't\n// allow missing entries, as it's designed to be used in places where we don't\n// want to allow for missing entries, such as during creation and import.", "docstring_tokens": ["resourceVSphereDatastoreClusterVMAntiAffinityRuleFindEntryByName", "attempts", "to", "locate", "an", "existing", "VM", "anti", "-", "affinity", "rule", "in", "a", "datastore", "cluster", "s", "configuration", "by", "name", ".", "It", "differs", "from", "the", "standard", "resourceVSphereDatastoreClusterVMAntiAffinityRuleFindEntry", "in", "that", "we", "don", "t", "allow", "missing", "entries", "as", "it", "s", "designed", "to", "be", "used", "in", "places", "where", "we", "don", "t", "want", "to", "allow", "for", "missing", "entries", "such", "as", "during", "creation", "and", "import", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_datastore_cluster_vm_anti_affinity_rule.go#L314-L334", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_datastore_cluster_vm_anti_affinity_rule.go", "func_name": "resourceVSphereDatastoreClusterVMAntiAffinityRuleFetchObjects", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereDatastoreClusterVMAntiAffinityRuleFetchObjects fetches the\n// \"objects\" for a cluster rule. This is currently just the cluster object as\n// the rule key a static value and a pass-through - this is to keep its\n// workflow consistent with other cluster-dependent resources that derive from\n// ArrayUpdateSpec that have managed object as keys, such as VM and host\n// overrides.", "docstring_tokens": ["resourceVSphereDatastoreClusterVMAntiAffinityRuleFetchObjects", "fetches", "the", "objects", "for", "a", "cluster", "rule", ".", "This", "is", "currently", "just", "the", "cluster", "object", "as", "the", "rule", "key", "a", "static", "value", "and", "a", "pass", "-", "through", "-", "this", "is", "to", "keep", "its", "workflow", "consistent", "with", "other", "cluster", "-", "dependent", "resources", "that", "derive", "from", "ArrayUpdateSpec", "that", "have", "managed", "object", "as", "keys", "such", "as", "VM", "and", "host", "overrides", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_datastore_cluster_vm_anti_affinity_rule.go#L384-L400", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_device_subresource.go", "func_name": "controllerTypeToClass", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// controllerTypeToClass converts a controller type to a specific short-form\n// controller class, namely for use with working with IDs.", "docstring_tokens": ["controllerTypeToClass", "converts", "a", "controller", "type", "to", "a", "specific", "short", "-", "form", "controller", "class", "namely", "for", "use", "with", "working", "with", "IDs", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_device_subresource.go#L130-L146", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_device_subresource.go", "func_name": "Addr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Addr returns the resource address for this subresource.", "docstring_tokens": ["Addr", "returns", "the", "resource", "address", "for", "this", "subresource", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_device_subresource.go#L229-L231", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_device_subresource.go", "func_name": "HasChange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasChange checks to see if there has been a change in the resource data\n// since the last update.\n//\n// Note that this operation may only be useful during update operations,\n// depending on subresource-specific workflow.", "docstring_tokens": ["HasChange", "checks", "to", "see", "if", "there", "has", "been", "a", "change", "in", "the", "resource", "data", "since", "the", "last", "update", ".", "Note", "that", "this", "operation", "may", "only", "be", "useful", "during", "update", "operations", "depending", "on", "subresource", "-", "specific", "workflow", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_device_subresource.go#L250-L253", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_device_subresource.go", "func_name": "GetChange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetChange gets the old and new values for the value specified by key.", "docstring_tokens": ["GetChange", "gets", "the", "old", "and", "new", "values", "for", "the", "value", "specified", "by", "key", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_device_subresource.go#L256-L264", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_device_subresource.go", "func_name": "GetWithRestart", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetWithRestart checks to see if a field has been modified, returns the new\n// value, and sets restart if it has changed.", "docstring_tokens": ["GetWithRestart", "checks", "to", "see", "if", "a", "field", "has", "been", "modified", "returns", "the", "new", "value", "and", "sets", "restart", "if", "it", "has", "changed", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_device_subresource.go#L268-L273", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_device_subresource.go", "func_name": "GetWithVeto", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetWithVeto returns the value specified by key, but returns an error if it\n// has changed. The intention here is to block changes to the resource in a\n// fashion that would otherwise result in forcing a new resource.", "docstring_tokens": ["GetWithVeto", "returns", "the", "value", "specified", "by", "key", "but", "returns", "an", "error", "if", "it", "has", "changed", ".", "The", "intention", "here", "is", "to", "block", "changes", "to", "the", "resource", "in", "a", "fashion", "that", "would", "otherwise", "result", "in", "forcing", "a", "new", "resource", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_device_subresource.go#L278-L284", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_device_subresource.go", "func_name": "SetRestart", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetRestart sets reboot_required in the global ResourceData. The key is only\n// required for logging.", "docstring_tokens": ["SetRestart", "sets", "reboot_required", "in", "the", "global", "ResourceData", ".", "The", "key", "is", "only", "required", "for", "logging", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_device_subresource.go#L288-L299", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_device_subresource.go", "func_name": "Hash", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Hash calculates a set hash for the current data. If you want a hash for\n// error reporting a device address, it's probably a good idea to run this at\n// the beginning of a run as any set calls will change the value this\n// ultimately calculates.", "docstring_tokens": ["Hash", "calculates", "a", "set", "hash", "for", "the", "current", "data", ".", "If", "you", "want", "a", "hash", "for", "error", "reporting", "a", "device", "address", "it", "s", "probably", "a", "good", "idea", "to", "run", "this", "at", "the", "beginning", "of", "a", "run", "as", "any", "set", "calls", "will", "change", "the", "value", "this", "ultimately", "calculates", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_device_subresource.go#L310-L313", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_device_subresource.go", "func_name": "computeDevAddr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// computeDevAddr handles the logic for SaveDevIDs and allows it to be used\n// outside of a subresource.", "docstring_tokens": ["computeDevAddr", "handles", "the", "logic", "for", "SaveDevIDs", "and", "allows", "it", "to", "be", "used", "outside", "of", "a", "subresource", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_device_subresource.go#L317-L330", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_device_subresource.go", "func_name": "splitDevAddr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// splitDevAddr splits an device addres into its inparticular parts and asserts\n// that we have all the correct data.", "docstring_tokens": ["splitDevAddr", "splits", "an", "device", "addres", "into", "its", "inparticular", "parts", "and", "asserts", "that", "we", "have", "all", "the", "correct", "data", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_device_subresource.go#L355-L379", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_device_subresource.go", "func_name": "findVirtualDeviceInListControllerSelectFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// findVirtualDeviceInListControllerSelectFunc returns a function that can be\n// used with VirtualDeviceList.Select to locate a controller device based on\n// the criteria that we have laid out.", "docstring_tokens": ["findVirtualDeviceInListControllerSelectFunc", "returns", "a", "function", "that", "can", "be", "used", "with", "VirtualDeviceList", ".", "Select", "to", "locate", "a", "controller", "device", "based", "on", "the", "criteria", "that", "we", "have", "laid", "out", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_device_subresource.go#L384-L410", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_device_subresource.go", "func_name": "findVirtualDeviceInListDeviceSelectFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// findVirtualDeviceInListDeviceSelectFunc returns a function that can be used\n// with VirtualDeviceList.Select to locate a virtual device based on its\n// controller device key, and the unit number on the device.", "docstring_tokens": ["findVirtualDeviceInListDeviceSelectFunc", "returns", "a", "function", "that", "can", "be", "used", "with", "VirtualDeviceList", ".", "Select", "to", "locate", "a", "virtual", "device", "based", "on", "its", "controller", "device", "key", "and", "the", "unit", "number", "on", "the", "device", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_device_subresource.go#L415-L423", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_device_subresource.go", "func_name": "findControllerForDevice", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// findControllerForDevice locates a controller via its virtual device.", "docstring_tokens": ["findControllerForDevice", "locates", "a", "controller", "via", "its", "virtual", "device", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_device_subresource.go#L426-L435", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_device_subresource.go", "func_name": "FindVirtualDeviceByAddr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FindVirtualDeviceByAddr locates the subresource's virtual device in the\n// supplied VirtualDeviceList by its device address.", "docstring_tokens": ["FindVirtualDeviceByAddr", "locates", "the", "subresource", "s", "virtual", "device", "in", "the", "supplied", "VirtualDeviceList", "by", "its", "device", "address", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_device_subresource.go#L439-L464", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_device_subresource.go", "func_name": "FindVirtualDevice", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FindVirtualDevice will attempt to find an address by its device key if it is\n// > 0, otherwise it will attempt to locate it by its device address.", "docstring_tokens": ["FindVirtualDevice", "will", "attempt", "to", "find", "an", "address", "by", "its", "device", "key", "if", "it", "is", ">", "0", "otherwise", "it", "will", "attempt", "to", "locate", "it", "by", "its", "device", "address", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_device_subresource.go#L468-L478", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_device_subresource.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String prints out the device sub-resource's information including the ID at\n// time of instantiation, the short name of the disk, and the current device\n// key and address.", "docstring_tokens": ["String", "prints", "out", "the", "device", "sub", "-", "resource", "s", "information", "including", "the", "ID", "at", "time", "of", "instantiation", "the", "short", "name", "of", "the", "disk", "and", "the", "current", "device", "key", "and", "address", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_device_subresource.go#L483-L489", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_device_subresource.go", "func_name": "swapSCSIDevice", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// swapSCSIDevice swaps out the supplied controller for a new one of the\n// supplied controller type. Any connected devices are re-connected at the same\n// device units on the new device. A list of changes is returned.", "docstring_tokens": ["swapSCSIDevice", "swaps", "out", "the", "supplied", "controller", "for", "a", "new", "one", "of", "the", "supplied", "controller", "type", ".", "Any", "connected", "devices", "are", "re", "-", "connected", "at", "the", "same", "device", "units", "on", "the", "new", "device", ".", "A", "list", "of", "changes", "is", "returned", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_device_subresource.go#L494-L534", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_device_subresource.go", "func_name": "NormalizeSCSIBus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NormalizeSCSIBus checks the SCSI controllers on the virtual machine and\n// either creates them if they don't exist, or migrates them to the specified\n// controller type. Devices are migrated to the new controller appropriately. A\n// spec slice is returned with the changes.\n//\n// The first number of slots specified by count are normalized by this\n// function. Any others are left unchanged.", "docstring_tokens": ["NormalizeSCSIBus", "checks", "the", "SCSI", "controllers", "on", "the", "virtual", "machine", "and", "either", "creates", "them", "if", "they", "don", "t", "exist", "or", "migrates", "them", "to", "the", "specified", "controller", "type", ".", "Devices", "are", "migrated", "to", "the", "new", "controller", "appropriately", ".", "A", "spec", "slice", "is", "returned", "with", "the", "changes", ".", "The", "first", "number", "of", "slots", "specified", "by", "count", "are", "normalized", "by", "this", "function", ".", "Any", "others", "are", "left", "unchanged", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_device_subresource.go#L543-L588", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_device_subresource.go", "func_name": "setSCSIBusSharing", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setSCSIBusSharing takes a BaseVirtualSCSIController, sets the sharing mode,\n// and applies that change to the VirtualDeviceList.", "docstring_tokens": ["setSCSIBusSharing", "takes", "a", "BaseVirtualSCSIController", "sets", "the", "sharing", "mode", "and", "applies", "that", "change", "to", "the", "VirtualDeviceList", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_device_subresource.go#L592-L604", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_device_subresource.go", "func_name": "createSCSIController", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// createSCSIController creates a new SCSI controller of the specified type and\n// sharing mode.", "docstring_tokens": ["createSCSIController", "creates", "a", "new", "SCSI", "controller", "of", "the", "specified", "type", "and", "sharing", "mode", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_device_subresource.go#L608-L617", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_device_subresource.go", "func_name": "ReadSCSIBusType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadSCSIBusType checks the SCSI bus state and returns a device type\n// depending on if all controllers are one specific kind or not. Only the first\n// number of controllers specified by count are checked.", "docstring_tokens": ["ReadSCSIBusType", "checks", "the", "SCSI", "bus", "state", "and", "returns", "a", "device", "type", "depending", "on", "if", "all", "controllers", "are", "one", "specific", "kind", "or", "not", ".", "Only", "the", "first", "number", "of", "controllers", "specified", "by", "count", "are", "checked", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_device_subresource.go#L622-L640", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_device_subresource.go", "func_name": "ReadSCSIBusSharing", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadSCSIBusSharing checks the SCSI bus sharing and returns a sharing type\n// depending on if all controllers are one specific kind or not. Only the first\n// number of controllers specified by count are checked.", "docstring_tokens": ["ReadSCSIBusSharing", "checks", "the", "SCSI", "bus", "sharing", "and", "returns", "a", "sharing", "type", "depending", "on", "if", "all", "controllers", "are", "one", "specific", "kind", "or", "not", ".", "Only", "the", "first", "number", "of", "controllers", "specified", "by", "count", "are", "checked", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_device_subresource.go#L645-L663", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_device_subresource.go", "func_name": "pickSCSIController", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getSCSIController picks a SCSI controller at the specific bus number supplied.", "docstring_tokens": ["getSCSIController", "picks", "a", "SCSI", "controller", "at", "the", "specific", "bus", "number", "supplied", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_device_subresource.go#L666-L682", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_device_subresource.go", "func_name": "ControllerForCreateUpdate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ControllerForCreateUpdate wraps the controller selection logic to make it\n// easier to use in create or update operations. If the controller type is a\n// SCSI device, the bus number is searched as well.", "docstring_tokens": ["ControllerForCreateUpdate", "wraps", "the", "controller", "selection", "logic", "to", "make", "it", "easier", "to", "use", "in", "create", "or", "update", "operations", ".", "If", "the", "controller", "type", "is", "a", "SCSI", "device", "the", "bus", "number", "is", "searched", "as", "well", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_device_subresource.go#L687-L718", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_device_subresource.go", "func_name": "applyDeviceChange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// applyDeviceChange applies a pending types.BaseVirtualDeviceConfigSpec to a\n// working set to either add, remove, or update devices so that the working\n// VirtualDeviceList is as up to date as possible.", "docstring_tokens": ["applyDeviceChange", "applies", "a", "pending", "types", ".", "BaseVirtualDeviceConfigSpec", "to", "a", "working", "set", "to", "either", "add", "remove", "or", "update", "devices", "so", "that", "the", "working", "VirtualDeviceList", "is", "as", "up", "to", "date", "as", "possible", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_device_subresource.go#L723-L757", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_device_subresource.go", "func_name": "DeviceListString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeviceListString pretty-prints each device in a virtual device list, used\n// for logging purposes and what not.", "docstring_tokens": ["DeviceListString", "pretty", "-", "prints", "each", "device", "in", "a", "virtual", "device", "list", "used", "for", "logging", "purposes", "and", "what", "not", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_device_subresource.go#L761-L771", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_device_subresource.go", "func_name": "DeviceChangeString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeviceChangeString pretty-prints a slice of VirtualDeviceConfigSpec.", "docstring_tokens": ["DeviceChangeString", "pretty", "-", "prints", "a", "slice", "of", "VirtualDeviceConfigSpec", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_device_subresource.go#L774-L781", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_device_subresource.go", "func_name": "subresourceListString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// subresourceListString takes a list of sub-resources and pretty-prints the\n// key and device address.", "docstring_tokens": ["subresourceListString", "takes", "a", "list", "of", "sub", "-", "resources", "and", "pretty", "-", "prints", "the", "key", "and", "device", "address", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_device_subresource.go#L785-L800", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_device_subresource.go", "func_name": "scsiControllerListString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// scsiControllerListString pretty-prints a slice of SCSI controllers.", "docstring_tokens": ["scsiControllerListString", "pretty", "-", "prints", "a", "slice", "of", "SCSI", "controllers", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_device_subresource.go#L803-L813", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_device_subresource.go", "func_name": "AppendDeviceChangeSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AppendDeviceChangeSpec appends unique copies of the supplied device change\n// operations and appends them to spec. The resulting list is returned.\n//\n// The object of this function is to provide deep copies of each virtual device\n// to the spec as they looked like when the append operation was called,\n// helping facilitate multiple update operations to the same device in a single\n// reconfigure call.", "docstring_tokens": ["AppendDeviceChangeSpec", "appends", "unique", "copies", "of", "the", "supplied", "device", "change", "operations", "and", "appends", "them", "to", "spec", ".", "The", "resulting", "list", "is", "returned", ".", "The", "object", "of", "this", "function", "is", "to", "provide", "deep", "copies", "of", "each", "virtual", "device", "to", "the", "spec", "as", "they", "looked", "like", "when", "the", "append", "operation", "was", "called", "helping", "facilitate", "multiple", "update", "operations", "to", "the", "same", "device", "in", "a", "single", "reconfigure", "call", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_device_subresource.go#L822-L831", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster_vm_dependency_rule.go", "func_name": "expandClusterDependencyRuleInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandClusterDependencyRuleInfo reads certain ResourceData keys and returns a\n// ClusterDependencyRuleInfo.", "docstring_tokens": ["expandClusterDependencyRuleInfo", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "ClusterDependencyRuleInfo", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster_vm_dependency_rule.go#L244-L256", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster_vm_dependency_rule.go", "func_name": "flattenClusterDependencyRuleInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenClusterDependencyRuleInfo saves a ClusterDependencyRuleInfo into the supplied ResourceData.", "docstring_tokens": ["flattenClusterDependencyRuleInfo", "saves", "a", "ClusterDependencyRuleInfo", "into", "the", "supplied", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster_vm_dependency_rule.go#L259-L267", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster_vm_dependency_rule.go", "func_name": "resourceVSphereComputeClusterVMDependencyRuleParseID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereComputeClusterVMDependencyRuleParseID parses an ID for the\n// vsphere_compute_cluster_vm_dependency_rule and outputs its parts.", "docstring_tokens": ["resourceVSphereComputeClusterVMDependencyRuleParseID", "parses", "an", "ID", "for", "the", "vsphere_compute_cluster_vm_dependency_rule", "and", "outputs", "its", "parts", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster_vm_dependency_rule.go#L284-L296", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster_vm_dependency_rule.go", "func_name": "resourceVSphereComputeClusterVMDependencyRuleFetchObjects", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereComputeClusterVMDependencyRuleFetchObjects fetches the \"objects\"\n// for a cluster rule. This is currently just the cluster object as the rule\n// key a static value and a pass-through - this is to keep its workflow\n// consistent with other cluster-dependent resources that derive from\n// ArrayUpdateSpec that have managed object as keys, such as VM and host\n// overrides.", "docstring_tokens": ["resourceVSphereComputeClusterVMDependencyRuleFetchObjects", "fetches", "the", "objects", "for", "a", "cluster", "rule", ".", "This", "is", "currently", "just", "the", "cluster", "object", "as", "the", "rule", "key", "a", "static", "value", "and", "a", "pass", "-", "through", "-", "this", "is", "to", "keep", "its", "workflow", "consistent", "with", "other", "cluster", "-", "dependent", "resources", "that", "derive", "from", "ArrayUpdateSpec", "that", "have", "managed", "object", "as", "keys", "such", "as", "VM", "and", "host", "overrides", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster_vm_dependency_rule.go#L399-L415", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_datastore_cluster.go", "func_name": "resourceVSphereDatastoreClusterApplyCreate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereDatastoreClusterApplyCreate processes the creation part of\n// resourceVSphereDatastoreClusterCreate.", "docstring_tokens": ["resourceVSphereDatastoreClusterApplyCreate", "processes", "the", "creation", "part", "of", "resourceVSphereDatastoreClusterCreate", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_datastore_cluster.go#L310-L341", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_datastore_cluster.go", "func_name": "resourceVSphereDatastoreClusterApplyTags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereDatastoreClusterApplyTags processes the tags step for both\n// create and update for vsphere_datastore_cluster.", "docstring_tokens": ["resourceVSphereDatastoreClusterApplyTags", "processes", "the", "tags", "step", "for", "both", "create", "and", "update", "for", "vsphere_datastore_cluster", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_datastore_cluster.go#L345-L359", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_datastore_cluster.go", "func_name": "resourceVSphereDatastoreClusterReadTags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereDatastoreClusterReadTags reads the tags for\n// vsphere_datastore_cluster.", "docstring_tokens": ["resourceVSphereDatastoreClusterReadTags", "reads", "the", "tags", "for", "vsphere_datastore_cluster", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_datastore_cluster.go#L363-L373", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_datastore_cluster.go", "func_name": "resourceVSphereDatastoreClusterApplyCustomAttributes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereDatastoreClusterApplyCustomAttributes processes the custom\n// attributes step for both create and update for vsphere_datastore_cluster.", "docstring_tokens": ["resourceVSphereDatastoreClusterApplyCustomAttributes", "processes", "the", "custom", "attributes", "step", "for", "both", "create", "and", "update", "for", "vsphere_datastore_cluster", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_datastore_cluster.go#L377-L392", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_datastore_cluster.go", "func_name": "resourceVSphereDatastoreClusterReadCustomAttributes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereDatastoreClusterReadCustomAttributes reads the custom\n// attributes for vsphere_datastore_cluster.", "docstring_tokens": ["resourceVSphereDatastoreClusterReadCustomAttributes", "reads", "the", "custom", "attributes", "for", "vsphere_datastore_cluster", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_datastore_cluster.go#L396-L411", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_datastore_cluster.go", "func_name": "resourceVSphereDatastoreClusterApplySDRSConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereDatastoreClusterApplySDRSConfig applies the SDRS\n// configuration to a datastore cluster.", "docstring_tokens": ["resourceVSphereDatastoreClusterApplySDRSConfig", "applies", "the", "SDRS", "configuration", "to", "a", "datastore", "cluster", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_datastore_cluster.go#L415-L438", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_datastore_cluster.go", "func_name": "resourceVSphereDatastoreClusterHasSDRSConfigChange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereDatastoreClusterHasSDRSConfigChange checks all resource keys\n// associated with storage DRS to see if there has been a change in the\n// configuration of those keys. This helper is designed to detect no-ops in a\n// SDRS configuration to see if we really need to send a configure API call to\n// vSphere.", "docstring_tokens": ["resourceVSphereDatastoreClusterHasSDRSConfigChange", "checks", "all", "resource", "keys", "associated", "with", "storage", "DRS", "to", "see", "if", "there", "has", "been", "a", "change", "in", "the", "configuration", "of", "those", "keys", ".", "This", "helper", "is", "designed", "to", "detect", "no", "-", "ops", "in", "a", "SDRS", "configuration", "to", "see", "if", "we", "really", "need", "to", "send", "a", "configure", "API", "call", "to", "vSphere", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_datastore_cluster.go#L445-L456", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_datastore_cluster.go", "func_name": "resourceVSphereDatastoreClusterGetPod", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereDatastoreClusterGetPod gets the StoragePod from the ID\n// in the supplied ResourceData.", "docstring_tokens": ["resourceVSphereDatastoreClusterGetPod", "gets", "the", "StoragePod", "from", "the", "ID", "in", "the", "supplied", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_datastore_cluster.go#L480-L488", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_datastore_cluster.go", "func_name": "resourceVSphereDatastoreClusterGetPodFromPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereDatastoreClusterGetPodFromPath gets the StoragePod from a\n// supplied path. If no datacenter is supplied, the path must be a full path.", "docstring_tokens": ["resourceVSphereDatastoreClusterGetPodFromPath", "gets", "the", "StoragePod", "from", "a", "supplied", "path", ".", "If", "no", "datacenter", "is", "supplied", "the", "path", "must", "be", "a", "full", "path", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_datastore_cluster.go#L492-L510", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_datastore_cluster.go", "func_name": "resourceVSphereDatastoreClusterSaveNameAndPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereDatastoreClusterSaveNameAndPath saves the name and path of a\n// StoragePod into the supplied ResourceData.", "docstring_tokens": ["resourceVSphereDatastoreClusterSaveNameAndPath", "saves", "the", "name", "and", "path", "of", "a", "StoragePod", "into", "the", "supplied", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_datastore_cluster.go#L514-L533", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_datastore_cluster.go", "func_name": "resourceVSphereDatastoreClusterApplyNameChange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereDatastoreClusterApplyNameChange applies any changes to a\n// StoragePod's name.", "docstring_tokens": ["resourceVSphereDatastoreClusterApplyNameChange", "applies", "any", "changes", "to", "a", "StoragePod", "s", "name", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_datastore_cluster.go#L537-L573", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_datastore_cluster.go", "func_name": "resourceVSphereDatastoreClusterApplyFolderChange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereDatastoreClusterApplyFolderChange applies any changes to a\n// StoragePod's folder location.", "docstring_tokens": ["resourceVSphereDatastoreClusterApplyFolderChange", "applies", "any", "changes", "to", "a", "StoragePod", "s", "folder", "location", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_datastore_cluster.go#L577-L615", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_datastore_cluster.go", "func_name": "resourceVSphereDatastoreClusterValidateEmptyCluster", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereDatastoreClusterValidateEmptyCluster validates that the\n// datastore cluster is empty. This is used to ensure a safe deletion of the\n// cluster - we do not allow deletion of clusters that still have datastores in\n// them.", "docstring_tokens": ["resourceVSphereDatastoreClusterValidateEmptyCluster", "validates", "that", "the", "datastore", "cluster", "is", "empty", ".", "This", "is", "used", "to", "ensure", "a", "safe", "deletion", "of", "the", "cluster", "-", "we", "do", "not", "allow", "deletion", "of", "clusters", "that", "still", "have", "datastores", "in", "them", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_datastore_cluster.go#L621-L634", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_datastore_cluster.go", "func_name": "resourceVSphereDatastoreClusterApplyDelete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereDatastoreClusterApplyDelete process the removal of a\n// datastore cluster.", "docstring_tokens": ["resourceVSphereDatastoreClusterApplyDelete", "process", "the", "removal", "of", "a", "datastore", "cluster", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_datastore_cluster.go#L638-L645", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_datastore_cluster.go", "func_name": "resourceVSphereDatastoreClusterFlattenSDRSData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereDatastoreClusterFlattenSDRSData saves the DRS attributes from\n// a StoragePod into the supplied ResourceData.\n//\n// Note that other functions handle non-SDRS related items, such as path, name,\n// tags, and custom attributes.", "docstring_tokens": ["resourceVSphereDatastoreClusterFlattenSDRSData", "saves", "the", "DRS", "attributes", "from", "a", "StoragePod", "into", "the", "supplied", "ResourceData", ".", "Note", "that", "other", "functions", "handle", "non", "-", "SDRS", "related", "items", "such", "as", "path", "name", "tags", "and", "custom", "attributes", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_datastore_cluster.go#L652-L669", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_datastore_cluster.go", "func_name": "expandStorageDrsPodConfigSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandStorageDrsPodConfigSpec reads certain ResourceData keys and returns a\n// StorageDrsPodConfigSpec.", "docstring_tokens": ["expandStorageDrsPodConfigSpec", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "StorageDrsPodConfigSpec", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_datastore_cluster.go#L673-L690", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_datastore_cluster.go", "func_name": "flattenStorageDrsPodConfigInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenStorageDrsPodConfigInfo saves a StorageDrsPodConfigInfo into the\n// supplied ResourceData.", "docstring_tokens": ["flattenStorageDrsPodConfigInfo", "saves", "a", "StorageDrsPodConfigInfo", "into", "the", "supplied", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_datastore_cluster.go#L694-L727", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_datastore_cluster.go", "func_name": "expandStorageDrsAutomationConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandStorageDrsAutomationConfig reads certain ResourceData keys and returns\n// a StorageDrsAutomationConfig.", "docstring_tokens": ["expandStorageDrsAutomationConfig", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "StorageDrsAutomationConfig", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_datastore_cluster.go#L731-L740", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_datastore_cluster.go", "func_name": "flattenStorageDrsAutomationConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenStorageDrsAutomationConfig saves a StorageDrsAutomationConfig into\n// the supplied ResourceData.", "docstring_tokens": ["flattenStorageDrsAutomationConfig", "saves", "a", "StorageDrsAutomationConfig", "into", "the", "supplied", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_datastore_cluster.go#L744-L758", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_datastore_cluster.go", "func_name": "expandStorageDrsIoLoadBalanceConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandStorageDrsIoLoadBalanceConfig reads certain ResourceData keys and returns\n// a StorageDrsIoLoadBalanceConfig.", "docstring_tokens": ["expandStorageDrsIoLoadBalanceConfig", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "StorageDrsIoLoadBalanceConfig", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_datastore_cluster.go#L762-L775", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_datastore_cluster.go", "func_name": "flattenStorageDrsIoLoadBalanceConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenStorageDrsIoLoadBalanceConfig saves a StorageDrsIoLoadBalanceConfig\n// into the supplied ResourceData.", "docstring_tokens": ["flattenStorageDrsIoLoadBalanceConfig", "saves", "a", "StorageDrsIoLoadBalanceConfig", "into", "the", "supplied", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_datastore_cluster.go#L779-L804", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_datastore_cluster.go", "func_name": "expandStorageDrsSpaceLoadBalanceConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandStorageDrsSpaceLoadBalanceConfig reads certain ResourceData keys and returns\n// a StorageDrsSpaceLoadBalanceConfig.", "docstring_tokens": ["expandStorageDrsSpaceLoadBalanceConfig", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "StorageDrsSpaceLoadBalanceConfig", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_datastore_cluster.go#L808-L823", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_datastore_cluster.go", "func_name": "flattenStorageDrsSpaceLoadBalanceConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenStorageDrsSpaceLoadBalanceConfig saves a\n// StorageDrsSpaceLoadBalanceConfig into the supplied ResourceData.", "docstring_tokens": ["flattenStorageDrsSpaceLoadBalanceConfig", "saves", "a", "StorageDrsSpaceLoadBalanceConfig", "into", "the", "supplied", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_datastore_cluster.go#L827-L851", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_datastore_cluster.go", "func_name": "expandStorageDrsOptionSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandStorageDrsOptionSpec reads certain ResourceData keys and returns\n// a StorageDrsOptionSpec.", "docstring_tokens": ["expandStorageDrsOptionSpec", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "StorageDrsOptionSpec", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_datastore_cluster.go#L855-L868", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_datastore_cluster.go", "func_name": "flattenStorageDrsOptionSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenStorageDrsOptionSpec saves a StorageDrsOptionSpec into the supplied\n// ResourceData.", "docstring_tokens": ["flattenStorageDrsOptionSpec", "saves", "a", "StorageDrsOptionSpec", "into", "the", "supplied", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_datastore_cluster.go#L872-L879", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_folder_migrate.go", "func_name": "resourceVSphereFolderMigrateState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereFolderMigrateState is the master state migration function for\n// the vsphere_folder resource.", "docstring_tokens": ["resourceVSphereFolderMigrateState", "is", "the", "master", "state", "migration", "function", "for", "the", "vsphere_folder", "resource", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_folder_migrate.go#L12-L39", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_folder_migrate.go", "func_name": "resourceVSphereFolderMigrateStateV1", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereFolderMigrateStateV1 migrates the state of the vsphere_folder\n// from version 0 to version 1.", "docstring_tokens": ["resourceVSphereFolderMigrateStateV1", "migrates", "the", "state", "of", "the", "vsphere_folder", "from", "version", "0", "to", "version", "1", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_folder_migrate.go#L43-L78", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/datacenter_helper.go", "func_name": "getDatacenter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getDatacenter gets the higher-level datacenter object for the datacenter\n// name supplied by dc.\n//\n// The default datacenter is denoted by using an empty string. When working\n// with ESXi directly, the default datacenter is always selected.", "docstring_tokens": ["getDatacenter", "gets", "the", "higher", "-", "level", "datacenter", "object", "for", "the", "datacenter", "name", "supplied", "by", "dc", ".", "The", "default", "datacenter", "is", "denoted", "by", "using", "an", "empty", "string", ".", "When", "working", "with", "ESXi", "directly", "the", "default", "datacenter", "is", "always", "selected", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/datacenter_helper.go#L19-L32", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/datacenter_helper.go", "func_name": "datacenterFromID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// datacenterFromID locates a Datacenter by its managed object reference ID.", "docstring_tokens": ["datacenterFromID", "locates", "a", "Datacenter", "by", "its", "managed", "object", "reference", "ID", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/datacenter_helper.go#L35-L50", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go", "func_name": "NewDiskSubresource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDiskSubresource returns a subresource populated with all of the necessary\n// fields.", "docstring_tokens": ["NewDiskSubresource", "returns", "a", "subresource", "populated", "with", "all", "of", "the", "necessary", "fields", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go#L234-L247", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go", "func_name": "DiskApplyOperation", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DiskApplyOperation processes an apply operation for all disks in the\n// resource.\n//\n// The function takes the root resource's ResourceData, the provider\n// connection, and the device list as known to vSphere at the start of this\n// operation. All disk operations are carried out, with both the complete,\n// updated, VirtualDeviceList, and the complete list of changes returned as a\n// slice of BaseVirtualDeviceConfigSpec.", "docstring_tokens": ["DiskApplyOperation", "processes", "an", "apply", "operation", "for", "all", "disks", "in", "the", "resource", ".", "The", "function", "takes", "the", "root", "resource", "s", "ResourceData", "the", "provider", "connection", "and", "the", "device", "list", "as", "known", "to", "vSphere", "at", "the", "start", "of", "this", "operation", ".", "All", "disk", "operations", "are", "carried", "out", "with", "both", "the", "complete", "updated", "VirtualDeviceList", "and", "the", "complete", "list", "of", "changes", "returned", "as", "a", "slice", "of", "BaseVirtualDeviceConfigSpec", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go#L257-L297", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go", "func_name": "diskApplyOperationDelete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// diskApplyOperationDelete is an inner-loop helper for disk deletion\n// operations.", "docstring_tokens": ["diskApplyOperationDelete", "is", "an", "inner", "-", "loop", "helper", "for", "disk", "deletion", "operations", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go#L301-L335", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go", "func_name": "diskApplyOperationCreateUpdate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// diskApplyOperationCreateUpdate is an inner-loop helper for disk creation and\n// update operations.", "docstring_tokens": ["diskApplyOperationCreateUpdate", "is", "an", "inner", "-", "loop", "helper", "for", "disk", "creation", "and", "update", "operations", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go#L339-L403", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go", "func_name": "DiskMigrateRelocateOperation", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DiskMigrateRelocateOperation assembles the\n// VirtualMachineRelocateSpecDiskLocator slice for a virtual machine migration\n// operation, otherwise known as storage vMotion.", "docstring_tokens": ["DiskMigrateRelocateOperation", "assembles", "the", "VirtualMachineRelocateSpecDiskLocator", "slice", "for", "a", "virtual", "machine", "migration", "operation", "otherwise", "known", "as", "storage", "vMotion", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go#L801-L861", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go", "func_name": "DiskCloneRelocateOperation", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DiskCloneRelocateOperation assembles the\n// VirtualMachineRelocateSpecDiskLocator slice for a virtual machine clone\n// operation.\n//\n// This differs from a regular storage vMotion in that we have no existing\n// devices in the resource to work off of - the disks in the source virtual\n// machine is our source of truth. These disks are assigned to our disk\n// sub-resources in config and the relocate specs are generated off of the\n// backing data defined in config, taking on these filenames when cloned. After\n// the clone is complete, natural re-configuration happens to bring the disk\n// configurations fully in sync with what is defined.", "docstring_tokens": ["DiskCloneRelocateOperation", "assembles", "the", "VirtualMachineRelocateSpecDiskLocator", "slice", "for", "a", "virtual", "machine", "clone", "operation", ".", "This", "differs", "from", "a", "regular", "storage", "vMotion", "in", "that", "we", "have", "no", "existing", "devices", "in", "the", "resource", "to", "work", "off", "of", "-", "the", "disks", "in", "the", "source", "virtual", "machine", "is", "our", "source", "of", "truth", ".", "These", "disks", "are", "assigned", "to", "our", "disk", "sub", "-", "resources", "in", "config", "and", "the", "relocate", "specs", "are", "generated", "off", "of", "the", "backing", "data", "defined", "in", "config", "taking", "on", "these", "filenames", "when", "cloned", ".", "After", "the", "clone", "is", "complete", "natural", "re", "-", "configuration", "happens", "to", "bring", "the", "disk", "configurations", "fully", "in", "sync", "with", "what", "is", "defined", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go#L874-L926", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go", "func_name": "DiskImportOperation", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DiskImportOperation validates the disk configuration of the virtual\n// machine's VirtualDeviceList to ensure it will be imported properly, and also\n// saves device addresses into state for disks defined in config. Both the\n// imported device list is sorted by the device's unit number on the SCSI bus.", "docstring_tokens": ["DiskImportOperation", "validates", "the", "disk", "configuration", "of", "the", "virtual", "machine", "s", "VirtualDeviceList", "to", "ensure", "it", "will", "be", "imported", "properly", "and", "also", "saves", "device", "addresses", "into", "state", "for", "disks", "defined", "in", "config", ".", "Both", "the", "imported", "device", "list", "is", "sorted", "by", "the", "device", "s", "unit", "number", "on", "the", "SCSI", "bus", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go#L1038-L1108", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go", "func_name": "ReadDiskAttrsForDataSource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadDiskAttrsForDataSource returns select attributes from the list of disks\n// on a virtual machine. This is used in the VM data source to discover\n// specific options of all of the disks on the virtual machine sorted by the\n// order that they would be added in if a clone were to be done.", "docstring_tokens": ["ReadDiskAttrsForDataSource", "returns", "select", "attributes", "from", "the", "list", "of", "disks", "on", "a", "virtual", "machine", ".", "This", "is", "used", "in", "the", "VM", "data", "source", "to", "discover", "specific", "options", "of", "all", "of", "the", "disks", "on", "the", "virtual", "machine", "sorted", "by", "the", "order", "that", "they", "would", "be", "added", "in", "if", "a", "clone", "were", "to", "be", "done", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go#L1114-L1148", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go", "func_name": "Create", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create creates a vsphere_virtual_machine disk sub-resource.", "docstring_tokens": ["Create", "creates", "a", "vsphere_virtual_machine", "disk", "sub", "-", "resource", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go#L1151-L1189", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go", "func_name": "Read", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read reads a vsphere_virtual_machine disk sub-resource and commits the data\n// to the newData layer.", "docstring_tokens": ["Read", "reads", "a", "vsphere_virtual_machine", "disk", "sub", "-", "resource", "and", "commits", "the", "data", "to", "the", "newData", "layer", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go#L1193-L1258", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go", "func_name": "Update", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Update updates a vsphere_virtual_machine disk sub-resource.", "docstring_tokens": ["Update", "updates", "a", "vsphere_virtual_machine", "disk", "sub", "-", "resource", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go#L1261-L1303", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete deletes a vsphere_virtual_machine disk sub-resource.", "docstring_tokens": ["Delete", "deletes", "a", "vsphere_virtual_machine", "disk", "sub", "-", "resource", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go#L1306-L1326", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go", "func_name": "DiffExisting", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DiffExisting validates and normalizes the fields for an existing disk\n// sub-resource. It handles carrying over existing values, so this should not\n// be used on disks that have not been successfully matched up between current\n// and old diffs.", "docstring_tokens": ["DiffExisting", "validates", "and", "normalizes", "the", "fields", "for", "an", "existing", "disk", "sub", "-", "resource", ".", "It", "handles", "carrying", "over", "existing", "values", "so", "this", "should", "not", "be", "used", "on", "disks", "that", "have", "not", "been", "successfully", "matched", "up", "between", "current", "and", "old", "diffs", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go#L1332-L1425", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go", "func_name": "DiffGeneral", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DiffGeneral performs complex validation of an individual disk sub-resource\n// that can't be done in schema alone. Should be run on new and existing disks.", "docstring_tokens": ["DiffGeneral", "performs", "complex", "validation", "of", "an", "individual", "disk", "sub", "-", "resource", "that", "can", "t", "be", "done", "in", "schema", "alone", ".", "Should", "be", "run", "on", "new", "and", "existing", "disks", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go#L1429-L1477", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go", "func_name": "normalizeDiskDatastore", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// normalizeDiskDatastore normalizes the datastore_id field in a disk\n// sub-resource. If the VM has a datastore cluster defined, it checks to make\n// sure the datastore in the current state of the disk is a member of the\n// currently defined datastore cluster, and if it is not, it marks the disk as\n// computed so that it can be migrated back to the datastore cluster on the\n// next update.", "docstring_tokens": ["normalizeDiskDatastore", "normalizes", "the", "datastore_id", "field", "in", "a", "disk", "sub", "-", "resource", ".", "If", "the", "VM", "has", "a", "datastore", "cluster", "defined", "it", "checks", "to", "make", "sure", "the", "datastore", "in", "the", "current", "state", "of", "the", "disk", "is", "a", "member", "of", "the", "currently", "defined", "datastore", "cluster", "and", "if", "it", "is", "not", "it", "marks", "the", "disk", "as", "computed", "so", "that", "it", "can", "be", "migrated", "back", "to", "the", "datastore", "cluster", "on", "the", "next", "update", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go#L1485-L1526", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go", "func_name": "Relocate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Relocate produces a VirtualMachineRelocateSpecDiskLocator for this resource\n// and is used for both cloning and storage vMotion.", "docstring_tokens": ["Relocate", "produces", "a", "VirtualMachineRelocateSpecDiskLocator", "for", "this", "resource", "and", "is", "used", "for", "both", "cloning", "and", "storage", "vMotion", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go#L1568-L1611", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String prints out the disk sub-resource's information including the ID at\n// time of instantiation, the path of the disk, and the current device\n// key and address.", "docstring_tokens": ["String", "prints", "out", "the", "disk", "sub", "-", "resource", "s", "information", "including", "the", "ID", "at", "time", "of", "instantiation", "the", "path", "of", "the", "disk", "and", "the", "current", "device", "key", "and", "address", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go#L1616-L1622", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go", "func_name": "expandDiskSettings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandDiskSettings sets appropriate fields on an existing disk - this is\n// used during Create and Update to set attributes to those found in\n// configuration.", "docstring_tokens": ["expandDiskSettings", "sets", "appropriate", "fields", "on", "an", "existing", "disk", "-", "this", "is", "used", "during", "Create", "and", "Update", "to", "set", "attributes", "to", "those", "found", "in", "configuration", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go#L1627-L1673", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go", "func_name": "createDisk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// createDisk performs all of the logic for a base virtual disk creation.", "docstring_tokens": ["createDisk", "performs", "all", "of", "the", "logic", "for", "a", "base", "virtual", "disk", "creation", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go#L1676-L1691", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go", "func_name": "assignDisk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// assignDisk takes a unit number and assigns it correctly to a controller on\n// the SCSI bus. An error is returned if the assigned unit number is taken.", "docstring_tokens": ["assignDisk", "takes", "a", "unit", "number", "and", "assigns", "it", "correctly", "to", "a", "controller", "on", "the", "SCSI", "bus", ".", "An", "error", "is", "returned", "if", "the", "assigned", "unit", "number", "is", "taken", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go#L1723-L1768", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go", "func_name": "findControllerInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// findControllerInfo determines the normalized unit number for the disk device\n// based on the SCSI controller and unit number it's connected to. The\n// controller is also returned.", "docstring_tokens": ["findControllerInfo", "determines", "the", "normalized", "unit", "number", "for", "the", "disk", "device", "based", "on", "the", "SCSI", "controller", "and", "unit", "number", "it", "s", "connected", "to", ".", "The", "controller", "is", "also", "returned", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go#L1773-L1791", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go", "func_name": "diskRelocateListString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// diskRelocateListString pretty-prints a list of\n// VirtualMachineRelocateSpecDiskLocator.", "docstring_tokens": ["diskRelocateListString", "pretty", "-", "prints", "a", "list", "of", "VirtualMachineRelocateSpecDiskLocator", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go#L1795-L1801", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go", "func_name": "diskRelocateString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// diskRelocateString prints out information from a\n// VirtualMachineRelocateSpecDiskLocator in a friendly way.\n//\n// The format depends on whether or not a backing has been defined.", "docstring_tokens": ["diskRelocateString", "prints", "out", "information", "from", "a", "VirtualMachineRelocateSpecDiskLocator", "in", "a", "friendly", "way", ".", "The", "format", "depends", "on", "whether", "or", "not", "a", "backing", "has", "been", "defined", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go#L1807-L1816", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go", "func_name": "Less", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Less helps implement sort.Interface for virtualDeviceListSorter. A\n// BaseVirtualDevice is \"less\" than another device if its controller's bus\n// number and unit number combination are earlier in the order than the other.", "docstring_tokens": ["Less", "helps", "implement", "sort", ".", "Interface", "for", "virtualDeviceListSorter", ".", "A", "BaseVirtualDevice", "is", "less", "than", "another", "device", "if", "its", "controller", "s", "bus", "number", "and", "unit", "number", "combination", "are", "earlier", "in", "the", "order", "than", "the", "other", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go#L1832-L1849", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go", "func_name": "Swap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Swap helps implement sort.Interface for virtualDeviceListSorter.", "docstring_tokens": ["Swap", "helps", "implement", "sort", ".", "Interface", "for", "virtualDeviceListSorter", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go#L1852-L1854", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go", "func_name": "Less", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Less helps implement sort.Interface for virtualDiskSubresourceSorter.", "docstring_tokens": ["Less", "helps", "implement", "sort", ".", "Interface", "for", "virtualDiskSubresourceSorter", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go#L1865-L1869", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go", "func_name": "Swap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Swap helps implement sort.Interface for virtualDiskSubresourceSorter.", "docstring_tokens": ["Swap", "helps", "implement", "sort", ".", "Interface", "for", "virtualDiskSubresourceSorter", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go#L1872-L1874", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go", "func_name": "datastorePathHasBase", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// datastorePathHasBase is a helper to check if a datastore path's file matches\n// a supplied file name.", "docstring_tokens": ["datastorePathHasBase", "is", "a", "helper", "to", "check", "if", "a", "datastore", "path", "s", "file", "matches", "a", "supplied", "file", "name", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go#L1878-L1884", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go", "func_name": "findVirtualDisk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// findVirtualDisk locates a virtual disk by it UUID, or by its device address\n// if UUID is missing.\n//\n// The device address search is only used if fallback is true - this is so that\n// we can distinguish situations where it should be used, such as a read,\n// versus situations where it should never be used, such as an update or\n// delete.", "docstring_tokens": ["findVirtualDisk", "locates", "a", "virtual", "disk", "by", "it", "UUID", "or", "by", "its", "device", "address", "if", "UUID", "is", "missing", ".", "The", "device", "address", "search", "is", "only", "used", "if", "fallback", "is", "true", "-", "this", "is", "so", "that", "we", "can", "distinguish", "situations", "where", "it", "should", "be", "used", "such", "as", "a", "read", "versus", "situations", "where", "it", "should", "never", "be", "used", "such", "as", "an", "update", "or", "delete", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go#L1966-L1972", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go", "func_name": "diskCapacityInGiB", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// diskCapacityInGiB reports the supplied disk's capacity, by first checking\n// CapacityInBytes, and then falling back to CapacityInKB if that value is\n// unavailable. This helps correct some situations where the former value's\n// data gets cleared, which seems to happen on upgrades.", "docstring_tokens": ["diskCapacityInGiB", "reports", "the", "supplied", "disk", "s", "capacity", "by", "first", "checking", "CapacityInBytes", "and", "then", "falling", "back", "to", "CapacityInKB", "if", "that", "value", "is", "unavailable", ".", "This", "helps", "correct", "some", "situations", "where", "the", "former", "value", "s", "data", "gets", "cleared", "which", "seems", "to", "happen", "on", "upgrades", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go#L2017-L2026", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_network_system_helper.go", "func_name": "hostNetworkSystemFromHostSystem", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// hostNetworkSystemFromHostSystem locates a HostNetworkSystem from a specified\n// HostSystem.", "docstring_tokens": ["hostNetworkSystemFromHostSystem", "locates", "a", "HostNetworkSystem", "from", "a", "specified", "HostSystem", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_network_system_helper.go#L19-L23", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_network_system_helper.go", "func_name": "hostNetworkSystemFromHostSystemID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// hostNetworkSystemFromHostSystemID locates a HostNetworkSystem from a\n// specified HostSystem managed object ID.", "docstring_tokens": ["hostNetworkSystemFromHostSystemID", "locates", "a", "HostNetworkSystem", "from", "a", "specified", "HostSystem", "managed", "object", "ID", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_network_system_helper.go#L27-L33", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_network_system_helper.go", "func_name": "hostVSwitchFromName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// hostVSwitchFromName locates a virtual switch on the supplied\n// HostNetworkSystem by name.", "docstring_tokens": ["hostVSwitchFromName", "locates", "a", "virtual", "switch", "on", "the", "supplied", "HostNetworkSystem", "by", "name", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_network_system_helper.go#L37-L57", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_network_system_helper.go", "func_name": "hostPortGroupFromName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// hostPortGroupFromName locates a port group on the supplied HostNetworkSystem\n// by name.", "docstring_tokens": ["hostPortGroupFromName", "locates", "a", "port", "group", "on", "the", "supplied", "HostNetworkSystem", "by", "name", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_network_system_helper.go#L61-L77", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/host_network_system_helper.go", "func_name": "networkObjectFromHostSystem", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// networkObjectFromHostSystem locates the network object in vCenter for a\n// specific HostSystem and network name.\n//\n// It does this by searching for all networks in the folder hierarchy that\n// match the given network name for the HostSystem's managed object reference\n// ID. This match is returned - if nothing is found, an error is given.", "docstring_tokens": ["networkObjectFromHostSystem", "locates", "the", "network", "object", "in", "vCenter", "for", "a", "specific", "HostSystem", "and", "network", "name", ".", "It", "does", "this", "by", "searching", "for", "all", "networks", "in", "the", "folder", "hierarchy", "that", "match", "the", "given", "network", "name", "for", "the", "HostSystem", "s", "managed", "object", "reference", "ID", ".", "This", "match", "is", "returned", "-", "if", "nothing", "is", "found", "an", "error", "is", "given", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/host_network_system_helper.go#L85-L117", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_license.go", "func_name": "resourceVSphereLicenseUpdate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereLicenseUpdate check for change in labels of the key and updates them.", "docstring_tokens": ["resourceVSphereLicenseUpdate", "check", "for", "change", "in", "labels", "of", "the", "key", "and", "updates", "them", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_license.go#L138-L161", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_license.go", "func_name": "isKeyPresent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isKeyPresent iterates over the InfoList to check if the license is present or not.", "docstring_tokens": ["isKeyPresent", "iterates", "over", "the", "InfoList", "to", "check", "if", "the", "license", "is", "present", "or", "not", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_license.go#L211-L221", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_license.go", "func_name": "UpdateLabel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateLabel provides a wrapper around the UpdateLabel data objects", "docstring_tokens": ["UpdateLabel", "provides", "a", "wrapper", "around", "the", "UpdateLabel", "data", "objects"], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_license.go#L224-L234", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_license.go", "func_name": "DecodeError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DecodeError tries to find a specific error which occurs when an invalid key is passed\n// to the server", "docstring_tokens": ["DecodeError", "tries", "to", "find", "a", "specific", "error", "which", "occurs", "when", "an", "invalid", "key", "is", "passed", "to", "the", "server"], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_license.go#L238-L246", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_vapp_container.go", "func_name": "resourceVSphereVAppContainerApplyTags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereVAppContainerApplyTags processes the tags step for both create\n// and update for vsphere_vapp_container.", "docstring_tokens": ["resourceVSphereVAppContainerApplyTags", "processes", "the", "tags", "step", "for", "both", "create", "and", "update", "for", "vsphere_vapp_container", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_vapp_container.go#L343-L357", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_vapp_container.go", "func_name": "resourceVSphereVAppContainerReadTags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereVAppContainerReadTags reads the tags for\n// vsphere_vapp_container.", "docstring_tokens": ["resourceVSphereVAppContainerReadTags", "reads", "the", "tags", "for", "vsphere_vapp_container", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_vapp_container.go#L361-L371", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster_vm_host_rule.go", "func_name": "expandClusterVMHostRuleInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandClusterVMHostRuleInfo reads certain ResourceData keys and returns a\n// ClusterVmHostRuleInfo.", "docstring_tokens": ["expandClusterVMHostRuleInfo", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "ClusterVmHostRuleInfo", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster_vm_host_rule.go#L280-L293", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_compute_cluster_vm_host_rule.go", "func_name": "flattenClusterVMHostRuleInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenClusterVMHostRuleInfo saves a ClusterVmHostRuleInfo into the supplied ResourceData.", "docstring_tokens": ["flattenClusterVMHostRuleInfo", "saves", "a", "ClusterVmHostRuleInfo", "into", "the", "supplied", "ResourceData", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_compute_cluster_vm_host_rule.go#L296-L305", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_virtual_machine_migrate.go", "func_name": "resourceVSphereVirtualMachineMigrateState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resourceVSphereVirtualMachineMigrateState is the master state migration function for\n// the vsphere_virtual_machine resource.", "docstring_tokens": ["resourceVSphereVirtualMachineMigrateState", "is", "the", "master", "state", "migration", "function", "for", "the", "vsphere_virtual_machine", "resource", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_virtual_machine_migrate.go#L19-L52", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/resource_vsphere_virtual_machine_migrate.go", "func_name": "migrateVSphereVirtualMachineStateV3", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// migrateVSphereVirtualMachineStateV3 migrates the state of the\n// vsphere_virtual_machine from version 2 to version 3.", "docstring_tokens": ["migrateVSphereVirtualMachineStateV3", "migrates", "the", "state", "of", "the", "vsphere_virtual_machine", "from", "version", "2", "to", "version", "3", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/resource_vsphere_virtual_machine_migrate.go#L56-L120", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/envbrowse/environment_browser_helper.go", "func_name": "NewEnvironmentBrowser", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewEnvironmentBrowser initializes a new EnvironmentBrowser based off the\n// supplied managed object reference.", "docstring_tokens": ["NewEnvironmentBrowser", "initializes", "a", "new", "EnvironmentBrowser", "based", "off", "the", "supplied", "managed", "object", "reference", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/envbrowse/environment_browser_helper.go#L28-L32", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/envbrowse/environment_browser_helper.go", "func_name": "DefaultDevices", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DefaultDevices loads a satisfactory default device list for the optionally\n// supplied host and descriptor key. The result is returned as a higher-level\n// VirtualDeviceList object. This can be used as an initial VirtualDeviceList\n// when building a device list and VirtualDeviceConfigSpec list for new virtual\n// machines.\n//\n// Appropriate options for key can be loaded by running\n// QueryConfigOptionDescriptor, which will return a list of\n// VirtualMachineConfigOptionDescriptor which will contain the appropriate key\n// for the virtual machine version needed. If no key is supplied, the results\n// generally reflect the most recent VM hardware version.", "docstring_tokens": ["DefaultDevices", "loads", "a", "satisfactory", "default", "device", "list", "for", "the", "optionally", "supplied", "host", "and", "descriptor", "key", ".", "The", "result", "is", "returned", "as", "a", "higher", "-", "level", "VirtualDeviceList", "object", ".", "This", "can", "be", "used", "as", "an", "initial", "VirtualDeviceList", "when", "building", "a", "device", "list", "and", "VirtualDeviceConfigSpec", "list", "for", "new", "virtual", "machines", ".", "Appropriate", "options", "for", "key", "can", "be", "loaded", "by", "running", "QueryConfigOptionDescriptor", "which", "will", "return", "a", "list", "of", "VirtualMachineConfigOptionDescriptor", "which", "will", "contain", "the", "appropriate", "key", "for", "the", "virtual", "machine", "version", "needed", ".", "If", "no", "key", "is", "supplied", "the", "results", "generally", "reflect", "the", "most", "recent", "VM", "hardware", "version", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/envbrowse/environment_browser_helper.go#L45-L69", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/envbrowse/environment_browser_helper.go", "func_name": "OSFamily", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OSFamily fetches the operating system family for the supplied guest ID.", "docstring_tokens": ["OSFamily", "fetches", "the", "operating", "system", "family", "for", "the", "supplied", "guest", "ID", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/envbrowse/environment_browser_helper.go#L72-L98", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/envbrowse/environment_browser_helper.go", "func_name": "QueryConfigOptionDescriptor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// QueryConfigOptionDescriptor returns a list the list of ConfigOption keys\n// available on the environment that this browser targets. The keys can be used\n// as query options for DefaultDevices and other functions, facilitating the\n// specification of results specific to a certain VM version.", "docstring_tokens": ["QueryConfigOptionDescriptor", "returns", "a", "list", "the", "list", "of", "ConfigOption", "keys", "available", "on", "the", "environment", "that", "this", "browser", "targets", ".", "The", "keys", "can", "be", "used", "as", "query", "options", "for", "DefaultDevices", "and", "other", "functions", "facilitating", "the", "specification", "of", "results", "specific", "to", "a", "certain", "VM", "version", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/envbrowse/environment_browser_helper.go#L104-L113", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/folder/folder_helper.go", "func_name": "RootFromDatacenter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RootFromDatacenter returns the root path for the particle from the given\n// datacenter's inventory path.", "docstring_tokens": ["RootFromDatacenter", "returns", "the", "root", "path", "for", "the", "particle", "from", "the", "given", "datacenter", "s", "inventory", "path", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/folder/folder_helper.go#L57-L59", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/folder/folder_helper.go", "func_name": "PathFromDatacenter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PathFromDatacenter returns the combined result of RootFromDatacenter plus a\n// relative path for a given particle and datacenter object.", "docstring_tokens": ["PathFromDatacenter", "returns", "the", "combined", "result", "of", "RootFromDatacenter", "plus", "a", "relative", "path", "for", "a", "given", "particle", "and", "datacenter", "object", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/folder/folder_helper.go#L63-L65", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/folder/folder_helper.go", "func_name": "SplitDatacenter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SplitDatacenter is a convenience method that splits out the datacenter path\n// from the supplied path for the particle.", "docstring_tokens": ["SplitDatacenter", "is", "a", "convenience", "method", "that", "splits", "out", "the", "datacenter", "path", "from", "the", "supplied", "path", "for", "the", "particle", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/folder/folder_helper.go#L69-L75", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/folder/folder_helper.go", "func_name": "SplitRelativeFolder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SplitRelativeFolder is a convenience method that returns the parent folder\n// for the result of SplitRelative on the supplied path.\n//\n// This is generally useful to get the folder for a managed entity, versus getting a full relative path. If you want that, use SplitRelative instead.", "docstring_tokens": ["SplitRelativeFolder", "is", "a", "convenience", "method", "that", "returns", "the", "parent", "folder", "for", "the", "result", "of", "SplitRelative", "on", "the", "supplied", "path", ".", "This", "is", "generally", "useful", "to", "get", "the", "folder", "for", "a", "managed", "entity", "versus", "getting", "a", "full", "relative", "path", ".", "If", "you", "want", "that", "use", "SplitRelative", "instead", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/folder/folder_helper.go#L91-L97", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/folder/folder_helper.go", "func_name": "NewRootFromPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRootFromPath takes the datacenter path for a specific entity, and then\n// appends the new particle supplied.", "docstring_tokens": ["NewRootFromPath", "takes", "the", "datacenter", "path", "for", "a", "specific", "entity", "and", "then", "appends", "the", "new", "particle", "supplied", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/folder/folder_helper.go#L101-L107", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/folder/folder_helper.go", "func_name": "datacenterPathFromHostSystemID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// datacenterPathFromHostSystemID returns the datacenter section of a\n// HostSystem's inventory path.", "docstring_tokens": ["datacenterPathFromHostSystemID", "returns", "the", "datacenter", "section", "of", "a", "HostSystem", "s", "inventory", "path", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/folder/folder_helper.go#L144-L150", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/folder/folder_helper.go", "func_name": "datastoreRootPathFromHostSystemID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// datastoreRootPathFromHostSystemID returns the root datastore folder path\n// for a specific host system ID.", "docstring_tokens": ["datastoreRootPathFromHostSystemID", "returns", "the", "root", "datastore", "folder", "path", "for", "a", "specific", "host", "system", "ID", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/folder/folder_helper.go#L154-L160", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/folder/folder_helper.go", "func_name": "validateDatastoreFolder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// validateDatastoreFolder checks to make sure the folder is a datastore\n// folder, and returns it if it is, or an error if it isn't.", "docstring_tokens": ["validateDatastoreFolder", "checks", "to", "make", "sure", "the", "folder", "is", "a", "datastore", "folder", "and", "returns", "it", "if", "it", "is", "or", "an", "error", "if", "it", "isn", "t", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/folder/folder_helper.go#L266-L275", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/folder/folder_helper.go", "func_name": "validateHostFolder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// validateHostFolder checks to make sure the folder is a host\n// folder, and returns it if it is, or an error if it isn't.", "docstring_tokens": ["validateHostFolder", "checks", "to", "make", "sure", "the", "folder", "is", "a", "host", "folder", "and", "returns", "it", "if", "it", "is", "or", "an", "error", "if", "it", "isn", "t", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/folder/folder_helper.go#L279-L288", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/folder/folder_helper.go", "func_name": "validateVirtualMachineFolder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// validateVirtualMachineFolder checks to make sure the folder is a VM folder,\n// and returns it if it is, or an error if it isn't.", "docstring_tokens": ["validateVirtualMachineFolder", "checks", "to", "make", "sure", "the", "folder", "is", "a", "VM", "folder", "and", "returns", "it", "if", "it", "is", "or", "an", "error", "if", "it", "isn", "t", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/folder/folder_helper.go#L292-L302", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/folder/folder_helper.go", "func_name": "validateNetworkFolder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// validateNetworkFolder checks to make sure the folder is a network folder,\n// and returns it if it is, or an error if it isn't.", "docstring_tokens": ["validateNetworkFolder", "checks", "to", "make", "sure", "the", "folder", "is", "a", "network", "folder", "and", "returns", "it", "if", "it", "is", "or", "an", "error", "if", "it", "isn", "t", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/folder/folder_helper.go#L306-L315", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/folder/folder_helper.go", "func_name": "NormalizePath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NormalizePath is a SchemaStateFunc that normalizes a folder path.", "docstring_tokens": ["NormalizePath", "is", "a", "SchemaStateFunc", "that", "normalizes", "a", "folder", "path", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/folder/folder_helper.go#L324-L330", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/folder/folder_helper.go", "func_name": "MoveObjectTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MoveObjectTo moves a object by reference into a folder.", "docstring_tokens": ["MoveObjectTo", "moves", "a", "object", "by", "reference", "into", "a", "folder", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/folder/folder_helper.go#L333-L343", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/folder/folder_helper.go", "func_name": "Properties", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Properties is a convenience method that wraps fetching the\n// Folder MO from its higher-level object.", "docstring_tokens": ["Properties", "is", "a", "convenience", "method", "that", "wraps", "fetching", "the", "Folder", "MO", "from", "its", "higher", "-", "level", "object", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/folder/folder_helper.go#L391-L399", "partition": "valid"} +{"repo": "terraform-providers/terraform-provider-vsphere", "path": "vsphere/internal/helper/folder/folder_helper.go", "func_name": "FindType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FindType returns a proper VSphereFolderType for a folder object by checking its child type.", "docstring_tokens": ["FindType", "returns", "a", "proper", "VSphereFolderType", "for", "a", "folder", "object", "by", "checking", "its", "child", "type", "."], "sha": "779fbbe84373d31a3f44c694bf460850d8e7ee89", "url": "https://github.com/terraform-providers/terraform-provider-vsphere/blob/779fbbe84373d31a3f44c694bf460850d8e7ee89/vsphere/internal/helper/folder/folder_helper.go#L402-L437", "partition": "valid"} +{"repo": "hashicorp/go-discover", "path": "provider/os/os_discover.go", "func_name": "ToServerListQuery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToServerListQuery formats a ListOpts into a query string.", "docstring_tokens": ["ToServerListQuery", "formats", "a", "ListOpts", "into", "a", "query", "string", "."], "sha": "6ccdb67f9b84932afd6b42641d0dac9ee213eeb2", "url": "https://github.com/hashicorp/go-discover/blob/6ccdb67f9b84932afd6b42641d0dac9ee213eeb2/provider/os/os_discover.go#L198-L201", "partition": "valid"} +{"repo": "hashicorp/go-discover", "path": "provider/packet/packet_discover.go", "func_name": "Index", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Index returns the first index of the target string t, or -1 if no match is found.", "docstring_tokens": ["Index", "returns", "the", "first", "index", "of", "the", "target", "string", "t", "or", "-", "1", "if", "no", "match", "is", "found", "."], "sha": "6ccdb67f9b84932afd6b42641d0dac9ee213eeb2", "url": "https://github.com/hashicorp/go-discover/blob/6ccdb67f9b84932afd6b42641d0dac9ee213eeb2/provider/packet/packet_discover.go#L125-L132", "partition": "valid"} +{"repo": "hashicorp/go-discover", "path": "provider/packet/packet_discover.go", "func_name": "Any", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Any returns true if one of the strings in the slice satisfies the predicate f.", "docstring_tokens": ["Any", "returns", "true", "if", "one", "of", "the", "strings", "in", "the", "slice", "satisfies", "the", "predicate", "f", "."], "sha": "6ccdb67f9b84932afd6b42641d0dac9ee213eeb2", "url": "https://github.com/hashicorp/go-discover/blob/6ccdb67f9b84932afd6b42641d0dac9ee213eeb2/provider/packet/packet_discover.go#L140-L147", "partition": "valid"} +{"repo": "hashicorp/go-discover", "path": "provider/gce/gce_discover.go", "func_name": "client", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// client returns an authenticated HTTP client for use with GCE.", "docstring_tokens": ["client", "returns", "an", "authenticated", "HTTP", "client", "for", "use", "with", "GCE", "."], "sha": "6ccdb67f9b84932afd6b42641d0dac9ee213eeb2", "url": "https://github.com/hashicorp/go-discover/blob/6ccdb67f9b84932afd6b42641d0dac9ee213eeb2/provider/gce/gce_discover.go#L112-L128", "partition": "valid"} +{"repo": "hashicorp/go-discover", "path": "provider/gce/gce_discover.go", "func_name": "lookupProject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// lookupProject retrieves the project name from the metadata of the current node.", "docstring_tokens": ["lookupProject", "retrieves", "the", "project", "name", "from", "the", "metadata", "of", "the", "current", "node", "."], "sha": "6ccdb67f9b84932afd6b42641d0dac9ee213eeb2", "url": "https://github.com/hashicorp/go-discover/blob/6ccdb67f9b84932afd6b42641d0dac9ee213eeb2/provider/gce/gce_discover.go#L131-L153", "partition": "valid"} +{"repo": "hashicorp/go-discover", "path": "provider/gce/gce_discover.go", "func_name": "lookupZones", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// lookupZones retrieves the zones of the project and filters them by pattern.", "docstring_tokens": ["lookupZones", "retrieves", "the", "zones", "of", "the", "project", "and", "filters", "them", "by", "pattern", "."], "sha": "6ccdb67f9b84932afd6b42641d0dac9ee213eeb2", "url": "https://github.com/hashicorp/go-discover/blob/6ccdb67f9b84932afd6b42641d0dac9ee213eeb2/provider/gce/gce_discover.go#L156-L174", "partition": "valid"} +{"repo": "hashicorp/go-discover", "path": "provider/gce/gce_discover.go", "func_name": "lookupAddrs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// lookupAddrs retrieves the private ip addresses of all instances in a given\n// project and zone which have a matching tag value.", "docstring_tokens": ["lookupAddrs", "retrieves", "the", "private", "ip", "addresses", "of", "all", "instances", "in", "a", "given", "project", "and", "zone", "which", "have", "a", "matching", "tag", "value", "."], "sha": "6ccdb67f9b84932afd6b42641d0dac9ee213eeb2", "url": "https://github.com/hashicorp/go-discover/blob/6ccdb67f9b84932afd6b42641d0dac9ee213eeb2/provider/gce/gce_discover.go#L178-L200", "partition": "valid"} +{"repo": "hashicorp/go-discover", "path": "discover.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New creates a new discover client with the given options.", "docstring_tokens": ["New", "creates", "a", "new", "discover", "client", "with", "the", "given", "options", "."], "sha": "6ccdb67f9b84932afd6b42641d0dac9ee213eeb2", "url": "https://github.com/hashicorp/go-discover/blob/6ccdb67f9b84932afd6b42641d0dac9ee213eeb2/discover.go#L79-L91", "partition": "valid"} +{"repo": "hashicorp/go-discover", "path": "discover.go", "func_name": "WithUserAgent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithUserAgent allows specifying a custom user agent option to send with\n// requests when the underlying client library supports it.", "docstring_tokens": ["WithUserAgent", "allows", "specifying", "a", "custom", "user", "agent", "option", "to", "send", "with", "requests", "when", "the", "underlying", "client", "library", "supports", "it", "."], "sha": "6ccdb67f9b84932afd6b42641d0dac9ee213eeb2", "url": "https://github.com/hashicorp/go-discover/blob/6ccdb67f9b84932afd6b42641d0dac9ee213eeb2/discover.go#L95-L100", "partition": "valid"} +{"repo": "hashicorp/go-discover", "path": "discover.go", "func_name": "WithProviders", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithProviders allows specifying your own set of providers.", "docstring_tokens": ["WithProviders", "allows", "specifying", "your", "own", "set", "of", "providers", "."], "sha": "6ccdb67f9b84932afd6b42641d0dac9ee213eeb2", "url": "https://github.com/hashicorp/go-discover/blob/6ccdb67f9b84932afd6b42641d0dac9ee213eeb2/discover.go#L103-L108", "partition": "valid"} +{"repo": "hashicorp/go-discover", "path": "discover.go", "func_name": "Names", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Names returns the names of the configured providers.", "docstring_tokens": ["Names", "returns", "the", "names", "of", "the", "configured", "providers", "."], "sha": "6ccdb67f9b84932afd6b42641d0dac9ee213eeb2", "url": "https://github.com/hashicorp/go-discover/blob/6ccdb67f9b84932afd6b42641d0dac9ee213eeb2/discover.go#L119-L128", "partition": "valid"} +{"repo": "hashicorp/go-discover", "path": "discover.go", "func_name": "Help", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Help describes the format of the configuration string for address discovery\n// and the various provider specific options.", "docstring_tokens": ["Help", "describes", "the", "format", "of", "the", "configuration", "string", "for", "address", "discovery", "and", "the", "various", "provider", "specific", "options", "."], "sha": "6ccdb67f9b84932afd6b42641d0dac9ee213eeb2", "url": "https://github.com/hashicorp/go-discover/blob/6ccdb67f9b84932afd6b42641d0dac9ee213eeb2/discover.go#L141-L149", "partition": "valid"} +{"repo": "hashicorp/go-discover", "path": "discover.go", "func_name": "Addrs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Addrs discovers ip addresses of nodes that match the given filter criteria.\n// The config string must have the format 'provider=xxx key=val key=val ...'\n// where the keys and values are provider specific. The values are URL encoded.", "docstring_tokens": ["Addrs", "discovers", "ip", "addresses", "of", "nodes", "that", "match", "the", "given", "filter", "criteria", ".", "The", "config", "string", "must", "have", "the", "format", "provider", "=", "xxx", "key", "=", "val", "key", "=", "val", "...", "where", "the", "keys", "and", "values", "are", "provider", "specific", ".", "The", "values", "are", "URL", "encoded", "."], "sha": "6ccdb67f9b84932afd6b42641d0dac9ee213eeb2", "url": "https://github.com/hashicorp/go-discover/blob/6ccdb67f9b84932afd6b42641d0dac9ee213eeb2/discover.go#L154-L184", "partition": "valid"} +{"repo": "hashicorp/go-discover", "path": "config.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String formats a config map into the \"key=val key=val ...\"\n// understood by Parse. The order of the keys is stable.", "docstring_tokens": ["String", "formats", "a", "config", "map", "into", "the", "key", "=", "val", "key", "=", "val", "...", "understood", "by", "Parse", ".", "The", "order", "of", "the", "keys", "is", "stable", "."], "sha": "6ccdb67f9b84932afd6b42641d0dac9ee213eeb2", "url": "https://github.com/hashicorp/go-discover/blob/6ccdb67f9b84932afd6b42641d0dac9ee213eeb2/config.go#L24-L51", "partition": "valid"} +{"repo": "hashicorp/go-discover", "path": "provider/k8s/k8s_discover.go", "func_name": "PodAddrs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PodAddrs extracts the addresses from a list of pods.\n//\n// This is a separate method so that we can unit test this without having\n// to setup complicated K8S cluster scenarios. It shouldn't generally be\n// called externally.", "docstring_tokens": ["PodAddrs", "extracts", "the", "addresses", "from", "a", "list", "of", "pods", ".", "This", "is", "a", "separate", "method", "so", "that", "we", "can", "unit", "test", "this", "without", "having", "to", "setup", "complicated", "K8S", "cluster", "scenarios", ".", "It", "shouldn", "t", "generally", "be", "called", "externally", "."], "sha": "6ccdb67f9b84932afd6b42641d0dac9ee213eeb2", "url": "https://github.com/hashicorp/go-discover/blob/6ccdb67f9b84932afd6b42641d0dac9ee213eeb2/provider/k8s/k8s_discover.go#L124-L180", "partition": "valid"} +{"repo": "hashicorp/go-discover", "path": "provider/azure/azure_discover.go", "func_name": "argsOrEnv", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// argsOrEnv allows you to pick an environmental variable for a setting if the arg is not set", "docstring_tokens": ["argsOrEnv", "allows", "you", "to", "pick", "an", "environmental", "variable", "for", "a", "setting", "if", "the", "arg", "is", "not", "set"], "sha": "6ccdb67f9b84932afd6b42641d0dac9ee213eeb2", "url": "https://github.com/hashicorp/go-discover/blob/6ccdb67f9b84932afd6b42641d0dac9ee213eeb2/provider/azure/azure_discover.go#L62-L67", "partition": "valid"} +{"repo": "hashicorp/go-discover", "path": "provider/mdns/mdns_provider.go", "func_name": "Addrs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Addrs returns discovered addresses for the mDNS package.", "docstring_tokens": ["Addrs", "returns", "discovered", "addresses", "for", "the", "mDNS", "package", "."], "sha": "6ccdb67f9b84932afd6b42641d0dac9ee213eeb2", "url": "https://github.com/hashicorp/go-discover/blob/6ccdb67f9b84932afd6b42641d0dac9ee213eeb2/provider/mdns/mdns_provider.go#L34-L119", "partition": "valid"} +{"repo": "hashicorp/go-discover", "path": "provider/vsphere/vsphere_discover.go", "func_name": "setLog", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setLog sets the logger.", "docstring_tokens": ["setLog", "sets", "the", "logger", "."], "sha": "6ccdb67f9b84932afd6b42641d0dac9ee213eeb2", "url": "https://github.com/hashicorp/go-discover/blob/6ccdb67f9b84932afd6b42641d0dac9ee213eeb2/provider/vsphere/vsphere_discover.go#L35-L41", "partition": "valid"} +{"repo": "hashicorp/go-discover", "path": "provider/vsphere/vsphere_discover.go", "func_name": "discoverErr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// discoverErr prints out a friendly error heading for the top-level discovery\n// errors. It should only be used in the Addrs method.", "docstring_tokens": ["discoverErr", "prints", "out", "a", "friendly", "error", "heading", "for", "the", "top", "-", "level", "discovery", "errors", ".", "It", "should", "only", "be", "used", "in", "the", "Addrs", "method", "."], "sha": "6ccdb67f9b84932afd6b42641d0dac9ee213eeb2", "url": "https://github.com/hashicorp/go-discover/blob/6ccdb67f9b84932afd6b42641d0dac9ee213eeb2/provider/vsphere/vsphere_discover.go#L45-L53", "partition": "valid"} +{"repo": "hashicorp/go-discover", "path": "provider/vsphere/vsphere_discover.go", "func_name": "valueOrEnv", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// valueOrEnv provides a way of suppling configuration values through\n// environment variables. Defined values always take priority.", "docstring_tokens": ["valueOrEnv", "provides", "a", "way", "of", "suppling", "configuration", "values", "through", "environment", "variables", ".", "Defined", "values", "always", "take", "priority", "."], "sha": "6ccdb67f9b84932afd6b42641d0dac9ee213eeb2", "url": "https://github.com/hashicorp/go-discover/blob/6ccdb67f9b84932afd6b42641d0dac9ee213eeb2/provider/vsphere/vsphere_discover.go#L57-L66", "partition": "valid"} +{"repo": "hashicorp/go-discover", "path": "provider/vsphere/vsphere_discover.go", "func_name": "newVSphereClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newVSphereClient returns a new vSphereClient after setting up the necessary\n// connections.", "docstring_tokens": ["newVSphereClient", "returns", "a", "new", "vSphereClient", "after", "setting", "up", "the", "necessary", "connections", "."], "sha": "6ccdb67f9b84932afd6b42641d0dac9ee213eeb2", "url": "https://github.com/hashicorp/go-discover/blob/6ccdb67f9b84932afd6b42641d0dac9ee213eeb2/provider/vsphere/vsphere_discover.go#L91-L114", "partition": "valid"} +{"repo": "hashicorp/go-discover", "path": "provider/vsphere/vsphere_discover.go", "func_name": "newVimSession", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newVimSession connects the VIM SOAP API client connection.", "docstring_tokens": ["newVimSession", "connects", "the", "VIM", "SOAP", "API", "client", "connection", "."], "sha": "6ccdb67f9b84932afd6b42641d0dac9ee213eeb2", "url": "https://github.com/hashicorp/go-discover/blob/6ccdb67f9b84932afd6b42641d0dac9ee213eeb2/provider/vsphere/vsphere_discover.go#L117-L126", "partition": "valid"} +{"repo": "hashicorp/go-discover", "path": "provider/vsphere/vsphere_discover.go", "func_name": "newRestSession", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newRestSession connects to the vSphere REST API endpoint, necessary for\n// tags.", "docstring_tokens": ["newRestSession", "connects", "to", "the", "vSphere", "REST", "API", "endpoint", "necessary", "for", "tags", "."], "sha": "6ccdb67f9b84932afd6b42641d0dac9ee213eeb2", "url": "https://github.com/hashicorp/go-discover/blob/6ccdb67f9b84932afd6b42641d0dac9ee213eeb2/provider/vsphere/vsphere_discover.go#L130-L139", "partition": "valid"} +{"repo": "hashicorp/go-discover", "path": "provider/vsphere/vsphere_discover.go", "func_name": "Addrs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Addrs implements the Provider interface for the vsphere package.", "docstring_tokens": ["Addrs", "implements", "the", "Provider", "interface", "for", "the", "vsphere", "package", "."], "sha": "6ccdb67f9b84932afd6b42641d0dac9ee213eeb2", "url": "https://github.com/hashicorp/go-discover/blob/6ccdb67f9b84932afd6b42641d0dac9ee213eeb2/provider/vsphere/vsphere_discover.go#L160-L208", "partition": "valid"} +{"repo": "hashicorp/go-discover", "path": "provider/vsphere/vsphere_discover.go", "func_name": "tagIDFromName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// tagIDFromName helps convert the tag and category names into the final ID\n// used for discovery.", "docstring_tokens": ["tagIDFromName", "helps", "convert", "the", "tag", "and", "category", "names", "into", "the", "final", "ID", "used", "for", "discovery", "."], "sha": "6ccdb67f9b84932afd6b42641d0dac9ee213eeb2", "url": "https://github.com/hashicorp/go-discover/blob/6ccdb67f9b84932afd6b42641d0dac9ee213eeb2/provider/vsphere/vsphere_discover.go#L212-L221", "partition": "valid"} +{"repo": "hashicorp/go-discover", "path": "provider/vsphere/vsphere_discover.go", "func_name": "tagCategoryByName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// tagCategoryByName converts a tag category name into its ID.", "docstring_tokens": ["tagCategoryByName", "converts", "a", "tag", "category", "name", "into", "its", "ID", "."], "sha": "6ccdb67f9b84932afd6b42641d0dac9ee213eeb2", "url": "https://github.com/hashicorp/go-discover/blob/6ccdb67f9b84932afd6b42641d0dac9ee213eeb2/provider/vsphere/vsphere_discover.go#L224-L241", "partition": "valid"} +{"repo": "hashicorp/go-discover", "path": "provider/vsphere/vsphere_discover.go", "func_name": "tagByName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// tagByName converts a tag name into its ID.", "docstring_tokens": ["tagByName", "converts", "a", "tag", "name", "into", "its", "ID", "."], "sha": "6ccdb67f9b84932afd6b42641d0dac9ee213eeb2", "url": "https://github.com/hashicorp/go-discover/blob/6ccdb67f9b84932afd6b42641d0dac9ee213eeb2/provider/vsphere/vsphere_discover.go#L244-L262", "partition": "valid"} +{"repo": "hashicorp/go-discover", "path": "provider/vsphere/vsphere_discover.go", "func_name": "virtualMachineIPsForTag", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// virtualMachineIPsForTag is a higher-level wrapper that calls out to\n// functions to fetch all of the virtual machines matching a certain tag ID,\n// and then gets all of the IP addresses for those virtual machines.", "docstring_tokens": ["virtualMachineIPsForTag", "is", "a", "higher", "-", "level", "wrapper", "that", "calls", "out", "to", "functions", "to", "fetch", "all", "of", "the", "virtual", "machines", "matching", "a", "certain", "tag", "ID", "and", "then", "gets", "all", "of", "the", "IP", "addresses", "for", "those", "virtual", "machines", "."], "sha": "6ccdb67f9b84932afd6b42641d0dac9ee213eeb2", "url": "https://github.com/hashicorp/go-discover/blob/6ccdb67f9b84932afd6b42641d0dac9ee213eeb2/provider/vsphere/vsphere_discover.go#L267-L274", "partition": "valid"} +{"repo": "hashicorp/go-discover", "path": "provider/vsphere/vsphere_discover.go", "func_name": "virtualMachinesForTag", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// virtualMachinesForTag discovers all of the virtual machines that match a\n// specific tag ID and returns their higher level helper objects.", "docstring_tokens": ["virtualMachinesForTag", "discovers", "all", "of", "the", "virtual", "machines", "that", "match", "a", "specific", "tag", "ID", "and", "returns", "their", "higher", "level", "helper", "objects", "."], "sha": "6ccdb67f9b84932afd6b42641d0dac9ee213eeb2", "url": "https://github.com/hashicorp/go-discover/blob/6ccdb67f9b84932afd6b42641d0dac9ee213eeb2/provider/vsphere/vsphere_discover.go#L278-L305", "partition": "valid"} +{"repo": "hashicorp/go-discover", "path": "provider/vsphere/vsphere_discover.go", "func_name": "ipAddrsForVirtualMachines", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ipAddrsForVirtualMachines takes a set of virtual machines and returns a\n// consolidated list of IP addresses for all of the VMs.", "docstring_tokens": ["ipAddrsForVirtualMachines", "takes", "a", "set", "of", "virtual", "machines", "and", "returns", "a", "consolidated", "list", "of", "IP", "addresses", "for", "all", "of", "the", "VMs", "."], "sha": "6ccdb67f9b84932afd6b42641d0dac9ee213eeb2", "url": "https://github.com/hashicorp/go-discover/blob/6ccdb67f9b84932afd6b42641d0dac9ee213eeb2/provider/vsphere/vsphere_discover.go#L309-L319", "partition": "valid"} +{"repo": "hashicorp/go-discover", "path": "provider/vsphere/vsphere_discover.go", "func_name": "virtualMachineFromMOID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// virtualMachineFromMOID locates a virtual machine by its managed object\n// reference ID.", "docstring_tokens": ["virtualMachineFromMOID", "locates", "a", "virtual", "machine", "by", "its", "managed", "object", "reference", "ID", "."], "sha": "6ccdb67f9b84932afd6b42641d0dac9ee213eeb2", "url": "https://github.com/hashicorp/go-discover/blob/6ccdb67f9b84932afd6b42641d0dac9ee213eeb2/provider/vsphere/vsphere_discover.go#L323-L341", "partition": "valid"} +{"repo": "hashicorp/go-discover", "path": "provider/vsphere/vsphere_discover.go", "func_name": "virtualMachineProperties", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// virtualMachineProperties is a convenience method that wraps fetching the\n// VirtualMachine MO from its higher-level object.\n//\n// It takes a list of property keys to fetch. Keeping the property set small\n// can sometimes result in significant performance improvements.", "docstring_tokens": ["virtualMachineProperties", "is", "a", "convenience", "method", "that", "wraps", "fetching", "the", "VirtualMachine", "MO", "from", "its", "higher", "-", "level", "object", ".", "It", "takes", "a", "list", "of", "property", "keys", "to", "fetch", ".", "Keeping", "the", "property", "set", "small", "can", "sometimes", "result", "in", "significant", "performance", "improvements", "."], "sha": "6ccdb67f9b84932afd6b42641d0dac9ee213eeb2", "url": "https://github.com/hashicorp/go-discover/blob/6ccdb67f9b84932afd6b42641d0dac9ee213eeb2/provider/vsphere/vsphere_discover.go#L348-L355", "partition": "valid"} +{"repo": "hashicorp/go-discover", "path": "provider/vsphere/vsphere_discover.go", "func_name": "buildAndSelectGuestIPs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// buildAndSelectGuestIPs builds a list of IP addresses known to VMware tools,\n// skipping local and auto-configuration addresses.\n//\n// The builder is non-discriminate and is only deterministic to the order that\n// it discovers addresses in VMware tools.", "docstring_tokens": ["buildAndSelectGuestIPs", "builds", "a", "list", "of", "IP", "addresses", "known", "to", "VMware", "tools", "skipping", "local", "and", "auto", "-", "configuration", "addresses", ".", "The", "builder", "is", "non", "-", "discriminate", "and", "is", "only", "deterministic", "to", "the", "order", "that", "it", "discovers", "addresses", "in", "VMware", "tools", "."], "sha": "6ccdb67f9b84932afd6b42641d0dac9ee213eeb2", "url": "https://github.com/hashicorp/go-discover/blob/6ccdb67f9b84932afd6b42641d0dac9ee213eeb2/provider/vsphere/vsphere_discover.go#L362-L391", "partition": "valid"} +{"repo": "hashicorp/go-discover", "path": "provider/vsphere/vsphere_discover.go", "func_name": "skipIPAddr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// skipIPAddr defines the set of criteria that buildAndSelectGuestIPs uses to\n// check to see if it needs to skip an IP address.", "docstring_tokens": ["skipIPAddr", "defines", "the", "set", "of", "criteria", "that", "buildAndSelectGuestIPs", "uses", "to", "check", "to", "see", "if", "it", "needs", "to", "skip", "an", "IP", "address", "."], "sha": "6ccdb67f9b84932afd6b42641d0dac9ee213eeb2", "url": "https://github.com/hashicorp/go-discover/blob/6ccdb67f9b84932afd6b42641d0dac9ee213eeb2/provider/vsphere/vsphere_discover.go#L395-L407", "partition": "valid"} +{"repo": "hashicorp/go-discover", "path": "provider/vsphere/vsphere_discover.go", "func_name": "virtualMachineNames", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// virtualMachineNames is a helper method that returns all the names for a list\n// of virtual machines, comma separated.", "docstring_tokens": ["virtualMachineNames", "is", "a", "helper", "method", "that", "returns", "all", "the", "names", "for", "a", "list", "of", "virtual", "machines", "comma", "separated", "."], "sha": "6ccdb67f9b84932afd6b42641d0dac9ee213eeb2", "url": "https://github.com/hashicorp/go-discover/blob/6ccdb67f9b84932afd6b42641d0dac9ee213eeb2/provider/vsphere/vsphere_discover.go#L411-L417", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "macaron.go", "func_name": "validateAndWrapHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// validateAndWrapHandler makes sure a handler is a callable function, it panics if not.\n// When the handler is also potential to be any built-in inject.FastInvoker,\n// it wraps the handler automatically to have some performance gain.", "docstring_tokens": ["validateAndWrapHandler", "makes", "sure", "a", "handler", "is", "a", "callable", "function", "it", "panics", "if", "not", ".", "When", "the", "handler", "is", "also", "potential", "to", "be", "any", "built", "-", "in", "inject", ".", "FastInvoker", "it", "wraps", "the", "handler", "automatically", "to", "have", "some", "performance", "gain", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/macaron.go#L65-L83", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "macaron.go", "func_name": "validateAndWrapHandlers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// validateAndWrapHandlers preforms validation and wrapping for each input handler.\n// It accepts an optional wrapper function to perform custom wrapping on handlers.", "docstring_tokens": ["validateAndWrapHandlers", "preforms", "validation", "and", "wrapping", "for", "each", "input", "handler", ".", "It", "accepts", "an", "optional", "wrapper", "function", "to", "perform", "custom", "wrapping", "on", "handlers", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/macaron.go#L87-L103", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "macaron.go", "func_name": "NewWithLogger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewWithLogger creates a bare bones Macaron instance.\n// Use this method if you want to have full control over the middleware that is used.\n// You can specify logger output writer with this function.", "docstring_tokens": ["NewWithLogger", "creates", "a", "bare", "bones", "Macaron", "instance", ".", "Use", "this", "method", "if", "you", "want", "to", "have", "full", "control", "over", "the", "middleware", "that", "is", "used", ".", "You", "can", "specify", "logger", "output", "writer", "with", "this", "function", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/macaron.go#L123-L138", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "macaron.go", "func_name": "Handlers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Handlers sets the entire middleware stack with the given Handlers.\n// This will clear any current middleware handlers,\n// and panics if any of the handlers is not a callable function", "docstring_tokens": ["Handlers", "sets", "the", "entire", "middleware", "stack", "with", "the", "given", "Handlers", ".", "This", "will", "clear", "any", "current", "middleware", "handlers", "and", "panics", "if", "any", "of", "the", "handlers", "is", "not", "a", "callable", "function"], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/macaron.go#L159-L164", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "macaron.go", "func_name": "Use", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Use adds a middleware Handler to the stack,\n// and panics if the handler is not a callable func.\n// Middleware Handlers are invoked in the order that they are added.", "docstring_tokens": ["Use", "adds", "a", "middleware", "Handler", "to", "the", "stack", "and", "panics", "if", "the", "handler", "is", "not", "a", "callable", "func", ".", "Middleware", "Handlers", "are", "invoked", "in", "the", "order", "that", "they", "are", "added", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/macaron.go#L184-L187", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "macaron.go", "func_name": "ServeHTTP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServeHTTP is the HTTP Entry point for a Macaron instance.\n// Useful if you want to control your own HTTP server.\n// Be aware that none of middleware will run without registering any router.", "docstring_tokens": ["ServeHTTP", "is", "the", "HTTP", "Entry", "point", "for", "a", "Macaron", "instance", ".", "Useful", "if", "you", "want", "to", "control", "your", "own", "HTTP", "server", ".", "Be", "aware", "that", "none", "of", "middleware", "will", "run", "without", "registering", "any", "router", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/macaron.go#L211-L221", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "macaron.go", "func_name": "SetURLPrefix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetURLPrefix sets URL prefix of router layer, so that it support suburl.", "docstring_tokens": ["SetURLPrefix", "sets", "URL", "prefix", "of", "router", "layer", "so", "that", "it", "support", "suburl", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/macaron.go#L261-L264", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "macaron.go", "func_name": "SetConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetConfig sets data sources for configuration.", "docstring_tokens": ["SetConfig", "sets", "data", "sources", "for", "configuration", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/macaron.go#L322-L325", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "context.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String reads and returns content of request body in string.", "docstring_tokens": ["String", "reads", "and", "returns", "content", "of", "request", "body", "in", "string", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/context.go#L56-L59", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "context.go", "func_name": "RemoteAddr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoteAddr returns more real IP address.", "docstring_tokens": ["RemoteAddr", "returns", "more", "real", "IP", "address", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/context.go#L141-L153", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "context.go", "func_name": "HTML", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HTML renders the HTML with default template set.", "docstring_tokens": ["HTML", "renders", "the", "HTML", "with", "default", "template", "set", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/context.go#L166-L168", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "context.go", "func_name": "HTMLSet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HTMLSet renders the HTML with given template set name.", "docstring_tokens": ["HTMLSet", "renders", "the", "HTML", "with", "given", "template", "set", "name", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/context.go#L171-L173", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "context.go", "func_name": "Query", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Query querys form parameter.", "docstring_tokens": ["Query", "querys", "form", "parameter", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/context.go#L203-L206", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "context.go", "func_name": "QueryTrim", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// QueryTrim querys and trims spaces form parameter.", "docstring_tokens": ["QueryTrim", "querys", "and", "trims", "spaces", "form", "parameter", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/context.go#L209-L211", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "context.go", "func_name": "QueryStrings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// QueryStrings returns a list of results by given query name.", "docstring_tokens": ["QueryStrings", "returns", "a", "list", "of", "results", "by", "given", "query", "name", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/context.go#L214-L222", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "context.go", "func_name": "QueryEscape", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// QueryEscape returns escapred query result.", "docstring_tokens": ["QueryEscape", "returns", "escapred", "query", "result", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/context.go#L225-L227", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "context.go", "func_name": "QueryBool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// QueryBool returns query result in bool type.", "docstring_tokens": ["QueryBool", "returns", "query", "result", "in", "bool", "type", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/context.go#L230-L233", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "context.go", "func_name": "QueryInt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// QueryInt returns query result in int type.", "docstring_tokens": ["QueryInt", "returns", "query", "result", "in", "int", "type", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/context.go#L236-L238", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "context.go", "func_name": "QueryInt64", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// QueryInt64 returns query result in int64 type.", "docstring_tokens": ["QueryInt64", "returns", "query", "result", "in", "int64", "type", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/context.go#L241-L243", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "context.go", "func_name": "QueryFloat64", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// QueryFloat64 returns query result in float64 type.", "docstring_tokens": ["QueryFloat64", "returns", "query", "result", "in", "float64", "type", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/context.go#L246-L249", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "context.go", "func_name": "SetParams", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetParams sets value of param with given name.", "docstring_tokens": ["SetParams", "sets", "value", "of", "param", "with", "given", "name", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/context.go#L264-L269", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "context.go", "func_name": "GetFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetFile returns information about user upload file by given form field name.", "docstring_tokens": ["GetFile", "returns", "information", "about", "user", "upload", "file", "by", "given", "form", "field", "name", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/context.go#L302-L304", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "context.go", "func_name": "SaveToFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SaveToFile reads a file from request by field name and saves to given path.", "docstring_tokens": ["SaveToFile", "reads", "a", "file", "from", "request", "by", "field", "name", "and", "saves", "to", "given", "path", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/context.go#L307-L322", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "context.go", "func_name": "GetCookie", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCookie returns given cookie value from request header.", "docstring_tokens": ["GetCookie", "returns", "given", "cookie", "value", "from", "request", "header", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/context.go#L383-L390", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "context.go", "func_name": "GetCookieInt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCookieInt returns cookie result in int type.", "docstring_tokens": ["GetCookieInt", "returns", "cookie", "result", "in", "int", "type", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/context.go#L393-L395", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "context.go", "func_name": "GetCookieInt64", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCookieInt64 returns cookie result in int64 type.", "docstring_tokens": ["GetCookieInt64", "returns", "cookie", "result", "in", "int64", "type", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/context.go#L398-L400", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "context.go", "func_name": "GetCookieFloat64", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCookieFloat64 returns cookie result in float64 type.", "docstring_tokens": ["GetCookieFloat64", "returns", "cookie", "result", "in", "float64", "type", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/context.go#L403-L406", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "context.go", "func_name": "SetSecureCookie", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetSecureCookie sets given cookie value to response header with default secret string.", "docstring_tokens": ["SetSecureCookie", "sets", "given", "cookie", "value", "to", "response", "header", "with", "default", "secret", "string", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/context.go#L416-L418", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "context.go", "func_name": "GetSecureCookie", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSecureCookie returns given cookie value from request header with default secret string.", "docstring_tokens": ["GetSecureCookie", "returns", "given", "cookie", "value", "from", "request", "header", "with", "default", "secret", "string", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/context.go#L421-L423", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "context.go", "func_name": "SetSuperSecureCookie", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetSuperSecureCookie sets given cookie value to response header with secret string.", "docstring_tokens": ["SetSuperSecureCookie", "sets", "given", "cookie", "value", "to", "response", "header", "with", "secret", "string", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/context.go#L426-L434", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "context.go", "func_name": "GetSuperSecureCookie", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSuperSecureCookie returns given cookie value from request header with secret string.", "docstring_tokens": ["GetSuperSecureCookie", "returns", "given", "cookie", "value", "from", "request", "header", "with", "secret", "string", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/context.go#L437-L451", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "context.go", "func_name": "ServeContent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServeContent serves given content to response.", "docstring_tokens": ["ServeContent", "serves", "given", "content", "to", "response", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/context.go#L462-L473", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "context.go", "func_name": "ServeFileContent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServeFileContent serves given file as content to response.", "docstring_tokens": ["ServeFileContent", "serves", "given", "file", "as", "content", "to", "response", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/context.go#L476-L497", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "context.go", "func_name": "ServeFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServeFile serves given file to response.", "docstring_tokens": ["ServeFile", "serves", "given", "file", "to", "response", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/context.go#L500-L515", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "context.go", "func_name": "ChangeStaticPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ChangeStaticPath changes static path from old to new one.", "docstring_tokens": ["ChangeStaticPath", "changes", "static", "path", "from", "old", "to", "new", "one", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/context.go#L518-L532", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "tree.go", "func_name": "getNextWildcard", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getNextWildcard tries to find next wildcard and update pattern with corresponding regexp.", "docstring_tokens": ["getNextWildcard", "tries", "to", "find", "next", "wildcard", "and", "update", "pattern", "with", "corresponding", "regexp", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/tree.go#L55-L78", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "tree.go", "func_name": "getRawPattern", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getRawPattern removes all regexp but keeps wildcards for building URL path.", "docstring_tokens": ["getRawPattern", "removes", "all", "regexp", "but", "keeps", "wildcards", "for", "building", "URL", "path", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/tree.go#L98-L114", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "tree.go", "func_name": "URLPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// URLPath build path part of URL by given pair values.", "docstring_tokens": ["URLPath", "build", "path", "part", "of", "URL", "by", "given", "pair", "values", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/tree.go#L146-L166", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "router.go", "func_name": "NewRouteMap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRouteMap initializes and returns a new routeMap.", "docstring_tokens": ["NewRouteMap", "initializes", "and", "returns", "a", "new", "routeMap", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/router.go#L43-L51", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "router.go", "func_name": "getLeaf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getLeaf returns Leaf object if a route has been registered.", "docstring_tokens": ["getLeaf", "returns", "Leaf", "object", "if", "a", "route", "has", "been", "registered", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/router.go#L54-L59", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "router.go", "func_name": "add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// add adds new route to route tree map.", "docstring_tokens": ["add", "adds", "new", "route", "to", "route", "tree", "map", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/router.go#L62-L67", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "router.go", "func_name": "Name", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Name sets name of route.", "docstring_tokens": ["Name", "sets", "name", "of", "route", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/router.go#L117-L124", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "router.go", "func_name": "handle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handle adds new route to the router tree.", "docstring_tokens": ["handle", "adds", "new", "route", "to", "the", "router", "tree", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/router.go#L127-L163", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "router.go", "func_name": "Handle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Handle registers a new request handle with the given pattern, method and handlers.", "docstring_tokens": ["Handle", "registers", "a", "new", "request", "handle", "with", "the", "given", "pattern", "method", "and", "handlers", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/router.go#L166-L189", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "router.go", "func_name": "Combo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Combo returns a combo router.", "docstring_tokens": ["Combo", "returns", "a", "combo", "router", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/router.go#L253-L255", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "router.go", "func_name": "NotFound", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NotFound configurates http.HandlerFunc which is called when no matching route is\n// found. If it is not set, http.NotFound is used.\n// Be sure to set 404 response code in your handler.", "docstring_tokens": ["NotFound", "configurates", "http", ".", "HandlerFunc", "which", "is", "called", "when", "no", "matching", "route", "is", "found", ".", "If", "it", "is", "not", "set", "http", ".", "NotFound", "is", "used", ".", "Be", "sure", "to", "set", "404", "response", "code", "in", "your", "handler", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/router.go#L260-L269", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "router.go", "func_name": "InternalServerError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InternalServerError configurates handler which is called when route handler returns\n// error. If it is not set, default handler is used.\n// Be sure to set 500 response code in your handler.", "docstring_tokens": ["InternalServerError", "configurates", "handler", "which", "is", "called", "when", "route", "handler", "returns", "error", ".", "If", "it", "is", "not", "set", "default", "handler", "is", "used", ".", "Be", "sure", "to", "set", "500", "response", "code", "in", "your", "handler", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/router.go#L274-L282", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "router.go", "func_name": "URLFor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// URLFor builds path part of URL by given pair values.", "docstring_tokens": ["URLFor", "builds", "path", "part", "of", "URL", "by", "given", "pair", "values", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/router.go#L312-L318", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "router.go", "func_name": "Name", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Name sets name of ComboRouter route.", "docstring_tokens": ["Name", "sets", "name", "of", "ComboRouter", "route", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/router.go#L375-L380", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "response_writer.go", "func_name": "NewResponseWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewResponseWriter creates a ResponseWriter that wraps an http.ResponseWriter", "docstring_tokens": ["NewResponseWriter", "creates", "a", "ResponseWriter", "that", "wraps", "an", "http", ".", "ResponseWriter"], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/response_writer.go#L45-L47", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "logger.go", "func_name": "Logger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Logger returns a middleware handler that logs the request as it goes in and the response as it goes out.", "docstring_tokens": ["Logger", "returns", "a", "middleware", "handler", "that", "logs", "the", "request", "as", "it", "goes", "in", "and", "the", "response", "as", "it", "goes", "out", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/logger.go#L45-L73", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "render.go", "func_name": "NewTplFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTplFile cerates new template file with given name and data.", "docstring_tokens": ["NewTplFile", "cerates", "new", "template", "file", "with", "given", "name", "and", "data", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/render.go#L153-L155", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "render.go", "func_name": "NewTemplateFileSystem", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTemplateFileSystem creates new template file system with given options.", "docstring_tokens": ["NewTemplateFileSystem", "creates", "new", "template", "file", "system", "with", "given", "options", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/render.go#L175-L245", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "render.go", "func_name": "NewTemplateSet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTemplateSet initializes a new empty template set.", "docstring_tokens": ["NewTemplateSet", "initializes", "a", "new", "empty", "template", "set", "."], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/render.go#L310-L315", "partition": "valid"} +{"repo": "go-macaron/macaron", "path": "static.go", "func_name": "GenerateETag", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GenerateETag generates an ETag based on size, filename and file modification time", "docstring_tokens": ["GenerateETag", "generates", "an", "ETag", "based", "on", "size", "filename", "and", "file", "modification", "time"], "sha": "4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d", "url": "https://github.com/go-macaron/macaron/blob/4df59ae8a50bd2e82ed915ff1ce764b1bb128a9d/static.go#L189-L192", "partition": "valid"} +{"repo": "facebookarchive/inject", "path": "inject.go", "func_name": "Populate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Populate is a short-hand for populating a graph with the given incomplete\n// object values.", "docstring_tokens": ["Populate", "is", "a", "short", "-", "hand", "for", "populating", "a", "graph", "with", "the", "given", "incomplete", "object", "values", "."], "sha": "f23751cae28bef101a38b79266785d3b574cf7e8", "url": "https://github.com/facebookarchive/inject/blob/f23751cae28bef101a38b79266785d3b574cf7e8/inject.go#L45-L53", "partition": "valid"} +{"repo": "facebookarchive/inject", "path": "inject.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String representation suitable for human consumption.", "docstring_tokens": ["String", "representation", "suitable", "for", "human", "consumption", "."], "sha": "f23751cae28bef101a38b79266785d3b574cf7e8", "url": "https://github.com/facebookarchive/inject/blob/f23751cae28bef101a38b79266785d3b574cf7e8/inject.go#L69-L76", "partition": "valid"} +{"repo": "facebookarchive/inject", "path": "inject.go", "func_name": "Provide", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Provide objects to the Graph. The Object documentation describes\n// the impact of various fields.", "docstring_tokens": ["Provide", "objects", "to", "the", "Graph", ".", "The", "Object", "documentation", "describes", "the", "impact", "of", "various", "fields", "."], "sha": "f23751cae28bef101a38b79266785d3b574cf7e8", "url": "https://github.com/facebookarchive/inject/blob/f23751cae28bef101a38b79266785d3b574cf7e8/inject.go#L95-L153", "partition": "valid"} +{"repo": "facebookarchive/inject", "path": "inject.go", "func_name": "Populate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Populate the incomplete Objects.", "docstring_tokens": ["Populate", "the", "incomplete", "Objects", "."], "sha": "f23751cae28bef101a38b79266785d3b574cf7e8", "url": "https://github.com/facebookarchive/inject/blob/f23751cae28bef101a38b79266785d3b574cf7e8/inject.go#L156-L210", "partition": "valid"} +{"repo": "facebookarchive/inject", "path": "inject.go", "func_name": "Objects", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Objects returns all known objects, named as well as unnamed. The returned\n// elements are not in a stable order.", "docstring_tokens": ["Objects", "returns", "all", "known", "objects", "named", "as", "well", "as", "unnamed", ".", "The", "returned", "elements", "are", "not", "in", "a", "stable", "order", "."], "sha": "f23751cae28bef101a38b79266785d3b574cf7e8", "url": "https://github.com/facebookarchive/inject/blob/f23751cae28bef101a38b79266785d3b574cf7e8/inject.go#L513-L531", "partition": "valid"} +{"repo": "lomik/go-carbon", "path": "receiver/pubsub/pubsub.go", "func_name": "newPubSub", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newPubSub returns a PubSub receiver. Optionally accepts a client to allow\n// for injecting the fake for tests. If client is nil a real\n// client connection to the google pubsub service will be attempted.", "docstring_tokens": ["newPubSub", "returns", "a", "PubSub", "receiver", ".", "Optionally", "accepts", "a", "client", "to", "allow", "for", "injecting", "the", "fake", "for", "tests", ".", "If", "client", "is", "nil", "a", "real", "client", "connection", "to", "the", "google", "pubsub", "service", "will", "be", "attempted", "."], "sha": "5d59a6c9bc5f7220dc961ab796066eb257e59579", "url": "https://github.com/lomik/go-carbon/blob/5d59a6c9bc5f7220dc961ab796066eb257e59579/receiver/pubsub/pubsub.go#L76-L150", "partition": "valid"} +{"repo": "lomik/go-carbon", "path": "receiver/pubsub/pubsub.go", "func_name": "Stat", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stat sends pubsub receiver's internal stats to specified callback", "docstring_tokens": ["Stat", "sends", "pubsub", "receiver", "s", "internal", "stats", "to", "specified", "callback"], "sha": "5d59a6c9bc5f7220dc961ab796066eb257e59579", "url": "https://github.com/lomik/go-carbon/blob/5d59a6c9bc5f7220dc961ab796066eb257e59579/receiver/pubsub/pubsub.go#L212-L227", "partition": "valid"} +{"repo": "lomik/go-carbon", "path": "carbon/app.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New App instance", "docstring_tokens": ["New", "App", "instance"], "sha": "5d59a6c9bc5f7220dc961ab796066eb257e59579", "url": "https://github.com/lomik/go-carbon/blob/5d59a6c9bc5f7220dc961ab796066eb257e59579/carbon/app.go#L54-L63", "partition": "valid"} +{"repo": "lomik/go-carbon", "path": "carbon/app.go", "func_name": "configure", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// configure loads config from config file, schemas.conf, aggregation.conf", "docstring_tokens": ["configure", "loads", "config", "from", "config", "file", "schemas", ".", "conf", "aggregation", ".", "conf"], "sha": "5d59a6c9bc5f7220dc961ab796066eb257e59579", "url": "https://github.com/lomik/go-carbon/blob/5d59a6c9bc5f7220dc961ab796066eb257e59579/carbon/app.go#L66-L122", "partition": "valid"} +{"repo": "lomik/go-carbon", "path": "carbon/app.go", "func_name": "ParseConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseConfig loads config from config file, schemas.conf, aggregation.conf", "docstring_tokens": ["ParseConfig", "loads", "config", "from", "config", "file", "schemas", ".", "conf", "aggregation", ".", "conf"], "sha": "5d59a6c9bc5f7220dc961ab796066eb257e59579", "url": "https://github.com/lomik/go-carbon/blob/5d59a6c9bc5f7220dc961ab796066eb257e59579/carbon/app.go#L125-L139", "partition": "valid"} +{"repo": "lomik/go-carbon", "path": "carbon/app.go", "func_name": "ReloadConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReloadConfig reloads some settings from config", "docstring_tokens": ["ReloadConfig", "reloads", "some", "settings", "from", "config"], "sha": "5d59a6c9bc5f7220dc961ab796066eb257e59579", "url": "https://github.com/lomik/go-carbon/blob/5d59a6c9bc5f7220dc961ab796066eb257e59579/carbon/app.go#L142-L177", "partition": "valid"} +{"repo": "lomik/go-carbon", "path": "carbon/app.go", "func_name": "stopListeners", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stop all socket listeners", "docstring_tokens": ["Stop", "all", "socket", "listeners"], "sha": "5d59a6c9bc5f7220dc961ab796066eb257e59579", "url": "https://github.com/lomik/go-carbon/blob/5d59a6c9bc5f7220dc961ab796066eb257e59579/carbon/app.go#L180-L211", "partition": "valid"} +{"repo": "lomik/go-carbon", "path": "receiver/kafka/kafka.go", "func_name": "MarshalText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalText marshals offset. It's used to handle two special cases \"newest\" and \"oldest\".", "docstring_tokens": ["MarshalText", "marshals", "offset", ".", "It", "s", "used", "to", "handle", "two", "special", "cases", "newest", "and", "oldest", "."], "sha": "5d59a6c9bc5f7220dc961ab796066eb257e59579", "url": "https://github.com/lomik/go-carbon/blob/5d59a6c9bc5f7220dc961ab796066eb257e59579/receiver/kafka/kafka.go#L39-L47", "partition": "valid"} +{"repo": "lomik/go-carbon", "path": "receiver/kafka/kafka.go", "func_name": "UnmarshalText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalText unmarshals text to offset. It handles \"newest\" and \"oldest\", oterwise fallbacks to time.ParseDuration.", "docstring_tokens": ["UnmarshalText", "unmarshals", "text", "to", "offset", ".", "It", "handles", "newest", "and", "oldest", "oterwise", "fallbacks", "to", "time", ".", "ParseDuration", "."], "sha": "5d59a6c9bc5f7220dc961ab796066eb257e59579", "url": "https://github.com/lomik/go-carbon/blob/5d59a6c9bc5f7220dc961ab796066eb257e59579/receiver/kafka/kafka.go#L50-L66", "partition": "valid"} +{"repo": "lomik/go-carbon", "path": "receiver/kafka/kafka.go", "func_name": "MarshalText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalText converts internal enum-like representation of protocol to a text", "docstring_tokens": ["MarshalText", "converts", "internal", "enum", "-", "like", "representation", "of", "protocol", "to", "a", "text"], "sha": "5d59a6c9bc5f7220dc961ab796066eb257e59579", "url": "https://github.com/lomik/go-carbon/blob/5d59a6c9bc5f7220dc961ab796066eb257e59579/receiver/kafka/kafka.go#L74-L84", "partition": "valid"} +{"repo": "lomik/go-carbon", "path": "receiver/kafka/kafka.go", "func_name": "UnmarshalText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalText converts text from config file to a enum.", "docstring_tokens": ["UnmarshalText", "converts", "text", "from", "config", "file", "to", "a", "enum", "."], "sha": "5d59a6c9bc5f7220dc961ab796066eb257e59579", "url": "https://github.com/lomik/go-carbon/blob/5d59a6c9bc5f7220dc961ab796066eb257e59579/receiver/kafka/kafka.go#L87-L101", "partition": "valid"} +{"repo": "lomik/go-carbon", "path": "receiver/kafka/kafka.go", "func_name": "UnmarshalText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalText from TOML", "docstring_tokens": ["UnmarshalText", "from", "TOML"], "sha": "5d59a6c9bc5f7220dc961ab796066eb257e59579", "url": "https://github.com/lomik/go-carbon/blob/5d59a6c9bc5f7220dc961ab796066eb257e59579/receiver/kafka/kafka.go#L138-L142", "partition": "valid"} +{"repo": "lomik/go-carbon", "path": "receiver/kafka/kafka.go", "func_name": "NewOptions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewOptions returns Options struct filled with default values.", "docstring_tokens": ["NewOptions", "returns", "Options", "struct", "filled", "with", "default", "values", "."], "sha": "5d59a6c9bc5f7220dc961ab796066eb257e59579", "url": "https://github.com/lomik/go-carbon/blob/5d59a6c9bc5f7220dc961ab796066eb257e59579/receiver/kafka/kafka.go#L164-L176", "partition": "valid"} +{"repo": "lomik/go-carbon", "path": "receiver/kafka/kafka.go", "func_name": "Stat", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stat sends kafka receiver's internal stats to specified callback", "docstring_tokens": ["Stat", "sends", "kafka", "receiver", "s", "internal", "stats", "to", "specified", "callback"], "sha": "5d59a6c9bc5f7220dc961ab796066eb257e59579", "url": "https://github.com/lomik/go-carbon/blob/5d59a6c9bc5f7220dc961ab796066eb257e59579/receiver/kafka/kafka.go#L406-L417", "partition": "valid"} +{"repo": "lomik/go-carbon", "path": "cache/cache.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Creates a new cache instance", "docstring_tokens": ["Creates", "a", "new", "cache", "instance"], "sha": "5d59a6c9bc5f7220dc961ab796066eb257e59579", "url": "https://github.com/lomik/go-carbon/blob/5d59a6c9bc5f7220dc961ab796066eb257e59579/cache/cache.go#L69-L92", "partition": "valid"} +{"repo": "lomik/go-carbon", "path": "cache/cache.go", "func_name": "SetMaxSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetMaxSize of cache", "docstring_tokens": ["SetMaxSize", "of", "cache"], "sha": "5d59a6c9bc5f7220dc961ab796066eb257e59579", "url": "https://github.com/lomik/go-carbon/blob/5d59a6c9bc5f7220dc961ab796066eb257e59579/cache/cache.go#L113-L118", "partition": "valid"} +{"repo": "lomik/go-carbon", "path": "cache/cache.go", "func_name": "GetShard", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetShard returns shard under given key", "docstring_tokens": ["GetShard", "returns", "shard", "under", "given", "key"], "sha": "5d59a6c9bc5f7220dc961ab796066eb257e59579", "url": "https://github.com/lomik/go-carbon/blob/5d59a6c9bc5f7220dc961ab796066eb257e59579/cache/cache.go#L159-L162", "partition": "valid"} +{"repo": "lomik/go-carbon", "path": "cache/cache.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sets the given value under the specified key.", "docstring_tokens": ["Sets", "the", "given", "value", "under", "the", "specified", "key", "."], "sha": "5d59a6c9bc5f7220dc961ab796066eb257e59579", "url": "https://github.com/lomik/go-carbon/blob/5d59a6c9bc5f7220dc961ab796066eb257e59579/cache/cache.go#L234-L270", "partition": "valid"} +{"repo": "lomik/go-carbon", "path": "cache/cache.go", "func_name": "Pop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Pop removes an element from the map and returns it", "docstring_tokens": ["Pop", "removes", "an", "element", "from", "the", "map", "and", "returns", "it"], "sha": "5d59a6c9bc5f7220dc961ab796066eb257e59579", "url": "https://github.com/lomik/go-carbon/blob/5d59a6c9bc5f7220dc961ab796066eb257e59579/cache/cache.go#L273-L286", "partition": "valid"} +{"repo": "lomik/go-carbon", "path": "cache/carbonlink.go", "func_name": "ParseCarbonlinkRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseCarbonlinkRequest from pickle encoded data", "docstring_tokens": ["ParseCarbonlinkRequest", "from", "pickle", "encoded", "data"], "sha": "5d59a6c9bc5f7220dc961ab796066eb257e59579", "url": "https://github.com/lomik/go-carbon/blob/5d59a6c9bc5f7220dc961ab796066eb257e59579/cache/carbonlink.go#L78-L139", "partition": "valid"} +{"repo": "lomik/go-carbon", "path": "cache/carbonlink.go", "func_name": "NewCarbonlinkListener", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCarbonlinkListener create new instance of CarbonlinkListener", "docstring_tokens": ["NewCarbonlinkListener", "create", "new", "instance", "of", "CarbonlinkListener"], "sha": "5d59a6c9bc5f7220dc961ab796066eb257e59579", "url": "https://github.com/lomik/go-carbon/blob/5d59a6c9bc5f7220dc961ab796066eb257e59579/cache/carbonlink.go#L150-L155", "partition": "valid"} +{"repo": "lomik/go-carbon", "path": "points/points.go", "func_name": "OnePoint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OnePoint create Points instance with single point", "docstring_tokens": ["OnePoint", "create", "Points", "instance", "with", "single", "point"], "sha": "5d59a6c9bc5f7220dc961ab796066eb257e59579", "url": "https://github.com/lomik/go-carbon/blob/5d59a6c9bc5f7220dc961ab796066eb257e59579/points/points.go#L31-L41", "partition": "valid"} +{"repo": "lomik/go-carbon", "path": "points/points.go", "func_name": "NowPoint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NowPoint create OnePoint with now timestamp", "docstring_tokens": ["NowPoint", "create", "OnePoint", "with", "now", "timestamp"], "sha": "5d59a6c9bc5f7220dc961ab796066eb257e59579", "url": "https://github.com/lomik/go-carbon/blob/5d59a6c9bc5f7220dc961ab796066eb257e59579/points/points.go#L44-L46", "partition": "valid"} +{"repo": "lomik/go-carbon", "path": "points/points.go", "func_name": "Copy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Copy returns copy of object", "docstring_tokens": ["Copy", "returns", "copy", "of", "object"], "sha": "5d59a6c9bc5f7220dc961ab796066eb257e59579", "url": "https://github.com/lomik/go-carbon/blob/5d59a6c9bc5f7220dc961ab796066eb257e59579/points/points.go#L49-L54", "partition": "valid"} +{"repo": "lomik/go-carbon", "path": "points/points.go", "func_name": "ParseText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseText parse text protocol Point\n// host.Point.value 42 1422641531\\n", "docstring_tokens": ["ParseText", "parse", "text", "protocol", "Point", "host", ".", "Point", ".", "value", "42", "1422641531", "\\", "n"], "sha": "5d59a6c9bc5f7220dc961ab796066eb257e59579", "url": "https://github.com/lomik/go-carbon/blob/5d59a6c9bc5f7220dc961ab796066eb257e59579/points/points.go#L123-L159", "partition": "valid"} +{"repo": "lomik/go-carbon", "path": "points/points.go", "func_name": "Eq", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Eq points check", "docstring_tokens": ["Eq", "points", "check"], "sha": "5d59a6c9bc5f7220dc961ab796066eb257e59579", "url": "https://github.com/lomik/go-carbon/blob/5d59a6c9bc5f7220dc961ab796066eb257e59579/points/points.go#L177-L202", "partition": "valid"} +{"repo": "lomik/go-carbon", "path": "persister/whisper_schema.go", "func_name": "Match", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Match finds the schema for metric or returns false if none found", "docstring_tokens": ["Match", "finds", "the", "schema", "for", "metric", "or", "returns", "false", "if", "none", "found"], "sha": "5d59a6c9bc5f7220dc961ab796066eb257e59579", "url": "https://github.com/lomik/go-carbon/blob/5d59a6c9bc5f7220dc961ab796066eb257e59579/persister/whisper_schema.go#L34-L41", "partition": "valid"} +{"repo": "lomik/go-carbon", "path": "persister/whisper_schema.go", "func_name": "ParseRetentionDefs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseRetentionDefs parses retention definitions into a Retentions structure", "docstring_tokens": ["ParseRetentionDefs", "parses", "retention", "definitions", "into", "a", "Retentions", "structure"], "sha": "5d59a6c9bc5f7220dc961ab796066eb257e59579", "url": "https://github.com/lomik/go-carbon/blob/5d59a6c9bc5f7220dc961ab796066eb257e59579/persister/whisper_schema.go#L44-L71", "partition": "valid"} +{"repo": "lomik/go-carbon", "path": "carbon/grace.go", "func_name": "RestoreFromFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RestoreFromFile read and parse data from single file", "docstring_tokens": ["RestoreFromFile", "read", "and", "parse", "data", "from", "single", "file"], "sha": "5d59a6c9bc5f7220dc961ab796066eb257e59579", "url": "https://github.com/lomik/go-carbon/blob/5d59a6c9bc5f7220dc961ab796066eb257e59579/carbon/grace.go#L149-L169", "partition": "valid"} +{"repo": "lomik/go-carbon", "path": "carbon/grace.go", "func_name": "RestoreFromDir", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RestoreFromDir cache and input dumps from disk to memory", "docstring_tokens": ["RestoreFromDir", "cache", "and", "input", "dumps", "from", "disk", "to", "memory"], "sha": "5d59a6c9bc5f7220dc961ab796066eb257e59579", "url": "https://github.com/lomik/go-carbon/blob/5d59a6c9bc5f7220dc961ab796066eb257e59579/carbon/grace.go#L172-L239", "partition": "valid"} +{"repo": "lomik/go-carbon", "path": "carbon/grace.go", "func_name": "Restore", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Restore from dump.path", "docstring_tokens": ["Restore", "from", "dump", ".", "path"], "sha": "5d59a6c9bc5f7220dc961ab796066eb257e59579", "url": "https://github.com/lomik/go-carbon/blob/5d59a6c9bc5f7220dc961ab796066eb257e59579/carbon/grace.go#L242-L258", "partition": "valid"} +{"repo": "lomik/go-carbon", "path": "helper/qa/tmp_dir.go", "func_name": "Root", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Root creates new test directory", "docstring_tokens": ["Root", "creates", "new", "test", "directory"], "sha": "5d59a6c9bc5f7220dc961ab796066eb257e59579", "url": "https://github.com/lomik/go-carbon/blob/5d59a6c9bc5f7220dc961ab796066eb257e59579/helper/qa/tmp_dir.go#L10-L22", "partition": "valid"} +{"repo": "lomik/go-carbon", "path": "tags/queue.go", "func_name": "delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Remove key from queue", "docstring_tokens": ["Remove", "key", "from", "queue"], "sha": "5d59a6c9bc5f7220dc961ab796066eb257e59579", "url": "https://github.com/lomik/go-carbon/blob/5d59a6c9bc5f7220dc961ab796066eb257e59579/tags/queue.go#L249-L256", "partition": "valid"} +{"repo": "lomik/go-carbon", "path": "persister/whisper.go", "func_name": "NewWhisper", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewWhisper create instance of Whisper", "docstring_tokens": ["NewWhisper", "create", "instance", "of", "Whisper"], "sha": "5d59a6c9bc5f7220dc961ab796066eb257e59579", "url": "https://github.com/lomik/go-carbon/blob/5d59a6c9bc5f7220dc961ab796066eb257e59579/persister/whisper.go#L60-L80", "partition": "valid"} +{"repo": "lomik/go-carbon", "path": "persister/whisper_aggregation.go", "func_name": "NewWhisperAggregation", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewWhisperAggregation create instance of WhisperAggregation", "docstring_tokens": ["NewWhisperAggregation", "create", "instance", "of", "WhisperAggregation"], "sha": "5d59a6c9bc5f7220dc961ab796066eb257e59579", "url": "https://github.com/lomik/go-carbon/blob/5d59a6c9bc5f7220dc961ab796066eb257e59579/persister/whisper_aggregation.go#L30-L41", "partition": "valid"} +{"repo": "lomik/go-carbon", "path": "persister/whisper_aggregation.go", "func_name": "match", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Match find schema for metric", "docstring_tokens": ["Match", "find", "schema", "for", "metric"], "sha": "5d59a6c9bc5f7220dc961ab796066eb257e59579", "url": "https://github.com/lomik/go-carbon/blob/5d59a6c9bc5f7220dc961ab796066eb257e59579/persister/whisper_aggregation.go#L94-L101", "partition": "valid"} +{"repo": "lomik/go-carbon", "path": "receiver/parse/plain.go", "func_name": "oldPlain", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// old version. for benchmarks only", "docstring_tokens": ["old", "version", ".", "for", "benchmarks", "only"], "sha": "5d59a6c9bc5f7220dc961ab796066eb257e59579", "url": "https://github.com/lomik/go-carbon/blob/5d59a6c9bc5f7220dc961ab796066eb257e59579/receiver/parse/plain.go#L80-L110", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "integrations.go", "func_name": "UpdateIntegrationPD", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateIntegrationPD updates the PagerDuty Integration.\n// This will replace the existing values with the new values.", "docstring_tokens": ["UpdateIntegrationPD", "updates", "the", "PagerDuty", "Integration", ".", "This", "will", "replace", "the", "existing", "values", "with", "the", "new", "values", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/integrations.go#L52-L54", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "integrations.go", "func_name": "GetIntegrationPD", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetIntegrationPD gets all the PagerDuty Integrations from the system.", "docstring_tokens": ["GetIntegrationPD", "gets", "all", "the", "PagerDuty", "Integrations", "from", "the", "system", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/integrations.go#L57-L64", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "integrations.go", "func_name": "CreateIntegrationSlack", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateIntegrationSlack creates new Slack Integrations.\n// Use this if you want to setup the integration for the first time\n// or to add more channels.", "docstring_tokens": ["CreateIntegrationSlack", "creates", "new", "Slack", "Integrations", ".", "Use", "this", "if", "you", "want", "to", "setup", "the", "integration", "for", "the", "first", "time", "or", "to", "add", "more", "channels", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/integrations.go#L99-L101", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "integrations.go", "func_name": "UpdateIntegrationSlack", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateIntegrationSlack updates the Slack Integration.\n// This will replace the existing values with the new values.", "docstring_tokens": ["UpdateIntegrationSlack", "updates", "the", "Slack", "Integration", ".", "This", "will", "replace", "the", "existing", "values", "with", "the", "new", "values", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/integrations.go#L105-L107", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "integrations.go", "func_name": "GetIntegrationSlack", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetIntegrationSlack gets all the Slack Integrations from the system.", "docstring_tokens": ["GetIntegrationSlack", "gets", "all", "the", "Slack", "Integrations", "from", "the", "system", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/integrations.go#L110-L117", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "integrations.go", "func_name": "CreateIntegrationAWS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateIntegrationAWS adds a new AWS Account in the AWS Integrations.\n// Use this if you want to setup the integration for the first time\n// or to add more accounts.", "docstring_tokens": ["CreateIntegrationAWS", "adds", "a", "new", "AWS", "Account", "in", "the", "AWS", "Integrations", ".", "Use", "this", "if", "you", "want", "to", "setup", "the", "integration", "for", "the", "first", "time", "or", "to", "add", "more", "accounts", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/integrations.go#L156-L163", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "integrations.go", "func_name": "GetIntegrationAWS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetIntegrationAWS gets all the AWS Accounts in the AWS Integrations from Datadog.", "docstring_tokens": ["GetIntegrationAWS", "gets", "all", "the", "AWS", "Accounts", "in", "the", "AWS", "Integrations", "from", "Datadog", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/integrations.go#L166-L173", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "integrations.go", "func_name": "DeleteIntegrationAWS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteIntegrationAWS removes a specific AWS Account from the AWS Integration.", "docstring_tokens": ["DeleteIntegrationAWS", "removes", "a", "specific", "AWS", "Account", "from", "the", "AWS", "Integration", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/integrations.go#L176-L178", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "integrations.go", "func_name": "ListIntegrationGCP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListIntegrationGCP gets all Google Cloud Platform Integrations.", "docstring_tokens": ["ListIntegrationGCP", "gets", "all", "Google", "Cloud", "Platform", "Integrations", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/integrations.go#L220-L226", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "integrations.go", "func_name": "CreateIntegrationGCP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateIntegrationGCP creates a new Google Cloud Platform Integration.", "docstring_tokens": ["CreateIntegrationGCP", "creates", "a", "new", "Google", "Cloud", "Platform", "Integration", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/integrations.go#L229-L231", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "integrations.go", "func_name": "UpdateIntegrationGCP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateIntegrationGCP updates a Google Cloud Platform Integration.", "docstring_tokens": ["UpdateIntegrationGCP", "updates", "a", "Google", "Cloud", "Platform", "Integration", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/integrations.go#L234-L236", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "integrations.go", "func_name": "DeleteIntegrationGCP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteIntegrationGCP deletes a Google Cloud Platform Integration.", "docstring_tokens": ["DeleteIntegrationGCP", "deletes", "a", "Google", "Cloud", "Platform", "Integration", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/integrations.go#L239-L241", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "dashboard_lists.go", "func_name": "GetDashboardList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDashboardList returns a single dashboard list created on this account.", "docstring_tokens": ["GetDashboardList", "returns", "a", "single", "dashboard", "list", "created", "on", "this", "account", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/dashboard_lists.go#L57-L63", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "dashboard_lists.go", "func_name": "GetDashboardLists", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDashboardLists returns a list of all dashboard lists created on this account.", "docstring_tokens": ["GetDashboardLists", "returns", "a", "list", "of", "all", "dashboard", "lists", "created", "on", "this", "account", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/dashboard_lists.go#L66-L72", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "dashboard_lists.go", "func_name": "CreateDashboardList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateDashboardList returns a single dashboard list created on this account.", "docstring_tokens": ["CreateDashboardList", "returns", "a", "single", "dashboard", "list", "created", "on", "this", "account", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/dashboard_lists.go#L75-L81", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "dashboard_lists.go", "func_name": "UpdateDashboardList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateDashboardList returns a single dashboard list created on this account.", "docstring_tokens": ["UpdateDashboardList", "returns", "a", "single", "dashboard", "list", "created", "on", "this", "account", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/dashboard_lists.go#L84-L87", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "dashboard_lists.go", "func_name": "GetDashboardListItems", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDashboardListItems fetches the dashboard list's dashboard definitions.", "docstring_tokens": ["GetDashboardListItems", "fetches", "the", "dashboard", "list", "s", "dashboard", "definitions", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/dashboard_lists.go#L95-L101", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "snapshot.go", "func_name": "Snapshot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Snapshot creates an image from a graph and returns the URL of the image.", "docstring_tokens": ["Snapshot", "creates", "an", "image", "from", "a", "graph", "and", "returns", "the", "URL", "of", "the", "image", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/snapshot.go#L28-L32", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "search.go", "func_name": "SearchHosts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SearchHosts searches through the hosts facet, returning matching hostnames.", "docstring_tokens": ["SearchHosts", "searches", "through", "the", "hosts", "facet", "returning", "matching", "hostnames", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/search.go#L20-L26", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "search.go", "func_name": "SearchMetrics", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SearchMetrics searches through the metrics facet, returning matching ones.", "docstring_tokens": ["SearchMetrics", "searches", "through", "the", "metrics", "facet", "returning", "matching", "ones", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/search.go#L29-L35", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "alerts.go", "func_name": "CreateAlert", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateAlert adds a new alert to the system. This returns a pointer to an\n// Alert so you can pass that to UpdateAlert later if needed.", "docstring_tokens": ["CreateAlert", "adds", "a", "new", "alert", "to", "the", "system", ".", "This", "returns", "a", "pointer", "to", "an", "Alert", "so", "you", "can", "pass", "that", "to", "UpdateAlert", "later", "if", "needed", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/alerts.go#L35-L41", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "alerts.go", "func_name": "UpdateAlert", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateAlert takes an alert that was previously retrieved through some method\n// and sends it back to the server.", "docstring_tokens": ["UpdateAlert", "takes", "an", "alert", "that", "was", "previously", "retrieved", "through", "some", "method", "and", "sends", "it", "back", "to", "the", "server", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/alerts.go#L45-L48", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "alerts.go", "func_name": "GetAlert", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAlert retrieves an alert by identifier.", "docstring_tokens": ["GetAlert", "retrieves", "an", "alert", "by", "identifier", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/alerts.go#L51-L57", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "alerts.go", "func_name": "GetAlerts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAlerts returns a slice of all alerts.", "docstring_tokens": ["GetAlerts", "returns", "a", "slice", "of", "all", "alerts", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/alerts.go#L66-L72", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "comments.go", "func_name": "CreateComment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateComment adds a new comment to the system.", "docstring_tokens": ["CreateComment", "adds", "a", "new", "comment", "to", "the", "system", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/comments.go#L31-L41", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "comments.go", "func_name": "CreateRelatedComment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateRelatedComment adds a new comment, but lets you specify the related\n// identifier for the comment.", "docstring_tokens": ["CreateRelatedComment", "adds", "a", "new", "comment", "but", "lets", "you", "specify", "the", "related", "identifier", "for", "the", "comment", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/comments.go#L45-L56", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "comments.go", "func_name": "EditComment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EditComment changes the message and possibly handle of a particular comment.", "docstring_tokens": ["EditComment", "changes", "the", "message", "and", "possibly", "handle", "of", "a", "particular", "comment", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/comments.go#L59-L66", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "monitors.go", "func_name": "CreateMonitor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateMonitor adds a new monitor to the system. This returns a pointer to a\n// monitor so you can pass that to UpdateMonitor later if needed", "docstring_tokens": ["CreateMonitor", "adds", "a", "new", "monitor", "to", "the", "system", ".", "This", "returns", "a", "pointer", "to", "a", "monitor", "so", "you", "can", "pass", "that", "to", "UpdateMonitor", "later", "if", "needed"], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/monitors.go#L147-L154", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "monitors.go", "func_name": "UpdateMonitor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateMonitor takes a monitor that was previously retrieved through some method\n// and sends it back to the server", "docstring_tokens": ["UpdateMonitor", "takes", "a", "monitor", "that", "was", "previously", "retrieved", "through", "some", "method", "and", "sends", "it", "back", "to", "the", "server"], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/monitors.go#L158-L161", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "monitors.go", "func_name": "GetMonitor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMonitor retrieves a monitor by identifier", "docstring_tokens": ["GetMonitor", "retrieves", "a", "monitor", "by", "identifier"], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/monitors.go#L164-L170", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "monitors.go", "func_name": "GetMonitorsByName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMonitorsByName retrieves monitors by name", "docstring_tokens": ["GetMonitorsByName", "retrieves", "monitors", "by", "name"], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/monitors.go#L173-L185", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "monitors.go", "func_name": "GetMonitorsByTags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMonitorsByTags retrieves monitors by a slice of tags", "docstring_tokens": ["GetMonitorsByTags", "retrieves", "monitors", "by", "a", "slice", "of", "tags"], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/monitors.go#L188-L200", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "monitors.go", "func_name": "GetMonitors", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMonitors returns a slice of all monitors", "docstring_tokens": ["GetMonitors", "returns", "a", "slice", "of", "all", "monitors"], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/monitors.go#L209-L215", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "synthetics.go", "func_name": "GetSyntheticsLocations", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSyntheticsLocations get all test locations", "docstring_tokens": ["GetSyntheticsLocations", "get", "all", "test", "locations"], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/synthetics.go#L177-L185", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "helpers.go", "func_name": "GetBool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetBool is a helper routine that returns a boolean representing\n// if a value was set, and if so, dereferences the pointer to it.", "docstring_tokens": ["GetBool", "is", "a", "helper", "routine", "that", "returns", "a", "boolean", "representing", "if", "a", "value", "was", "set", "and", "if", "so", "dereferences", "the", "pointer", "to", "it", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/helpers.go#L23-L29", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "helpers.go", "func_name": "GetIntOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetIntOk is a helper routine that returns a boolean representing\n// if a value was set, and if so, dereferences the pointer to it.", "docstring_tokens": ["GetIntOk", "is", "a", "helper", "routine", "that", "returns", "a", "boolean", "representing", "if", "a", "value", "was", "set", "and", "if", "so", "dereferences", "the", "pointer", "to", "it", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/helpers.go#L37-L43", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "helpers.go", "func_name": "GetStringOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetStringOk is a helper routine that returns a boolean representing\n// if a value was set, and if so, dereferences the pointer to it.", "docstring_tokens": ["GetStringOk", "is", "a", "helper", "routine", "that", "returns", "a", "boolean", "representing", "if", "a", "value", "was", "set", "and", "if", "so", "dereferences", "the", "pointer", "to", "it", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/helpers.go#L51-L57", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "helpers.go", "func_name": "GetJsonNumberOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetJsonNumberOk is a helper routine that returns a boolean representing\n// if a value was set, and if so, dereferences the pointer to it.", "docstring_tokens": ["GetJsonNumberOk", "is", "a", "helper", "routine", "that", "returns", "a", "boolean", "representing", "if", "a", "value", "was", "set", "and", "if", "so", "dereferences", "the", "pointer", "to", "it", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/helpers.go#L65-L71", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "helpers.go", "func_name": "GetPrecision", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPrecision is a helper routine that returns a boolean representing\n// if a value was set, and if so, dereferences the pointer to it.", "docstring_tokens": ["GetPrecision", "is", "a", "helper", "routine", "that", "returns", "a", "boolean", "representing", "if", "a", "value", "was", "set", "and", "if", "so", "dereferences", "the", "pointer", "to", "it", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/helpers.go#L79-L85", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "helpers.go", "func_name": "GetStringId", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetStringId is a helper routine that allows screenboards and timeboards to be retrieved\n// by either the legacy numerical format or the new string format.\n// It returns the id as is if it is a string, converts it to a string if it is an integer.\n// It return an error if the type is neither string or an integer", "docstring_tokens": ["GetStringId", "is", "a", "helper", "routine", "that", "allows", "screenboards", "and", "timeboards", "to", "be", "retrieved", "by", "either", "the", "legacy", "numerical", "format", "or", "the", "new", "string", "format", ".", "It", "returns", "the", "id", "as", "is", "if", "it", "is", "a", "string", "converts", "it", "to", "a", "string", "if", "it", "is", "an", "integer", ".", "It", "return", "an", "error", "if", "the", "type", "is", "neither", "string", "or", "an", "integer"], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/helpers.go#L91-L100", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "dashboards.go", "func_name": "GetDashboard", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDashboard returns a single dashboard created on this account.", "docstring_tokens": ["GetDashboard", "returns", "a", "single", "dashboard", "created", "on", "this", "account", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/dashboards.go#L214-L226", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "dashboards.go", "func_name": "GetDashboards", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDashboards returns a list of all dashboards created on this account.", "docstring_tokens": ["GetDashboards", "returns", "a", "list", "of", "all", "dashboards", "created", "on", "this", "account", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/dashboards.go#L229-L235", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "dashboards.go", "func_name": "CreateDashboard", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateDashboard creates a new dashboard when given a Dashboard struct. Note\n// that the Id, Resource, Url and similar elements are not used in creation.", "docstring_tokens": ["CreateDashboard", "creates", "a", "new", "dashboard", "when", "given", "a", "Dashboard", "struct", ".", "Note", "that", "the", "Id", "Resource", "Url", "and", "similar", "elements", "are", "not", "used", "in", "creation", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/dashboards.go#L244-L250", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "dashboards.go", "func_name": "UpdateDashboard", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateDashboard in essence takes a Dashboard struct and persists it back to\n// the server. Use this if you've updated your local and need to push it back.", "docstring_tokens": ["UpdateDashboard", "in", "essence", "takes", "a", "Dashboard", "struct", "and", "persists", "it", "back", "to", "the", "server", ".", "Use", "this", "if", "you", "ve", "updated", "your", "local", "and", "need", "to", "push", "it", "back", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/dashboards.go#L254-L257", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "users.go", "func_name": "InviteUsers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InviteUsers takes a slice of email addresses and sends invitations to them.", "docstring_tokens": ["InviteUsers", "takes", "a", "slice", "of", "email", "addresses", "and", "sends", "invitations", "to", "them", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/users.go#L32-L35", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "users.go", "func_name": "CreateUser", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateUser creates an user account for an email address", "docstring_tokens": ["CreateUser", "creates", "an", "user", "account", "for", "an", "email", "address"], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/users.go#L38-L54", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "users.go", "func_name": "GetUsers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetUsers returns all user, or an error if not found", "docstring_tokens": ["GetUsers", "returns", "all", "user", "or", "an", "error", "if", "not", "found"], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/users.go#L62-L68", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "users.go", "func_name": "GetUser", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetUser returns the user that match a handle, or an error if not found", "docstring_tokens": ["GetUser", "returns", "the", "user", "that", "match", "a", "handle", "or", "an", "error", "if", "not", "found"], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/users.go#L76-L82", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "users.go", "func_name": "UpdateUser", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateUser updates a user with the content of `user`,\n// and returns an error if the update failed", "docstring_tokens": ["UpdateUser", "updates", "a", "user", "with", "the", "content", "of", "user", "and", "returns", "an", "error", "if", "the", "update", "failed"], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/users.go#L86-L89", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "users.go", "func_name": "DeleteUser", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteUser deletes a user and returns an error if deletion failed", "docstring_tokens": ["DeleteUser", "deletes", "a", "user", "and", "returns", "an", "error", "if", "deletion", "failed"], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/users.go#L92-L95", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "boards.go", "func_name": "GetBoard", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetBoard returns a single dashboard created on this account.", "docstring_tokens": ["GetBoard", "returns", "a", "single", "dashboard", "created", "on", "this", "account", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/boards.go#L33-L39", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "boards.go", "func_name": "DeleteBoard", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteBoard deletes a dashboard by the identifier.", "docstring_tokens": ["DeleteBoard", "deletes", "a", "dashboard", "by", "the", "identifier", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/boards.go#L42-L44", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "boards.go", "func_name": "CreateBoard", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateBoard creates a new dashboard when given a Board struct.", "docstring_tokens": ["CreateBoard", "creates", "a", "new", "dashboard", "when", "given", "a", "Board", "struct", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/boards.go#L47-L53", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "boards.go", "func_name": "UpdateBoard", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateBoard takes a Board struct and persists it back to the server.\n// Use this if you've updated your local and need to push it back.", "docstring_tokens": ["UpdateBoard", "takes", "a", "Board", "struct", "and", "persists", "it", "back", "to", "the", "server", ".", "Use", "this", "if", "you", "ve", "updated", "your", "local", "and", "need", "to", "push", "it", "back", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/boards.go#L57-L59", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "client.go", "func_name": "NewClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClient returns a new datadog.Client which can be used to access the API\n// methods. The expected argument is the API key.", "docstring_tokens": ["NewClient", "returns", "a", "new", "datadog", ".", "Client", "which", "can", "be", "used", "to", "access", "the", "API", "methods", ".", "The", "expected", "argument", "is", "the", "API", "key", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/client.go#L37-L50", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "client.go", "func_name": "SetKeys", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetKeys changes the value of apiKey and appKey.", "docstring_tokens": ["SetKeys", "changes", "the", "value", "of", "apiKey", "and", "appKey", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/client.go#L53-L56", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "client.go", "func_name": "Validate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Validate checks if the API and application keys are valid.", "docstring_tokens": ["Validate", "checks", "if", "the", "API", "and", "application", "keys", "are", "valid", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/client.go#L69-L100", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "hosts.go", "func_name": "MuteHost", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MuteHost mutes all monitors for the given host", "docstring_tokens": ["MuteHost", "mutes", "all", "monitors", "for", "the", "given", "host"], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/hosts.go#L16-L23", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "hosts.go", "func_name": "UnmuteHost", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmuteHost unmutes all monitors for the given host", "docstring_tokens": ["UnmuteHost", "unmutes", "all", "monitors", "for", "the", "given", "host"], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/hosts.go#L26-L33", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetSilenced", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSilenced returns the Silenced field if non-nil, zero value otherwise.", "docstring_tokens": ["GetSilenced", "returns", "the", "Silenced", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L204-L209", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetSilencedOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSilencedOk returns a tuple with the Silenced field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetSilencedOk", "returns", "a", "tuple", "with", "the", "Silenced", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L213-L218", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasSilenced", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasSilenced returns a boolean if a field has been set.", "docstring_tokens": ["HasSilenced", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L221-L227", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetState returns the State field if non-nil, zero value otherwise.", "docstring_tokens": ["GetState", "returns", "the", "State", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L235-L240", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetStateOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetStateOk", "returns", "a", "tuple", "with", "the", "State", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L244-L249", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasState returns a boolean if a field has been set.", "docstring_tokens": ["HasState", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L252-L258", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetAlertIdOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAlertIdOk returns a tuple with the AlertId field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetAlertIdOk", "returns", "a", "tuple", "with", "the", "AlertId", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L492-L497", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetKey returns the Key field if non-nil, zero value otherwise.", "docstring_tokens": ["GetKey", "returns", "the", "Key", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L793-L798", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetKeyOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetKeyOk", "returns", "a", "tuple", "with", "the", "Key", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L802-L807", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasKey returns a boolean if a field has been set.", "docstring_tokens": ["HasKey", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L810-L816", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetFacetOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetFacetOk returns a tuple with the Facet field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetFacetOk", "returns", "a", "tuple", "with", "the", "Facet", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L957-L962", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetOrder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetOrder returns the Order field if non-nil, zero value otherwise.", "docstring_tokens": ["GetOrder", "returns", "the", "Order", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L1103-L1108", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetOrderOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetOrderOk returns a tuple with the Order field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetOrderOk", "returns", "a", "tuple", "with", "the", "Order", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L1112-L1117", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasOrder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasOrder returns a boolean if a field has been set.", "docstring_tokens": ["HasOrder", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L1120-L1126", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetAuthorHandle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAuthorHandle returns the AuthorHandle field if non-nil, zero value otherwise.", "docstring_tokens": ["GetAuthorHandle", "returns", "the", "AuthorHandle", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L1165-L1170", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetAuthorHandleOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAuthorHandleOk returns a tuple with the AuthorHandle field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetAuthorHandleOk", "returns", "a", "tuple", "with", "the", "AuthorHandle", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L1174-L1179", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasAuthorHandle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasAuthorHandle returns a boolean if a field has been set.", "docstring_tokens": ["HasAuthorHandle", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L1182-L1188", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetIsReadOnly", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetIsReadOnly returns the IsReadOnly field if non-nil, zero value otherwise.", "docstring_tokens": ["GetIsReadOnly", "returns", "the", "IsReadOnly", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L1289-L1294", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetIsReadOnlyOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetIsReadOnlyOk returns a tuple with the IsReadOnly field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetIsReadOnlyOk", "returns", "a", "tuple", "with", "the", "IsReadOnly", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L1298-L1303", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasIsReadOnly", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasIsReadOnly returns a boolean if a field has been set.", "docstring_tokens": ["HasIsReadOnly", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L1306-L1312", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetLayout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLayout returns the Layout field if non-nil, zero value otherwise.", "docstring_tokens": ["GetLayout", "returns", "the", "Layout", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L1475-L1480", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetLayoutOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLayoutOk returns a tuple with the Layout field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetLayoutOk", "returns", "a", "tuple", "with", "the", "Layout", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L1484-L1489", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasLayout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasLayout returns a boolean if a field has been set.", "docstring_tokens": ["HasLayout", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L1492-L1498", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetShowPresent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetShowPresent returns the ShowPresent field if non-nil, zero value otherwise.", "docstring_tokens": ["GetShowPresent", "returns", "the", "ShowPresent", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L1940-L1945", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetShowPresentOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetShowPresentOk returns a tuple with the ShowPresent field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetShowPresentOk", "returns", "a", "tuple", "with", "the", "ShowPresent", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L1949-L1954", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasShowPresent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasShowPresent returns a boolean if a field has been set.", "docstring_tokens": ["HasShowPresent", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L1957-L1963", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetChannelName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetChannelName returns the ChannelName field if non-nil, zero value otherwise.", "docstring_tokens": ["GetChannelName", "returns", "the", "ChannelName", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L2002-L2007", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetChannelNameOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetChannelNameOk returns a tuple with the ChannelName field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetChannelNameOk", "returns", "a", "tuple", "with", "the", "ChannelName", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L2011-L2016", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasChannelName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasChannelName returns a boolean if a field has been set.", "docstring_tokens": ["HasChannelName", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L2019-L2025", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetTransferAllUserComments", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTransferAllUserComments returns the TransferAllUserComments field if non-nil, zero value otherwise.", "docstring_tokens": ["GetTransferAllUserComments", "returns", "the", "TransferAllUserComments", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L2033-L2038", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetTransferAllUserCommentsOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTransferAllUserCommentsOk returns a tuple with the TransferAllUserComments field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetTransferAllUserCommentsOk", "returns", "a", "tuple", "with", "the", "TransferAllUserComments", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L2042-L2047", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasTransferAllUserComments", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasTransferAllUserComments returns a boolean if a field has been set.", "docstring_tokens": ["HasTransferAllUserComments", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L2050-L2056", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetHostName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetHostName returns the HostName field if non-nil, zero value otherwise.", "docstring_tokens": ["GetHostName", "returns", "the", "HostName", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L2095-L2100", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetHostNameOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetHostNameOk returns a tuple with the HostName field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetHostNameOk", "returns", "a", "tuple", "with", "the", "HostName", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L2104-L2109", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasHostName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasHostName returns a boolean if a field has been set.", "docstring_tokens": ["HasHostName", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L2112-L2118", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetTimestamp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTimestamp returns the Timestamp field if non-nil, zero value otherwise.", "docstring_tokens": ["GetTimestamp", "returns", "the", "Timestamp", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L2188-L2193", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetTimestampOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetTimestampOk", "returns", "a", "tuple", "with", "the", "Timestamp", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L2197-L2202", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasTimestamp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasTimestamp returns a boolean if a field has been set.", "docstring_tokens": ["HasTimestamp", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L2205-L2211", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetRelatedId", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRelatedId returns the RelatedId field if non-nil, zero value otherwise.", "docstring_tokens": ["GetRelatedId", "returns", "the", "RelatedId", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L2560-L2565", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetRelatedIdOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRelatedIdOk returns a tuple with the RelatedId field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetRelatedIdOk", "returns", "a", "tuple", "with", "the", "RelatedId", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L2569-L2574", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasRelatedId", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasRelatedId returns a boolean if a field has been set.", "docstring_tokens": ["HasRelatedId", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L2577-L2583", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetImageURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetImageURL returns the ImageURL field if non-nil, zero value otherwise.", "docstring_tokens": ["GetImageURL", "returns", "the", "ImageURL", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L2715-L2720", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetImageURLOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetImageURLOk returns a tuple with the ImageURL field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetImageURLOk", "returns", "a", "tuple", "with", "the", "ImageURL", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L2724-L2729", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasImageURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasImageURL returns a boolean if a field has been set.", "docstring_tokens": ["HasImageURL", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L2732-L2738", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetInvert", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetInvert returns the Invert field if non-nil, zero value otherwise.", "docstring_tokens": ["GetInvert", "returns", "the", "Invert", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L2746-L2751", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetInvertOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetInvertOk returns a tuple with the Invert field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetInvertOk", "returns", "a", "tuple", "with", "the", "Invert", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L2755-L2760", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasInvert", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasInvert returns a boolean if a field has been set.", "docstring_tokens": ["HasInvert", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L2763-L2769", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetIcon", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetIcon returns the Icon field if non-nil, zero value otherwise.", "docstring_tokens": ["GetIcon", "returns", "the", "Icon", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L2963-L2968", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetIconOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetIconOk returns a tuple with the Icon field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetIconOk", "returns", "a", "tuple", "with", "the", "Icon", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L2972-L2977", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasIcon", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasIcon returns a boolean if a field has been set.", "docstring_tokens": ["HasIcon", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L2980-L2986", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetCustomImageUrl", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCustomImageUrl returns the CustomImageUrl field if non-nil, zero value otherwise.", "docstring_tokens": ["GetCustomImageUrl", "returns", "the", "CustomImageUrl", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L3490-L3495", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetCustomImageUrlOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCustomImageUrlOk returns a tuple with the CustomImageUrl field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetCustomImageUrlOk", "returns", "a", "tuple", "with", "the", "CustomImageUrl", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L3499-L3504", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasCustomImageUrl", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasCustomImageUrl returns a boolean if a field has been set.", "docstring_tokens": ["HasCustomImageUrl", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L3507-L3513", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetInverted", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetInverted returns the Inverted field if non-nil, zero value otherwise.", "docstring_tokens": ["GetInverted", "returns", "the", "Inverted", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L3521-L3526", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetInvertedOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetInvertedOk returns a tuple with the Inverted field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetInvertedOk", "returns", "a", "tuple", "with", "the", "Inverted", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L3530-L3535", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasInverted", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasInverted returns a boolean if a field has been set.", "docstring_tokens": ["HasInverted", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L3538-L3544", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetDashboardCount", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDashboardCount returns the DashboardCount field if non-nil, zero value otherwise.", "docstring_tokens": ["GetDashboardCount", "returns", "the", "DashboardCount", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L3614-L3619", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetDashboardCountOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDashboardCountOk returns a tuple with the DashboardCount field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetDashboardCountOk", "returns", "a", "tuple", "with", "the", "DashboardCount", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L3623-L3628", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasDashboardCount", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasDashboardCount returns a boolean if a field has been set.", "docstring_tokens": ["HasDashboardCount", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L3631-L3637", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetModified", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetModified returns the Modified field if non-nil, zero value otherwise.", "docstring_tokens": ["GetModified", "returns", "the", "Modified", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L3893-L3898", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetModifiedOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetModifiedOk", "returns", "a", "tuple", "with", "the", "Modified", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L3902-L3907", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasModified", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasModified returns a boolean if a field has been set.", "docstring_tokens": ["HasModified", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L3910-L3916", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetActive", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetActive returns the Active field if non-nil, zero value otherwise.", "docstring_tokens": ["GetActive", "returns", "the", "Active", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L4327-L4332", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetActiveOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetActiveOk returns a tuple with the Active field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetActiveOk", "returns", "a", "tuple", "with", "the", "Active", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L4336-L4341", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasActive", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasActive returns a boolean if a field has been set.", "docstring_tokens": ["HasActive", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L4344-L4350", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetCanceled", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCanceled returns the Canceled field if non-nil, zero value otherwise.", "docstring_tokens": ["GetCanceled", "returns", "the", "Canceled", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L4358-L4363", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetCanceledOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCanceledOk returns a tuple with the Canceled field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetCanceledOk", "returns", "a", "tuple", "with", "the", "Canceled", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L4367-L4372", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasCanceled", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasCanceled returns a boolean if a field has been set.", "docstring_tokens": ["HasCanceled", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L4375-L4381", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetMonitorId", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMonitorId returns the MonitorId field if non-nil, zero value otherwise.", "docstring_tokens": ["GetMonitorId", "returns", "the", "MonitorId", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L4513-L4518", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetMonitorIdOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMonitorIdOk returns a tuple with the MonitorId field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetMonitorIdOk", "returns", "a", "tuple", "with", "the", "MonitorId", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L4522-L4527", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasMonitorId", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasMonitorId returns a boolean if a field has been set.", "docstring_tokens": ["HasMonitorId", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L4530-L4536", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetParentId", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetParentId returns the ParentId field if non-nil, zero value otherwise.", "docstring_tokens": ["GetParentId", "returns", "the", "ParentId", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L4544-L4549", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetParentIdOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetParentIdOk returns a tuple with the ParentId field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetParentIdOk", "returns", "a", "tuple", "with", "the", "ParentId", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L4553-L4558", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasParentId", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasParentId returns a boolean if a field has been set.", "docstring_tokens": ["HasParentId", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L4561-L4567", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetRecurrence", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRecurrence returns the Recurrence field if non-nil, zero value otherwise.", "docstring_tokens": ["GetRecurrence", "returns", "the", "Recurrence", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L4575-L4580", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetRecurrenceOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRecurrenceOk returns a tuple with the Recurrence field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetRecurrenceOk", "returns", "a", "tuple", "with", "the", "Recurrence", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L4584-L4589", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasRecurrence", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasRecurrence returns a boolean if a field has been set.", "docstring_tokens": ["HasRecurrence", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L4592-L4598", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetTimezone", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTimezone returns the Timezone field if non-nil, zero value otherwise.", "docstring_tokens": ["GetTimezone", "returns", "the", "Timezone", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L4637-L4642", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetTimezoneOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTimezoneOk returns a tuple with the Timezone field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetTimezoneOk", "returns", "a", "tuple", "with", "the", "Timezone", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L4646-L4651", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasTimezone", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasTimezone returns a boolean if a field has been set.", "docstring_tokens": ["HasTimezone", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L4654-L4660", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetAlertType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAlertType returns the AlertType field if non-nil, zero value otherwise.", "docstring_tokens": ["GetAlertType", "returns", "the", "AlertType", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L4699-L4704", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetAlertTypeOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAlertTypeOk returns a tuple with the AlertType field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetAlertTypeOk", "returns", "a", "tuple", "with", "the", "AlertType", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L4708-L4713", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasAlertType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasAlertType returns a boolean if a field has been set.", "docstring_tokens": ["HasAlertType", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L4716-L4722", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetEventType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetEventType returns the EventType field if non-nil, zero value otherwise.", "docstring_tokens": ["GetEventType", "returns", "the", "EventType", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L4730-L4735", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetEventTypeOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetEventTypeOk returns a tuple with the EventType field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetEventTypeOk", "returns", "a", "tuple", "with", "the", "EventType", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L4739-L4744", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasEventType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasEventType returns a boolean if a field has been set.", "docstring_tokens": ["HasEventType", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L4747-L4753", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetPriority", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPriority returns the Priority field if non-nil, zero value otherwise.", "docstring_tokens": ["GetPriority", "returns", "the", "Priority", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L4823-L4828", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetPriorityOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetPriorityOk", "returns", "a", "tuple", "with", "the", "Priority", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L4832-L4837", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasPriority", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasPriority returns a boolean if a field has been set.", "docstring_tokens": ["HasPriority", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L4840-L4846", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetSourceType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSourceType returns the SourceType field if non-nil, zero value otherwise.", "docstring_tokens": ["GetSourceType", "returns", "the", "SourceType", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L4885-L4890", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetSourceTypeOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSourceTypeOk returns a tuple with the SourceType field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetSourceTypeOk", "returns", "a", "tuple", "with", "the", "SourceType", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L4894-L4899", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasSourceType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasSourceType returns a boolean if a field has been set.", "docstring_tokens": ["HasSourceType", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L4902-L4908", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetDefinition", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDefinition returns the Definition field if non-nil, zero value otherwise.", "docstring_tokens": ["GetDefinition", "returns", "the", "Definition", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L5598-L5603", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetDefinitionOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDefinitionOk returns a tuple with the Definition field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetDefinitionOk", "returns", "a", "tuple", "with", "the", "Definition", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L5607-L5612", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasDefinition", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasDefinition returns a boolean if a field has been set.", "docstring_tokens": ["HasDefinition", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L5615-L5621", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetIncludeNoMetricHosts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetIncludeNoMetricHosts returns the IncludeNoMetricHosts field if non-nil, zero value otherwise.", "docstring_tokens": ["GetIncludeNoMetricHosts", "returns", "the", "IncludeNoMetricHosts", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L5722-L5727", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetIncludeNoMetricHostsOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetIncludeNoMetricHostsOk returns a tuple with the IncludeNoMetricHosts field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetIncludeNoMetricHostsOk", "returns", "a", "tuple", "with", "the", "IncludeNoMetricHosts", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L5731-L5736", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasIncludeNoMetricHosts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasIncludeNoMetricHosts returns a boolean if a field has been set.", "docstring_tokens": ["HasIncludeNoMetricHosts", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L5739-L5745", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetIncludeUngroupedHosts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetIncludeUngroupedHosts returns the IncludeUngroupedHosts field if non-nil, zero value otherwise.", "docstring_tokens": ["GetIncludeUngroupedHosts", "returns", "the", "IncludeUngroupedHosts", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L5753-L5758", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetIncludeUngroupedHostsOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetIncludeUngroupedHostsOk returns a tuple with the IncludeUngroupedHosts field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetIncludeUngroupedHostsOk", "returns", "a", "tuple", "with", "the", "IncludeUngroupedHosts", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L5762-L5767", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasIncludeUngroupedHosts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasIncludeUngroupedHosts returns a boolean if a field has been set.", "docstring_tokens": ["HasIncludeUngroupedHosts", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L5770-L5776", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetVal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetVal returns the Val field if non-nil, zero value otherwise.", "docstring_tokens": ["GetVal", "returns", "the", "Val", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L6063-L6068", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetValOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetValOk returns a tuple with the Val field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetValOk", "returns", "a", "tuple", "with", "the", "Val", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L6072-L6077", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasVal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasVal returns a boolean if a field has been set.", "docstring_tokens": ["HasVal", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L6080-L6086", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetOrderDirection", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetOrderDirection returns the OrderDirection field if non-nil, zero value otherwise.", "docstring_tokens": ["GetOrderDirection", "returns", "the", "OrderDirection", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L6311-L6316", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetOrderDirectionOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetOrderDirectionOk returns a tuple with the OrderDirection field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetOrderDirectionOk", "returns", "a", "tuple", "with", "the", "OrderDirection", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L6320-L6325", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasOrderDirection", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasOrderDirection returns a boolean if a field has been set.", "docstring_tokens": ["HasOrderDirection", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L6328-L6334", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetStacked", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetStacked returns the Stacked field if non-nil, zero value otherwise.", "docstring_tokens": ["GetStacked", "returns", "the", "Stacked", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L6373-L6378", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetStackedOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetStackedOk returns a tuple with the Stacked field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetStackedOk", "returns", "a", "tuple", "with", "the", "Stacked", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L6382-L6387", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasStacked", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasStacked returns a boolean if a field has been set.", "docstring_tokens": ["HasStacked", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L6390-L6396", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetLastNoDataTs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLastNoDataTs returns the LastNoDataTs field if non-nil, zero value otherwise.", "docstring_tokens": ["GetLastNoDataTs", "returns", "the", "LastNoDataTs", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L6590-L6595", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetLastNoDataTsOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLastNoDataTsOk returns a tuple with the LastNoDataTs field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetLastNoDataTsOk", "returns", "a", "tuple", "with", "the", "LastNoDataTs", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L6599-L6604", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasLastNoDataTs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasLastNoDataTs returns a boolean if a field has been set.", "docstring_tokens": ["HasLastNoDataTs", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L6607-L6613", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetLastNotifiedTs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLastNotifiedTs returns the LastNotifiedTs field if non-nil, zero value otherwise.", "docstring_tokens": ["GetLastNotifiedTs", "returns", "the", "LastNotifiedTs", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L6621-L6626", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetLastNotifiedTsOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLastNotifiedTsOk returns a tuple with the LastNotifiedTs field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetLastNotifiedTsOk", "returns", "a", "tuple", "with", "the", "LastNotifiedTs", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L6630-L6635", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasLastNotifiedTs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasLastNotifiedTs returns a boolean if a field has been set.", "docstring_tokens": ["HasLastNotifiedTs", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L6638-L6644", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetLastResolvedTs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLastResolvedTs returns the LastResolvedTs field if non-nil, zero value otherwise.", "docstring_tokens": ["GetLastResolvedTs", "returns", "the", "LastResolvedTs", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L6652-L6657", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetLastResolvedTsOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLastResolvedTsOk returns a tuple with the LastResolvedTs field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetLastResolvedTsOk", "returns", "a", "tuple", "with", "the", "LastResolvedTs", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L6661-L6666", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasLastResolvedTs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasLastResolvedTs returns a boolean if a field has been set.", "docstring_tokens": ["HasLastResolvedTs", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L6669-L6675", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetLastTriggeredTs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLastTriggeredTs returns the LastTriggeredTs field if non-nil, zero value otherwise.", "docstring_tokens": ["GetLastTriggeredTs", "returns", "the", "LastTriggeredTs", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L6683-L6688", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetLastTriggeredTsOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLastTriggeredTsOk returns a tuple with the LastTriggeredTs field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetLastTriggeredTsOk", "returns", "a", "tuple", "with", "the", "LastTriggeredTs", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L6692-L6697", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasLastTriggeredTs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasLastTriggeredTs returns a boolean if a field has been set.", "docstring_tokens": ["HasLastTriggeredTs", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L6700-L6706", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetTriggeringValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTriggeringValue returns the TriggeringValue field if non-nil, zero value otherwise.", "docstring_tokens": ["GetTriggeringValue", "returns", "the", "TriggeringValue", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L6776-L6781", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetTriggeringValueOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTriggeringValueOk returns a tuple with the TriggeringValue field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetTriggeringValueOk", "returns", "a", "tuple", "with", "the", "TriggeringValue", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L6785-L6790", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasTriggeringValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasTriggeringValue returns a boolean if a field has been set.", "docstring_tokens": ["HasTriggeringValue", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L6793-L6799", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetEndTime", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetEndTime returns the EndTime field if non-nil, zero value otherwise.", "docstring_tokens": ["GetEndTime", "returns", "the", "EndTime", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L7241-L7246", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetEndTimeOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetEndTimeOk returns a tuple with the EndTime field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetEndTimeOk", "returns", "a", "tuple", "with", "the", "EndTime", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L7250-L7255", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasEndTime", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasEndTime returns a boolean if a field has been set.", "docstring_tokens": ["HasEndTime", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L7258-L7264", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetOverride", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetOverride returns the Override field if non-nil, zero value otherwise.", "docstring_tokens": ["GetOverride", "returns", "the", "Override", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L7303-L7308", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetOverrideOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetOverrideOk returns a tuple with the Override field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetOverrideOk", "returns", "a", "tuple", "with", "the", "Override", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L7312-L7317", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasOverride", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasOverride returns a boolean if a field has been set.", "docstring_tokens": ["HasOverride", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L7320-L7326", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetFill", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetFill returns the Fill field if non-nil, zero value otherwise.", "docstring_tokens": ["GetFill", "returns", "the", "Fill", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L7737-L7742", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetFillOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetFillOk returns a tuple with the Fill field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetFillOk", "returns", "a", "tuple", "with", "the", "Fill", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L7746-L7751", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasFill", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasFill returns a boolean if a field has been set.", "docstring_tokens": ["HasFill", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L7754-L7760", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSize returns the Size field if non-nil, zero value otherwise.", "docstring_tokens": ["GetSize", "returns", "the", "Size", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L7768-L7773", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetSizeOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetSizeOk", "returns", "a", "tuple", "with", "the", "Size", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L7777-L7782", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasSize returns a boolean if a field has been set.", "docstring_tokens": ["HasSize", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L7785-L7791", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetRoleNameOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRoleNameOk returns a tuple with the RoleName field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetRoleNameOk", "returns", "a", "tuple", "with", "the", "RoleName", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L8149-L8154", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetAccountIDOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAccountIDOk returns a tuple with the AccountID field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetAccountIDOk", "returns", "a", "tuple", "with", "the", "AccountID", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L8180-L8185", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetAuthProviderX509CertURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAuthProviderX509CertURL returns the AuthProviderX509CertURL field if non-nil, zero value otherwise.", "docstring_tokens": ["GetAuthProviderX509CertURL", "returns", "the", "AuthProviderX509CertURL", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L8326-L8331", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetAuthProviderX509CertURLOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAuthProviderX509CertURLOk returns a tuple with the AuthProviderX509CertURL field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetAuthProviderX509CertURLOk", "returns", "a", "tuple", "with", "the", "AuthProviderX509CertURL", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L8335-L8340", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasAuthProviderX509CertURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasAuthProviderX509CertURL returns a boolean if a field has been set.", "docstring_tokens": ["HasAuthProviderX509CertURL", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L8343-L8349", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetAuthURI", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAuthURI returns the AuthURI field if non-nil, zero value otherwise.", "docstring_tokens": ["GetAuthURI", "returns", "the", "AuthURI", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L8357-L8362", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetAuthURIOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAuthURIOk returns a tuple with the AuthURI field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetAuthURIOk", "returns", "a", "tuple", "with", "the", "AuthURI", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L8366-L8371", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasAuthURI", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasAuthURI returns a boolean if a field has been set.", "docstring_tokens": ["HasAuthURI", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L8374-L8380", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetClientID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetClientID returns the ClientID field if non-nil, zero value otherwise.", "docstring_tokens": ["GetClientID", "returns", "the", "ClientID", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L8419-L8424", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetClientIDOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetClientIDOk returns a tuple with the ClientID field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetClientIDOk", "returns", "a", "tuple", "with", "the", "ClientID", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L8428-L8433", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasClientID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasClientID returns a boolean if a field has been set.", "docstring_tokens": ["HasClientID", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L8436-L8442", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetClientX509CertURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetClientX509CertURL returns the ClientX509CertURL field if non-nil, zero value otherwise.", "docstring_tokens": ["GetClientX509CertURL", "returns", "the", "ClientX509CertURL", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L8450-L8455", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetClientX509CertURLOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetClientX509CertURLOk returns a tuple with the ClientX509CertURL field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetClientX509CertURLOk", "returns", "a", "tuple", "with", "the", "ClientX509CertURL", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L8459-L8464", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasClientX509CertURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasClientX509CertURL returns a boolean if a field has been set.", "docstring_tokens": ["HasClientX509CertURL", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L8467-L8473", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetHostFiltersOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetHostFiltersOk returns a tuple with the HostFilters field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetHostFiltersOk", "returns", "a", "tuple", "with", "the", "HostFilters", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L8490-L8495", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetPrivateKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPrivateKey returns the PrivateKey field if non-nil, zero value otherwise.", "docstring_tokens": ["GetPrivateKey", "returns", "the", "PrivateKey", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L8512-L8517", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetPrivateKeyOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPrivateKeyOk returns a tuple with the PrivateKey field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetPrivateKeyOk", "returns", "a", "tuple", "with", "the", "PrivateKey", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L8521-L8526", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasPrivateKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasPrivateKey returns a boolean if a field has been set.", "docstring_tokens": ["HasPrivateKey", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L8529-L8535", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetPrivateKeyID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPrivateKeyID returns the PrivateKeyID field if non-nil, zero value otherwise.", "docstring_tokens": ["GetPrivateKeyID", "returns", "the", "PrivateKeyID", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L8543-L8548", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetPrivateKeyIDOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPrivateKeyIDOk returns a tuple with the PrivateKeyID field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetPrivateKeyIDOk", "returns", "a", "tuple", "with", "the", "PrivateKeyID", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L8552-L8557", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasPrivateKeyID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasPrivateKeyID returns a boolean if a field has been set.", "docstring_tokens": ["HasPrivateKeyID", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L8560-L8566", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetTokenURI", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTokenURI returns the TokenURI field if non-nil, zero value otherwise.", "docstring_tokens": ["GetTokenURI", "returns", "the", "TokenURI", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L8605-L8610", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetTokenURIOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTokenURIOk returns a tuple with the TokenURI field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetTokenURIOk", "returns", "a", "tuple", "with", "the", "TokenURI", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L8614-L8619", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasTokenURI", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasTokenURI returns a boolean if a field has been set.", "docstring_tokens": ["HasTokenURI", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L8622-L8628", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetClientEmailOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetClientEmailOk returns a tuple with the ClientEmail field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetClientEmailOk", "returns", "a", "tuple", "with", "the", "ClientEmail", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L8676-L8681", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetProjectIDOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetProjectIDOk returns a tuple with the ProjectID field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetProjectIDOk", "returns", "a", "tuple", "with", "the", "ProjectID", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L8800-L8805", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetAPITokenOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAPITokenOk returns a tuple with the APIToken field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetAPITokenOk", "returns", "a", "tuple", "with", "the", "APIToken", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L8831-L8836", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetSubdomainOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSubdomainOk returns a tuple with the Subdomain field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetSubdomainOk", "returns", "a", "tuple", "with", "the", "Subdomain", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L8862-L8867", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetID returns the ID field if non-nil, zero value otherwise.", "docstring_tokens": ["GetID", "returns", "the", "ID", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L9008-L9013", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetIDOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetIDOk returns a tuple with the ID field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetIDOk", "returns", "a", "tuple", "with", "the", "ID", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L9017-L9022", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasID returns a boolean if a field has been set.", "docstring_tokens": ["HasID", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L9025-L9031", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetPerUnit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPerUnit returns the PerUnit field if non-nil, zero value otherwise.", "docstring_tokens": ["GetPerUnit", "returns", "the", "PerUnit", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L9783-L9788", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetPerUnitOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPerUnitOk returns a tuple with the PerUnit field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetPerUnitOk", "returns", "a", "tuple", "with", "the", "PerUnit", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L9792-L9797", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasPerUnit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasPerUnit returns a boolean if a field has been set.", "docstring_tokens": ["HasPerUnit", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L9800-L9806", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetShortName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetShortName returns the ShortName field if non-nil, zero value otherwise.", "docstring_tokens": ["GetShortName", "returns", "the", "ShortName", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L9814-L9819", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetShortNameOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetShortNameOk returns a tuple with the ShortName field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetShortNameOk", "returns", "a", "tuple", "with", "the", "ShortName", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L9823-L9828", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasShortName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasShortName returns a boolean if a field has been set.", "docstring_tokens": ["HasShortName", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L9831-L9837", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetStatsdInterval", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetStatsdInterval returns the StatsdInterval field if non-nil, zero value otherwise.", "docstring_tokens": ["GetStatsdInterval", "returns", "the", "StatsdInterval", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L9845-L9850", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetStatsdIntervalOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetStatsdIntervalOk returns a tuple with the StatsdInterval field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetStatsdIntervalOk", "returns", "a", "tuple", "with", "the", "StatsdInterval", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L9854-L9859", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasStatsdInterval", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasStatsdInterval returns a boolean if a field has been set.", "docstring_tokens": ["HasStatsdInterval", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L9862-L9868", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetOverallState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetOverallState returns the OverallState field if non-nil, zero value otherwise.", "docstring_tokens": ["GetOverallState", "returns", "the", "OverallState", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10093-L10098", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetOverallStateOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetOverallStateOk returns a tuple with the OverallState field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetOverallStateOk", "returns", "a", "tuple", "with", "the", "OverallState", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10102-L10107", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasOverallState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasOverallState returns a boolean if a field has been set.", "docstring_tokens": ["HasOverallState", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10110-L10116", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetOverallStateModified", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetOverallStateModified returns the OverallStateModified field if non-nil, zero value otherwise.", "docstring_tokens": ["GetOverallStateModified", "returns", "the", "OverallStateModified", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10124-L10129", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetOverallStateModifiedOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetOverallStateModifiedOk returns a tuple with the OverallStateModified field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetOverallStateModifiedOk", "returns", "a", "tuple", "with", "the", "OverallStateModified", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10133-L10138", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasOverallStateModified", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasOverallStateModified returns a boolean if a field has been set.", "docstring_tokens": ["HasOverallStateModified", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10141-L10147", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetBackgroundColor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetBackgroundColor returns the BackgroundColor field if non-nil, zero value otherwise.", "docstring_tokens": ["GetBackgroundColor", "returns", "the", "BackgroundColor", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10217-L10222", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetBackgroundColorOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetBackgroundColorOk returns a tuple with the BackgroundColor field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetBackgroundColorOk", "returns", "a", "tuple", "with", "the", "BackgroundColor", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10226-L10231", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasBackgroundColor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasBackgroundColor returns a boolean if a field has been set.", "docstring_tokens": ["HasBackgroundColor", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10234-L10240", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetContent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetContent returns the Content field if non-nil, zero value otherwise.", "docstring_tokens": ["GetContent", "returns", "the", "Content", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10248-L10253", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetContentOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetContentOk returns a tuple with the Content field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetContentOk", "returns", "a", "tuple", "with", "the", "Content", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10257-L10262", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasContent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasContent returns a boolean if a field has been set.", "docstring_tokens": ["HasContent", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10265-L10271", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetShowTick", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetShowTick returns the ShowTick field if non-nil, zero value otherwise.", "docstring_tokens": ["GetShowTick", "returns", "the", "ShowTick", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10310-L10315", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetShowTickOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetShowTickOk returns a tuple with the ShowTick field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetShowTickOk", "returns", "a", "tuple", "with", "the", "ShowTick", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10319-L10324", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasShowTick", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasShowTick returns a boolean if a field has been set.", "docstring_tokens": ["HasShowTick", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10327-L10333", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetEnableLogsSample", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetEnableLogsSample returns the EnableLogsSample field if non-nil, zero value otherwise.", "docstring_tokens": ["GetEnableLogsSample", "returns", "the", "EnableLogsSample", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10465-L10470", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetEnableLogsSampleOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetEnableLogsSampleOk returns a tuple with the EnableLogsSample field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetEnableLogsSampleOk", "returns", "a", "tuple", "with", "the", "EnableLogsSample", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10474-L10479", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasEnableLogsSample", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasEnableLogsSample returns a boolean if a field has been set.", "docstring_tokens": ["HasEnableLogsSample", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10482-L10488", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetEscalationMessage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetEscalationMessage returns the EscalationMessage field if non-nil, zero value otherwise.", "docstring_tokens": ["GetEscalationMessage", "returns", "the", "EscalationMessage", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10496-L10501", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetEscalationMessageOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetEscalationMessageOk returns a tuple with the EscalationMessage field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetEscalationMessageOk", "returns", "a", "tuple", "with", "the", "EscalationMessage", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10505-L10510", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasEscalationMessage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasEscalationMessage returns a boolean if a field has been set.", "docstring_tokens": ["HasEscalationMessage", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10513-L10519", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetEvaluationDelay", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetEvaluationDelay returns the EvaluationDelay field if non-nil, zero value otherwise.", "docstring_tokens": ["GetEvaluationDelay", "returns", "the", "EvaluationDelay", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10527-L10532", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetEvaluationDelayOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetEvaluationDelayOk returns a tuple with the EvaluationDelay field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetEvaluationDelayOk", "returns", "a", "tuple", "with", "the", "EvaluationDelay", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10536-L10541", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasEvaluationDelay", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasEvaluationDelay returns a boolean if a field has been set.", "docstring_tokens": ["HasEvaluationDelay", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10544-L10550", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetIncludeTags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetIncludeTags returns the IncludeTags field if non-nil, zero value otherwise.", "docstring_tokens": ["GetIncludeTags", "returns", "the", "IncludeTags", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10558-L10563", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetIncludeTagsOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetIncludeTagsOk returns a tuple with the IncludeTags field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetIncludeTagsOk", "returns", "a", "tuple", "with", "the", "IncludeTags", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10567-L10572", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasIncludeTags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasIncludeTags returns a boolean if a field has been set.", "docstring_tokens": ["HasIncludeTags", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10575-L10581", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetLocked", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLocked returns the Locked field if non-nil, zero value otherwise.", "docstring_tokens": ["GetLocked", "returns", "the", "Locked", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10589-L10594", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetLockedOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLockedOk returns a tuple with the Locked field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetLockedOk", "returns", "a", "tuple", "with", "the", "Locked", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10598-L10603", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasLocked", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasLocked returns a boolean if a field has been set.", "docstring_tokens": ["HasLocked", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10606-L10612", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetNewHostDelay", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetNewHostDelay returns the NewHostDelay field if non-nil, zero value otherwise.", "docstring_tokens": ["GetNewHostDelay", "returns", "the", "NewHostDelay", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10620-L10625", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetNewHostDelayOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetNewHostDelayOk returns a tuple with the NewHostDelay field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetNewHostDelayOk", "returns", "a", "tuple", "with", "the", "NewHostDelay", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10629-L10634", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasNewHostDelay", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasNewHostDelay returns a boolean if a field has been set.", "docstring_tokens": ["HasNewHostDelay", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10637-L10643", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetNotifyAudit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetNotifyAudit returns the NotifyAudit field if non-nil, zero value otherwise.", "docstring_tokens": ["GetNotifyAudit", "returns", "the", "NotifyAudit", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10651-L10656", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetNotifyAuditOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetNotifyAuditOk returns a tuple with the NotifyAudit field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetNotifyAuditOk", "returns", "a", "tuple", "with", "the", "NotifyAudit", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10660-L10665", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasNotifyAudit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasNotifyAudit returns a boolean if a field has been set.", "docstring_tokens": ["HasNotifyAudit", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10668-L10674", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetQueryConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetQueryConfig returns the QueryConfig field if non-nil, zero value otherwise.", "docstring_tokens": ["GetQueryConfig", "returns", "the", "QueryConfig", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10713-L10718", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetQueryConfigOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetQueryConfigOk returns a tuple with the QueryConfig field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetQueryConfigOk", "returns", "a", "tuple", "with", "the", "QueryConfig", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10722-L10727", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasQueryConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasQueryConfig returns a boolean if a field has been set.", "docstring_tokens": ["HasQueryConfig", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10730-L10736", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetRenotifyInterval", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRenotifyInterval returns the RenotifyInterval field if non-nil, zero value otherwise.", "docstring_tokens": ["GetRenotifyInterval", "returns", "the", "RenotifyInterval", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10744-L10749", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetRenotifyIntervalOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRenotifyIntervalOk returns a tuple with the RenotifyInterval field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetRenotifyIntervalOk", "returns", "a", "tuple", "with", "the", "RenotifyInterval", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10753-L10758", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasRenotifyInterval", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasRenotifyInterval returns a boolean if a field has been set.", "docstring_tokens": ["HasRenotifyInterval", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10761-L10767", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetRequireFullWindow", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRequireFullWindow returns the RequireFullWindow field if non-nil, zero value otherwise.", "docstring_tokens": ["GetRequireFullWindow", "returns", "the", "RequireFullWindow", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10775-L10780", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetRequireFullWindowOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRequireFullWindowOk returns a tuple with the RequireFullWindow field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetRequireFullWindowOk", "returns", "a", "tuple", "with", "the", "RequireFullWindow", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10784-L10789", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasRequireFullWindow", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasRequireFullWindow returns a boolean if a field has been set.", "docstring_tokens": ["HasRequireFullWindow", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10792-L10798", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetThresholds", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetThresholds returns the Thresholds field if non-nil, zero value otherwise.", "docstring_tokens": ["GetThresholds", "returns", "the", "Thresholds", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10806-L10811", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetThresholdsOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetThresholdsOk returns a tuple with the Thresholds field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetThresholdsOk", "returns", "a", "tuple", "with", "the", "Thresholds", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10815-L10820", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasThresholds", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasThresholds returns a boolean if a field has been set.", "docstring_tokens": ["HasThresholds", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10823-L10829", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetThresholdWindows", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetThresholdWindows returns the ThresholdWindows field if non-nil, zero value otherwise.", "docstring_tokens": ["GetThresholdWindows", "returns", "the", "ThresholdWindows", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10837-L10842", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetThresholdWindowsOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetThresholdWindowsOk returns a tuple with the ThresholdWindows field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetThresholdWindowsOk", "returns", "a", "tuple", "with", "the", "ThresholdWindows", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10846-L10851", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasThresholdWindows", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasThresholdWindows returns a boolean if a field has been set.", "docstring_tokens": ["HasThresholdWindows", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10854-L10860", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetTimeoutH", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTimeoutH returns the TimeoutH field if non-nil, zero value otherwise.", "docstring_tokens": ["GetTimeoutH", "returns", "the", "TimeoutH", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10868-L10873", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetTimeoutHOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTimeoutHOk returns a tuple with the TimeoutH field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetTimeoutHOk", "returns", "a", "tuple", "with", "the", "TimeoutH", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10877-L10882", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasTimeoutH", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasTimeoutH returns a boolean if a field has been set.", "docstring_tokens": ["HasTimeoutH", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L10885-L10891", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetSeconds", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSeconds returns the Seconds field if non-nil, zero value otherwise.", "docstring_tokens": ["GetSeconds", "returns", "the", "Seconds", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L11054-L11059", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetSecondsOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSecondsOk returns a tuple with the Seconds field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetSecondsOk", "returns", "a", "tuple", "with", "the", "Seconds", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L11063-L11068", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasSeconds", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasSeconds returns a boolean if a field has been set.", "docstring_tokens": ["HasSeconds", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L11071-L11077", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetLogSet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLogSet returns the LogSet field if non-nil, zero value otherwise.", "docstring_tokens": ["GetLogSet", "returns", "the", "LogSet", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L11178-L11183", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetLogSetOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLogSetOk returns a tuple with the LogSet field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetLogSetOk", "returns", "a", "tuple", "with", "the", "LogSet", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L11187-L11192", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasLogSet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasLogSet returns a boolean if a field has been set.", "docstring_tokens": ["HasLogSet", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L11195-L11201", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetQueryIsFailed", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetQueryIsFailed returns the QueryIsFailed field if non-nil, zero value otherwise.", "docstring_tokens": ["GetQueryIsFailed", "returns", "the", "QueryIsFailed", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L11209-L11214", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetQueryIsFailedOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetQueryIsFailedOk returns a tuple with the QueryIsFailed field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetQueryIsFailedOk", "returns", "a", "tuple", "with", "the", "QueryIsFailed", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L11218-L11223", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasQueryIsFailed", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasQueryIsFailed returns a boolean if a field has been set.", "docstring_tokens": ["HasQueryIsFailed", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L11226-L11232", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetQueryString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetQueryString returns the QueryString field if non-nil, zero value otherwise.", "docstring_tokens": ["GetQueryString", "returns", "the", "QueryString", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L11240-L11245", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetQueryStringOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetQueryStringOk", "returns", "a", "tuple", "with", "the", "QueryString", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L11249-L11254", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasQueryString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasQueryString returns a boolean if a field has been set.", "docstring_tokens": ["HasQueryString", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L11257-L11263", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetTimeRange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTimeRange returns the TimeRange field if non-nil, zero value otherwise.", "docstring_tokens": ["GetTimeRange", "returns", "the", "TimeRange", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L11271-L11276", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetTimeRangeOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTimeRangeOk returns a tuple with the TimeRange field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetTimeRangeOk", "returns", "a", "tuple", "with", "the", "TimeRange", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L11280-L11285", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasTimeRange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasTimeRange returns a boolean if a field has been set.", "docstring_tokens": ["HasTimeRange", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L11288-L11294", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetUntilDate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetUntilDate returns the UntilDate field if non-nil, zero value otherwise.", "docstring_tokens": ["GetUntilDate", "returns", "the", "UntilDate", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L11798-L11803", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetUntilDateOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetUntilDateOk returns a tuple with the UntilDate field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetUntilDateOk", "returns", "a", "tuple", "with", "the", "UntilDate", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L11807-L11812", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasUntilDate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasUntilDate returns a boolean if a field has been set.", "docstring_tokens": ["HasUntilDate", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L11815-L11821", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetUntilOccurrences", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetUntilOccurrences returns the UntilOccurrences field if non-nil, zero value otherwise.", "docstring_tokens": ["GetUntilOccurrences", "returns", "the", "UntilOccurrences", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L11829-L11834", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetUntilOccurrencesOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetUntilOccurrencesOk returns a tuple with the UntilOccurrences field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetUntilOccurrencesOk", "returns", "a", "tuple", "with", "the", "UntilOccurrences", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L11838-L11843", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasUntilOccurrences", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasUntilOccurrences returns a boolean if a field has been set.", "docstring_tokens": ["HasUntilOccurrences", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L11846-L11852", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetAPIKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAPIKey returns the APIKey field if non-nil, zero value otherwise.", "docstring_tokens": ["GetAPIKey", "returns", "the", "APIKey", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L11860-L11865", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetAPIKeyOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAPIKeyOk returns a tuple with the APIKey field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetAPIKeyOk", "returns", "a", "tuple", "with", "the", "APIKey", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L11869-L11874", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasAPIKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasAPIKey returns a boolean if a field has been set.", "docstring_tokens": ["HasAPIKey", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L11877-L11883", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetComment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetComment returns the Comment field if non-nil, zero value otherwise.", "docstring_tokens": ["GetComment", "returns", "the", "Comment", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L11891-L11896", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetCommentOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetCommentOk", "returns", "a", "tuple", "with", "the", "Comment", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L11900-L11905", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasComment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasComment returns a boolean if a field has been set.", "docstring_tokens": ["HasComment", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L11908-L11914", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetDashboard", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDashboard returns the Dashboard field if non-nil, zero value otherwise.", "docstring_tokens": ["GetDashboard", "returns", "the", "Dashboard", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L11922-L11927", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetDashboardOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDashboardOk returns a tuple with the Dashboard field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetDashboardOk", "returns", "a", "tuple", "with", "the", "Dashboard", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L11931-L11936", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasDashboard", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasDashboard returns a boolean if a field has been set.", "docstring_tokens": ["HasDashboard", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L11939-L11945", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetEvent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetEvent returns the Event field if non-nil, zero value otherwise.", "docstring_tokens": ["GetEvent", "returns", "the", "Event", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L12015-L12020", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetEventOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetEventOk returns a tuple with the Event field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetEventOk", "returns", "a", "tuple", "with", "the", "Event", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L12024-L12029", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasEvent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasEvent returns a boolean if a field has been set.", "docstring_tokens": ["HasEvent", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L12032-L12038", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetTags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTags returns the Tags field if non-nil, zero value otherwise.", "docstring_tokens": ["GetTags", "returns", "the", "Tags", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L12046-L12051", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetTagsOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetTagsOk", "returns", "a", "tuple", "with", "the", "Tags", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L12055-L12060", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasTags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasTags returns a boolean if a field has been set.", "docstring_tokens": ["HasTags", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L12063-L12069", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetThreshold", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetThreshold returns the Threshold field if non-nil, zero value otherwise.", "docstring_tokens": ["GetThreshold", "returns", "the", "Threshold", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L12108-L12113", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetThresholdOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetThresholdOk returns a tuple with the Threshold field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetThresholdOk", "returns", "a", "tuple", "with", "the", "Threshold", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L12117-L12122", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasThreshold", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasThreshold returns a boolean if a field has been set.", "docstring_tokens": ["HasThreshold", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L12125-L12131", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetXaxis", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetXaxis returns the Xaxis field if non-nil, zero value otherwise.", "docstring_tokens": ["GetXaxis", "returns", "the", "Xaxis", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L12356-L12361", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetXaxisOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetXaxisOk returns a tuple with the Xaxis field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetXaxisOk", "returns", "a", "tuple", "with", "the", "Xaxis", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L12365-L12370", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasXaxis", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasXaxis returns a boolean if a field has been set.", "docstring_tokens": ["HasXaxis", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L12373-L12379", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetShared", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetShared returns the Shared field if non-nil, zero value otherwise.", "docstring_tokens": ["GetShared", "returns", "the", "Shared", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L12759-L12764", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetSharedOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSharedOk returns a tuple with the Shared field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetSharedOk", "returns", "a", "tuple", "with", "the", "Shared", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L12768-L12773", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasShared", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasShared returns a boolean if a field has been set.", "docstring_tokens": ["HasShared", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L12776-L12782", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetAggr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAggr returns the Aggr field if non-nil, zero value otherwise.", "docstring_tokens": ["GetAggr", "returns", "the", "Aggr", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L12976-L12981", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetAggrOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAggrOk returns a tuple with the Aggr field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetAggrOk", "returns", "a", "tuple", "with", "the", "Aggr", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L12985-L12990", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasAggr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasAggr returns a boolean if a field has been set.", "docstring_tokens": ["HasAggr", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L12993-L12999", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetDisplayNameOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetDisplayNameOk", "returns", "a", "tuple", "with", "the", "DisplayName", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L13016-L13021", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetLength", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLength returns the Length field if non-nil, zero value otherwise.", "docstring_tokens": ["GetLength", "returns", "the", "Length", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L13131-L13136", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetLengthOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLengthOk returns a tuple with the Length field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetLengthOk", "returns", "a", "tuple", "with", "the", "Length", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L13140-L13145", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasLength", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasLength returns a boolean if a field has been set.", "docstring_tokens": ["HasLength", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L13148-L13154", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetScope", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetScope returns the Scope field if non-nil, zero value otherwise.", "docstring_tokens": ["GetScope", "returns", "the", "Scope", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L13193-L13198", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetScopeOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetScopeOk returns a tuple with the Scope field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetScopeOk", "returns", "a", "tuple", "with", "the", "Scope", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L13202-L13207", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasScope", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasScope returns a boolean if a field has been set.", "docstring_tokens": ["HasScope", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L13210-L13216", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetUnits", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetUnits returns the Units field if non-nil, zero value otherwise.", "docstring_tokens": ["GetUnits", "returns", "the", "Units", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L13255-L13260", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetUnitsOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetUnitsOk returns a tuple with the Units field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetUnitsOk", "returns", "a", "tuple", "with", "the", "Units", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L13264-L13269", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasUnits", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasUnits returns a boolean if a field has been set.", "docstring_tokens": ["HasUnits", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L13272-L13278", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetServiceKeyOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetServiceKeyOk returns a tuple with the ServiceKey field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetServiceKeyOk", "returns", "a", "tuple", "with", "the", "ServiceKey", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L13419-L13424", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetOperator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetOperator returns the Operator field if non-nil, zero value otherwise.", "docstring_tokens": ["GetOperator", "returns", "the", "Operator", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L13596-L13601", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetOperatorOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetOperatorOk returns a tuple with the Operator field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetOperatorOk", "returns", "a", "tuple", "with", "the", "Operator", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L13605-L13610", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasOperator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasOperator returns a boolean if a field has been set.", "docstring_tokens": ["HasOperator", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L13613-L13619", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetProperty", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetProperty returns the Property field if non-nil, zero value otherwise.", "docstring_tokens": ["GetProperty", "returns", "the", "Property", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L13627-L13632", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetPropertyOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPropertyOk returns a tuple with the Property field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetPropertyOk", "returns", "a", "tuple", "with", "the", "Property", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L13636-L13641", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasProperty", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasProperty returns a boolean if a field has been set.", "docstring_tokens": ["HasProperty", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L13644-L13650", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRequest returns the Request field if non-nil, zero value otherwise.", "docstring_tokens": ["GetRequest", "returns", "the", "Request", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L13689-L13694", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetRequestOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRequestOk returns a tuple with the Request field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetRequestOk", "returns", "a", "tuple", "with", "the", "Request", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L13698-L13703", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasRequest returns a boolean if a field has been set.", "docstring_tokens": ["HasRequest", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L13706-L13712", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetIsMobile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetIsMobile returns the IsMobile field if non-nil, zero value otherwise.", "docstring_tokens": ["GetIsMobile", "returns", "the", "IsMobile", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L13813-L13818", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetIsMobileOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetIsMobileOk returns a tuple with the IsMobile field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetIsMobileOk", "returns", "a", "tuple", "with", "the", "IsMobile", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L13822-L13827", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasIsMobile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasIsMobile returns a boolean if a field has been set.", "docstring_tokens": ["HasIsMobile", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L13830-L13836", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetUserAgent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetUserAgent returns the UserAgent field if non-nil, zero value otherwise.", "docstring_tokens": ["GetUserAgent", "returns", "the", "UserAgent", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L13875-L13880", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetUserAgentOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetUserAgentOk returns a tuple with the UserAgent field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetUserAgentOk", "returns", "a", "tuple", "with", "the", "UserAgent", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L13884-L13889", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasUserAgent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasUserAgent returns a boolean if a field has been set.", "docstring_tokens": ["HasUserAgent", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L13892-L13898", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetRegion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRegion returns the Region field if non-nil, zero value otherwise.", "docstring_tokens": ["GetRegion", "returns", "the", "Region", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14061-L14066", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetRegionOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetRegionOk", "returns", "a", "tuple", "with", "the", "Region", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14070-L14075", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasRegion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasRegion returns a boolean if a field has been set.", "docstring_tokens": ["HasRegion", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14078-L14084", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetFollowRedirects", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetFollowRedirects returns the FollowRedirects field if non-nil, zero value otherwise.", "docstring_tokens": ["GetFollowRedirects", "returns", "the", "FollowRedirects", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14092-L14097", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetFollowRedirectsOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetFollowRedirectsOk returns a tuple with the FollowRedirects field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetFollowRedirectsOk", "returns", "a", "tuple", "with", "the", "FollowRedirects", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14101-L14106", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasFollowRedirects", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasFollowRedirects returns a boolean if a field has been set.", "docstring_tokens": ["HasFollowRedirects", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14109-L14115", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetMinFailureDuration", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMinFailureDuration returns the MinFailureDuration field if non-nil, zero value otherwise.", "docstring_tokens": ["GetMinFailureDuration", "returns", "the", "MinFailureDuration", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14123-L14128", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetMinFailureDurationOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMinFailureDurationOk returns a tuple with the MinFailureDuration field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetMinFailureDurationOk", "returns", "a", "tuple", "with", "the", "MinFailureDuration", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14132-L14137", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasMinFailureDuration", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasMinFailureDuration returns a boolean if a field has been set.", "docstring_tokens": ["HasMinFailureDuration", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14140-L14146", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetMinLocationFailed", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMinLocationFailed returns the MinLocationFailed field if non-nil, zero value otherwise.", "docstring_tokens": ["GetMinLocationFailed", "returns", "the", "MinLocationFailed", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14154-L14159", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetMinLocationFailedOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMinLocationFailedOk returns a tuple with the MinLocationFailed field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetMinLocationFailedOk", "returns", "a", "tuple", "with", "the", "MinLocationFailed", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14163-L14168", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasMinLocationFailed", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasMinLocationFailed returns a boolean if a field has been set.", "docstring_tokens": ["HasMinLocationFailed", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14171-L14177", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetTickEvery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTickEvery returns the TickEvery field if non-nil, zero value otherwise.", "docstring_tokens": ["GetTickEvery", "returns", "the", "TickEvery", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14185-L14190", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetTickEveryOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTickEveryOk returns a tuple with the TickEvery field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetTickEveryOk", "returns", "a", "tuple", "with", "the", "TickEvery", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14194-L14199", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasTickEvery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasTickEvery returns a boolean if a field has been set.", "docstring_tokens": ["HasTickEvery", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14202-L14208", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetBody", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetBody returns the Body field if non-nil, zero value otherwise.", "docstring_tokens": ["GetBody", "returns", "the", "Body", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14216-L14221", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetBodyOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetBodyOk returns a tuple with the Body field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetBodyOk", "returns", "a", "tuple", "with", "the", "Body", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14225-L14230", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasBody", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasBody returns a boolean if a field has been set.", "docstring_tokens": ["HasBody", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14233-L14239", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetMethod", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMethod returns the Method field if non-nil, zero value otherwise.", "docstring_tokens": ["GetMethod", "returns", "the", "Method", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14247-L14252", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetMethodOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMethodOk returns a tuple with the Method field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetMethodOk", "returns", "a", "tuple", "with", "the", "Method", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14256-L14261", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasMethod", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasMethod returns a boolean if a field has been set.", "docstring_tokens": ["HasMethod", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14264-L14270", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetTimeout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTimeout returns the Timeout field if non-nil, zero value otherwise.", "docstring_tokens": ["GetTimeout", "returns", "the", "Timeout", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14278-L14283", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetTimeoutOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTimeoutOk returns a tuple with the Timeout field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetTimeoutOk", "returns", "a", "tuple", "with", "the", "Timeout", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14287-L14292", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasTimeout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasTimeout returns a boolean if a field has been set.", "docstring_tokens": ["HasTimeout", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14295-L14301", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetConfig returns the Config field if non-nil, zero value otherwise.", "docstring_tokens": ["GetConfig", "returns", "the", "Config", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14340-L14345", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetConfigOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetConfigOk", "returns", "a", "tuple", "with", "the", "Config", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14349-L14354", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasConfig returns a boolean if a field has been set.", "docstring_tokens": ["HasConfig", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14357-L14363", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetDeletedAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDeletedAt returns the DeletedAt field if non-nil, zero value otherwise.", "docstring_tokens": ["GetDeletedAt", "returns", "the", "DeletedAt", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14433-L14438", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetDeletedAtOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDeletedAtOk returns a tuple with the DeletedAt field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetDeletedAtOk", "returns", "a", "tuple", "with", "the", "DeletedAt", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14442-L14447", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasDeletedAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasDeletedAt returns a boolean if a field has been set.", "docstring_tokens": ["HasDeletedAt", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14450-L14456", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetModifiedBy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetModifiedBy returns the ModifiedBy field if non-nil, zero value otherwise.", "docstring_tokens": ["GetModifiedBy", "returns", "the", "ModifiedBy", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14526-L14531", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetModifiedByOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetModifiedByOk returns a tuple with the ModifiedBy field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetModifiedByOk", "returns", "a", "tuple", "with", "the", "ModifiedBy", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14535-L14540", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasModifiedBy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasModifiedBy returns a boolean if a field has been set.", "docstring_tokens": ["HasModifiedBy", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14543-L14549", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetMonitorStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMonitorStatus returns the MonitorStatus field if non-nil, zero value otherwise.", "docstring_tokens": ["GetMonitorStatus", "returns", "the", "MonitorStatus", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14557-L14562", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetMonitorStatusOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMonitorStatusOk returns a tuple with the MonitorStatus field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetMonitorStatusOk", "returns", "a", "tuple", "with", "the", "MonitorStatus", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14566-L14571", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasMonitorStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasMonitorStatus returns a boolean if a field has been set.", "docstring_tokens": ["HasMonitorStatus", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14574-L14580", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetPublicId", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPublicId returns the PublicId field if non-nil, zero value otherwise.", "docstring_tokens": ["GetPublicId", "returns", "the", "PublicId", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14650-L14655", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetPublicIdOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPublicIdOk returns a tuple with the PublicId field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetPublicIdOk", "returns", "a", "tuple", "with", "the", "PublicId", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14659-L14664", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasPublicId", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasPublicId returns a boolean if a field has been set.", "docstring_tokens": ["HasPublicId", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14667-L14673", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetDefault", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDefault returns the Default field if non-nil, zero value otherwise.", "docstring_tokens": ["GetDefault", "returns", "the", "Default", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14867-L14872", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetDefaultOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDefaultOk returns a tuple with the Default field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetDefaultOk", "returns", "a", "tuple", "with", "the", "Default", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14876-L14881", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasDefault", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasDefault returns a boolean if a field has been set.", "docstring_tokens": ["HasDefault", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14884-L14890", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetPrefix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPrefix returns the Prefix field if non-nil, zero value otherwise.", "docstring_tokens": ["GetPrefix", "returns", "the", "Prefix", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14929-L14934", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetPrefixOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPrefixOk returns a tuple with the Prefix field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetPrefixOk", "returns", "a", "tuple", "with", "the", "Prefix", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14938-L14943", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasPrefix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasPrefix returns a boolean if a field has been set.", "docstring_tokens": ["HasPrefix", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14946-L14952", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetCritical", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCritical returns the Critical field if non-nil, zero value otherwise.", "docstring_tokens": ["GetCritical", "returns", "the", "Critical", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14960-L14965", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetCriticalOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCriticalOk returns a tuple with the Critical field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetCriticalOk", "returns", "a", "tuple", "with", "the", "Critical", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14969-L14974", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasCritical", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasCritical returns a boolean if a field has been set.", "docstring_tokens": ["HasCritical", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14977-L14983", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetCriticalRecovery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCriticalRecovery returns the CriticalRecovery field if non-nil, zero value otherwise.", "docstring_tokens": ["GetCriticalRecovery", "returns", "the", "CriticalRecovery", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L14991-L14996", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetCriticalRecoveryOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCriticalRecoveryOk returns a tuple with the CriticalRecovery field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetCriticalRecoveryOk", "returns", "a", "tuple", "with", "the", "CriticalRecovery", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L15000-L15005", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasCriticalRecovery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasCriticalRecovery returns a boolean if a field has been set.", "docstring_tokens": ["HasCriticalRecovery", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L15008-L15014", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetOk returns the Ok field if non-nil, zero value otherwise.", "docstring_tokens": ["GetOk", "returns", "the", "Ok", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L15022-L15027", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetOkOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetOkOk returns a tuple with the Ok field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetOkOk", "returns", "a", "tuple", "with", "the", "Ok", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L15031-L15036", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasOk returns a boolean if a field has been set.", "docstring_tokens": ["HasOk", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L15039-L15045", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetTimeAggregator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTimeAggregator returns the TimeAggregator field if non-nil, zero value otherwise.", "docstring_tokens": ["GetTimeAggregator", "returns", "the", "TimeAggregator", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L15084-L15089", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetTimeAggregatorOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTimeAggregatorOk returns a tuple with the TimeAggregator field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetTimeAggregatorOk", "returns", "a", "tuple", "with", "the", "TimeAggregator", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L15093-L15098", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasTimeAggregator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasTimeAggregator returns a boolean if a field has been set.", "docstring_tokens": ["HasTimeAggregator", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L15101-L15107", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetUnknown", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetUnknown returns the Unknown field if non-nil, zero value otherwise.", "docstring_tokens": ["GetUnknown", "returns", "the", "Unknown", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L15115-L15120", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetUnknownOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetUnknownOk returns a tuple with the Unknown field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetUnknownOk", "returns", "a", "tuple", "with", "the", "Unknown", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L15124-L15129", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasUnknown", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasUnknown returns a boolean if a field has been set.", "docstring_tokens": ["HasUnknown", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L15132-L15138", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetWarning", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetWarning returns the Warning field if non-nil, zero value otherwise.", "docstring_tokens": ["GetWarning", "returns", "the", "Warning", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L15146-L15151", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetWarningOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetWarningOk returns a tuple with the Warning field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetWarningOk", "returns", "a", "tuple", "with", "the", "Warning", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L15155-L15160", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasWarning", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasWarning returns a boolean if a field has been set.", "docstring_tokens": ["HasWarning", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L15163-L15169", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetWarningRecovery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetWarningRecovery returns the WarningRecovery field if non-nil, zero value otherwise.", "docstring_tokens": ["GetWarningRecovery", "returns", "the", "WarningRecovery", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L15177-L15182", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetWarningRecoveryOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetWarningRecoveryOk returns a tuple with the WarningRecovery field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetWarningRecoveryOk", "returns", "a", "tuple", "with", "the", "WarningRecovery", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L15186-L15191", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasWarningRecovery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasWarningRecovery returns a boolean if a field has been set.", "docstring_tokens": ["HasWarningRecovery", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L15194-L15200", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetRecoveryWindow", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRecoveryWindow returns the RecoveryWindow field if non-nil, zero value otherwise.", "docstring_tokens": ["GetRecoveryWindow", "returns", "the", "RecoveryWindow", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L15208-L15213", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetRecoveryWindowOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRecoveryWindowOk returns a tuple with the RecoveryWindow field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetRecoveryWindowOk", "returns", "a", "tuple", "with", "the", "RecoveryWindow", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L15217-L15222", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasRecoveryWindow", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasRecoveryWindow returns a boolean if a field has been set.", "docstring_tokens": ["HasRecoveryWindow", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L15225-L15231", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetTriggerWindow", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTriggerWindow returns the TriggerWindow field if non-nil, zero value otherwise.", "docstring_tokens": ["GetTriggerWindow", "returns", "the", "TriggerWindow", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L15239-L15244", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetTriggerWindowOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTriggerWindowOk returns a tuple with the TriggerWindow field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetTriggerWindowOk", "returns", "a", "tuple", "with", "the", "TriggerWindow", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L15248-L15253", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasTriggerWindow", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasTriggerWindow returns a boolean if a field has been set.", "docstring_tokens": ["HasTriggerWindow", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L15256-L15262", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetQueryType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetQueryType returns the QueryType field if non-nil, zero value otherwise.", "docstring_tokens": ["GetQueryType", "returns", "the", "QueryType", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L15983-L15988", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetQueryTypeOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetQueryTypeOk returns a tuple with the QueryType field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetQueryTypeOk", "returns", "a", "tuple", "with", "the", "QueryType", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L15992-L15997", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasQueryType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasQueryType returns a boolean if a field has been set.", "docstring_tokens": ["HasQueryType", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L16000-L16006", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetTextFilter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTextFilter returns the TextFilter field if non-nil, zero value otherwise.", "docstring_tokens": ["GetTextFilter", "returns", "the", "TextFilter", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L16045-L16050", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetTextFilterOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTextFilterOk returns a tuple with the TextFilter field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetTextFilterOk", "returns", "a", "tuple", "with", "the", "TextFilter", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L16054-L16059", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasTextFilter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasTextFilter returns a boolean if a field has been set.", "docstring_tokens": ["HasTextFilter", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L16062-L16068", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetFrom", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetFrom returns the From field if non-nil, zero value otherwise.", "docstring_tokens": ["GetFrom", "returns", "the", "From", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L16355-L16360", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetFromOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetFromOk returns a tuple with the From field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetFromOk", "returns", "a", "tuple", "with", "the", "From", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L16364-L16369", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasFrom", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasFrom returns a boolean if a field has been set.", "docstring_tokens": ["HasFrom", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L16372-L16378", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetLive", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLive returns the Live field if non-nil, zero value otherwise.", "docstring_tokens": ["GetLive", "returns", "the", "Live", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L16386-L16391", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetLiveOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLiveOk returns a tuple with the Live field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetLiveOk", "returns", "a", "tuple", "with", "the", "Live", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L16395-L16400", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasLive", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasLive returns a boolean if a field has been set.", "docstring_tokens": ["HasLive", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L16403-L16409", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTo returns the To field if non-nil, zero value otherwise.", "docstring_tokens": ["GetTo", "returns", "the", "To", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L16417-L16422", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetToOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetToOk returns a tuple with the To field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetToOk", "returns", "a", "tuple", "with", "the", "To", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L16426-L16431", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasTo returns a boolean if a field has been set.", "docstring_tokens": ["HasTo", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L16434-L16440", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetShowLegend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetShowLegend returns the ShowLegend field if non-nil, zero value otherwise.", "docstring_tokens": ["GetShowLegend", "returns", "the", "ShowLegend", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L16479-L16484", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetShowLegendOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetShowLegendOk returns a tuple with the ShowLegend field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetShowLegendOk", "returns", "a", "tuple", "with", "the", "ShowLegend", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L16488-L16493", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasShowLegend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasShowLegend returns a boolean if a field has been set.", "docstring_tokens": ["HasShowLegend", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L16496-L16502", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetLineType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLineType returns the LineType field if non-nil, zero value otherwise.", "docstring_tokens": ["GetLineType", "returns", "the", "LineType", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L16882-L16887", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetLineTypeOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLineTypeOk returns a tuple with the LineType field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetLineTypeOk", "returns", "a", "tuple", "with", "the", "LineType", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L16891-L16896", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasLineType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasLineType returns a boolean if a field has been set.", "docstring_tokens": ["HasLineType", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L16899-L16905", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetLineWidth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLineWidth returns the LineWidth field if non-nil, zero value otherwise.", "docstring_tokens": ["GetLineWidth", "returns", "the", "LineWidth", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L16913-L16918", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetLineWidthOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLineWidthOk returns a tuple with the LineWidth field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetLineWidthOk", "returns", "a", "tuple", "with", "the", "LineWidth", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L16922-L16927", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasLineWidth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasLineWidth returns a boolean if a field has been set.", "docstring_tokens": ["HasLineWidth", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L16930-L16936", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetNewStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetNewStatus returns the NewStatus field if non-nil, zero value otherwise.", "docstring_tokens": ["GetNewStatus", "returns", "the", "NewStatus", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L16975-L16980", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetNewStatusOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetNewStatusOk returns a tuple with the NewStatus field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetNewStatusOk", "returns", "a", "tuple", "with", "the", "NewStatus", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L16984-L16989", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasNewStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasNewStatus returns a boolean if a field has been set.", "docstring_tokens": ["HasNewStatus", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L16992-L16998", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetService", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetService returns the Service field if non-nil, zero value otherwise.", "docstring_tokens": ["GetService", "returns", "the", "Service", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L17378-L17383", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetServiceOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetServiceOk returns a tuple with the Service field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetServiceOk", "returns", "a", "tuple", "with", "the", "Service", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L17387-L17392", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasService", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasService returns a boolean if a field has been set.", "docstring_tokens": ["HasService", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L17395-L17401", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetShowBreakdown", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetShowBreakdown returns the ShowBreakdown field if non-nil, zero value otherwise.", "docstring_tokens": ["GetShowBreakdown", "returns", "the", "ShowBreakdown", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L17409-L17414", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetShowBreakdownOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetShowBreakdownOk returns a tuple with the ShowBreakdown field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetShowBreakdownOk", "returns", "a", "tuple", "with", "the", "ShowBreakdown", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L17418-L17423", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasShowBreakdown", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasShowBreakdown returns a boolean if a field has been set.", "docstring_tokens": ["HasShowBreakdown", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L17426-L17432", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetShowDistribution", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetShowDistribution returns the ShowDistribution field if non-nil, zero value otherwise.", "docstring_tokens": ["GetShowDistribution", "returns", "the", "ShowDistribution", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L17440-L17445", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetShowDistributionOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetShowDistributionOk returns a tuple with the ShowDistribution field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetShowDistributionOk", "returns", "a", "tuple", "with", "the", "ShowDistribution", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L17449-L17454", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasShowDistribution", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasShowDistribution returns a boolean if a field has been set.", "docstring_tokens": ["HasShowDistribution", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L17457-L17463", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetShowErrors", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetShowErrors returns the ShowErrors field if non-nil, zero value otherwise.", "docstring_tokens": ["GetShowErrors", "returns", "the", "ShowErrors", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L17471-L17476", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetShowErrorsOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetShowErrorsOk returns a tuple with the ShowErrors field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetShowErrorsOk", "returns", "a", "tuple", "with", "the", "ShowErrors", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L17480-L17485", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasShowErrors", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasShowErrors returns a boolean if a field has been set.", "docstring_tokens": ["HasShowErrors", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L17488-L17494", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetShowHits", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetShowHits returns the ShowHits field if non-nil, zero value otherwise.", "docstring_tokens": ["GetShowHits", "returns", "the", "ShowHits", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L17502-L17507", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetShowHitsOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetShowHitsOk returns a tuple with the ShowHits field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetShowHitsOk", "returns", "a", "tuple", "with", "the", "ShowHits", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L17511-L17516", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasShowHits", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasShowHits returns a boolean if a field has been set.", "docstring_tokens": ["HasShowHits", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L17519-L17525", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetShowLatency", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetShowLatency returns the ShowLatency field if non-nil, zero value otherwise.", "docstring_tokens": ["GetShowLatency", "returns", "the", "ShowLatency", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L17533-L17538", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetShowLatencyOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetShowLatencyOk returns a tuple with the ShowLatency field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetShowLatencyOk", "returns", "a", "tuple", "with", "the", "ShowLatency", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L17542-L17547", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasShowLatency", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasShowLatency returns a boolean if a field has been set.", "docstring_tokens": ["HasShowLatency", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L17550-L17556", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetShowResourceList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetShowResourceList returns the ShowResourceList field if non-nil, zero value otherwise.", "docstring_tokens": ["GetShowResourceList", "returns", "the", "ShowResourceList", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L17564-L17569", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetShowResourceListOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetShowResourceListOk returns a tuple with the ShowResourceList field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetShowResourceListOk", "returns", "a", "tuple", "with", "the", "ShowResourceList", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L17573-L17578", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasShowResourceList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasShowResourceList returns a boolean if a field has been set.", "docstring_tokens": ["HasShowResourceList", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L17581-L17587", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetSizeFormat", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSizeFormat returns the SizeFormat field if non-nil, zero value otherwise.", "docstring_tokens": ["GetSizeFormat", "returns", "the", "SizeFormat", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L17595-L17600", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetSizeFormatOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSizeFormatOk returns a tuple with the SizeFormat field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetSizeFormatOk", "returns", "a", "tuple", "with", "the", "SizeFormat", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L17604-L17609", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasSizeFormat", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasSizeFormat returns a boolean if a field has been set.", "docstring_tokens": ["HasSizeFormat", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L17612-L17618", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetSpanName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSpanName returns the SpanName field if non-nil, zero value otherwise.", "docstring_tokens": ["GetSpanName", "returns", "the", "SpanName", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L17626-L17631", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetSpanNameOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSpanNameOk returns a tuple with the SpanName field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetSpanNameOk", "returns", "a", "tuple", "with", "the", "SpanName", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L17635-L17640", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasSpanName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasSpanName returns a boolean if a field has been set.", "docstring_tokens": ["HasSpanName", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L17643-L17649", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetFromTs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetFromTs returns the FromTs field if non-nil, zero value otherwise.", "docstring_tokens": ["GetFromTs", "returns", "the", "FromTs", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L17812-L17817", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetFromTsOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetFromTsOk returns a tuple with the FromTs field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetFromTsOk", "returns", "a", "tuple", "with", "the", "FromTs", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L17821-L17826", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasFromTs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasFromTs returns a boolean if a field has been set.", "docstring_tokens": ["HasFromTs", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L17829-L17835", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetToTs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetToTs returns the ToTs field if non-nil, zero value otherwise.", "docstring_tokens": ["GetToTs", "returns", "the", "ToTs", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L17843-L17848", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetToTsOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetToTsOk returns a tuple with the ToTs field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetToTsOk", "returns", "a", "tuple", "with", "the", "ToTs", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L17852-L17857", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasToTs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasToTs returns a boolean if a field has been set.", "docstring_tokens": ["HasToTs", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L17860-L17866", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetAlertID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAlertID returns the AlertID field if non-nil, zero value otherwise.", "docstring_tokens": ["GetAlertID", "returns", "the", "AlertID", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18153-L18158", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetAlertIDOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAlertIDOk returns a tuple with the AlertID field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetAlertIDOk", "returns", "a", "tuple", "with", "the", "AlertID", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18162-L18167", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasAlertID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasAlertID returns a boolean if a field has been set.", "docstring_tokens": ["HasAlertID", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18170-L18176", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetAutoRefresh", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAutoRefresh returns the AutoRefresh field if non-nil, zero value otherwise.", "docstring_tokens": ["GetAutoRefresh", "returns", "the", "AutoRefresh", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18184-L18189", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetAutoRefreshOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAutoRefreshOk returns a tuple with the AutoRefresh field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetAutoRefreshOk", "returns", "a", "tuple", "with", "the", "AutoRefresh", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18193-L18198", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasAutoRefresh", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasAutoRefresh returns a boolean if a field has been set.", "docstring_tokens": ["HasAutoRefresh", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18201-L18207", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetBgcolor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetBgcolor returns the Bgcolor field if non-nil, zero value otherwise.", "docstring_tokens": ["GetBgcolor", "returns", "the", "Bgcolor", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18215-L18220", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetBgcolorOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetBgcolorOk returns a tuple with the Bgcolor field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetBgcolorOk", "returns", "a", "tuple", "with", "the", "Bgcolor", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18224-L18229", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasBgcolor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasBgcolor returns a boolean if a field has been set.", "docstring_tokens": ["HasBgcolor", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18232-L18238", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetColumns", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetColumns returns the Columns field if non-nil, zero value otherwise.", "docstring_tokens": ["GetColumns", "returns", "the", "Columns", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18339-L18344", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetColumnsOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetColumnsOk returns a tuple with the Columns field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetColumnsOk", "returns", "a", "tuple", "with", "the", "Columns", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18348-L18353", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasColumns", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasColumns returns a boolean if a field has been set.", "docstring_tokens": ["HasColumns", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18356-L18362", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetHTML", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetHTML returns the HTML field if non-nil, zero value otherwise.", "docstring_tokens": ["GetHTML", "returns", "the", "HTML", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18618-L18623", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetHTMLOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetHTMLOk returns a tuple with the HTML field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetHTMLOk", "returns", "a", "tuple", "with", "the", "HTML", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18627-L18632", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasHTML", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasHTML returns a boolean if a field has been set.", "docstring_tokens": ["HasHTML", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18635-L18641", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetLayoutVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLayoutVersion returns the LayoutVersion field if non-nil, zero value otherwise.", "docstring_tokens": ["GetLayoutVersion", "returns", "the", "LayoutVersion", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18649-L18654", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetLayoutVersionOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLayoutVersionOk returns a tuple with the LayoutVersion field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetLayoutVersionOk", "returns", "a", "tuple", "with", "the", "LayoutVersion", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18658-L18663", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasLayoutVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasLayoutVersion returns a boolean if a field has been set.", "docstring_tokens": ["HasLayoutVersion", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18666-L18672", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetLegend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLegend returns the Legend field if non-nil, zero value otherwise.", "docstring_tokens": ["GetLegend", "returns", "the", "Legend", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18680-L18685", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetLegendOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLegendOk returns a tuple with the Legend field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetLegendOk", "returns", "a", "tuple", "with", "the", "Legend", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18689-L18694", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasLegend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasLegend returns a boolean if a field has been set.", "docstring_tokens": ["HasLegend", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18697-L18703", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetManageStatusShowTitle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetManageStatusShowTitle returns the ManageStatusShowTitle field if non-nil, zero value otherwise.", "docstring_tokens": ["GetManageStatusShowTitle", "returns", "the", "ManageStatusShowTitle", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18773-L18778", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetManageStatusShowTitleOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetManageStatusShowTitleOk returns a tuple with the ManageStatusShowTitle field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetManageStatusShowTitleOk", "returns", "a", "tuple", "with", "the", "ManageStatusShowTitle", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18782-L18787", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasManageStatusShowTitle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasManageStatusShowTitle returns a boolean if a field has been set.", "docstring_tokens": ["HasManageStatusShowTitle", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18790-L18796", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetManageStatusTitleAlign", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetManageStatusTitleAlign returns the ManageStatusTitleAlign field if non-nil, zero value otherwise.", "docstring_tokens": ["GetManageStatusTitleAlign", "returns", "the", "ManageStatusTitleAlign", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18804-L18809", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetManageStatusTitleAlignOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetManageStatusTitleAlignOk returns a tuple with the ManageStatusTitleAlign field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetManageStatusTitleAlignOk", "returns", "a", "tuple", "with", "the", "ManageStatusTitleAlign", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18813-L18818", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasManageStatusTitleAlign", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasManageStatusTitleAlign returns a boolean if a field has been set.", "docstring_tokens": ["HasManageStatusTitleAlign", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18821-L18827", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetManageStatusTitleSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetManageStatusTitleSize returns the ManageStatusTitleSize field if non-nil, zero value otherwise.", "docstring_tokens": ["GetManageStatusTitleSize", "returns", "the", "ManageStatusTitleSize", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18835-L18840", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetManageStatusTitleSizeOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetManageStatusTitleSizeOk returns a tuple with the ManageStatusTitleSize field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetManageStatusTitleSizeOk", "returns", "a", "tuple", "with", "the", "ManageStatusTitleSize", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18844-L18849", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasManageStatusTitleSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasManageStatusTitleSize returns a boolean if a field has been set.", "docstring_tokens": ["HasManageStatusTitleSize", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18852-L18858", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetManageStatusTitleText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetManageStatusTitleText returns the ManageStatusTitleText field if non-nil, zero value otherwise.", "docstring_tokens": ["GetManageStatusTitleText", "returns", "the", "ManageStatusTitleText", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18866-L18871", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetManageStatusTitleTextOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetManageStatusTitleTextOk returns a tuple with the ManageStatusTitleText field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetManageStatusTitleTextOk", "returns", "a", "tuple", "with", "the", "ManageStatusTitleText", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18875-L18880", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasManageStatusTitleText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasManageStatusTitleText returns a boolean if a field has been set.", "docstring_tokens": ["HasManageStatusTitleText", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18883-L18889", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetMonitor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMonitor returns the Monitor field if non-nil, zero value otherwise.", "docstring_tokens": ["GetMonitor", "returns", "the", "Monitor", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18928-L18933", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetMonitorOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMonitorOk returns a tuple with the Monitor field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetMonitorOk", "returns", "a", "tuple", "with", "the", "Monitor", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18937-L18942", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasMonitor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasMonitor returns a boolean if a field has been set.", "docstring_tokens": ["HasMonitor", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18945-L18951", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetMustShowBreakdown", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMustShowBreakdown returns the MustShowBreakdown field if non-nil, zero value otherwise.", "docstring_tokens": ["GetMustShowBreakdown", "returns", "the", "MustShowBreakdown", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18959-L18964", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetMustShowBreakdownOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMustShowBreakdownOk returns a tuple with the MustShowBreakdown field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetMustShowBreakdownOk", "returns", "a", "tuple", "with", "the", "MustShowBreakdown", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18968-L18973", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasMustShowBreakdown", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasMustShowBreakdown returns a boolean if a field has been set.", "docstring_tokens": ["HasMustShowBreakdown", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18976-L18982", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetMustShowDistribution", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMustShowDistribution returns the MustShowDistribution field if non-nil, zero value otherwise.", "docstring_tokens": ["GetMustShowDistribution", "returns", "the", "MustShowDistribution", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18990-L18995", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetMustShowDistributionOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMustShowDistributionOk returns a tuple with the MustShowDistribution field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetMustShowDistributionOk", "returns", "a", "tuple", "with", "the", "MustShowDistribution", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L18999-L19004", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasMustShowDistribution", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasMustShowDistribution returns a boolean if a field has been set.", "docstring_tokens": ["HasMustShowDistribution", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19007-L19013", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetMustShowErrors", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMustShowErrors returns the MustShowErrors field if non-nil, zero value otherwise.", "docstring_tokens": ["GetMustShowErrors", "returns", "the", "MustShowErrors", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19021-L19026", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetMustShowErrorsOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMustShowErrorsOk returns a tuple with the MustShowErrors field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetMustShowErrorsOk", "returns", "a", "tuple", "with", "the", "MustShowErrors", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19030-L19035", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasMustShowErrors", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasMustShowErrors returns a boolean if a field has been set.", "docstring_tokens": ["HasMustShowErrors", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19038-L19044", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetMustShowHits", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMustShowHits returns the MustShowHits field if non-nil, zero value otherwise.", "docstring_tokens": ["GetMustShowHits", "returns", "the", "MustShowHits", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19052-L19057", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetMustShowHitsOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMustShowHitsOk returns a tuple with the MustShowHits field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetMustShowHitsOk", "returns", "a", "tuple", "with", "the", "MustShowHits", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19061-L19066", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasMustShowHits", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasMustShowHits returns a boolean if a field has been set.", "docstring_tokens": ["HasMustShowHits", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19069-L19075", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetMustShowLatency", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMustShowLatency returns the MustShowLatency field if non-nil, zero value otherwise.", "docstring_tokens": ["GetMustShowLatency", "returns", "the", "MustShowLatency", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19083-L19088", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetMustShowLatencyOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMustShowLatencyOk returns a tuple with the MustShowLatency field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetMustShowLatencyOk", "returns", "a", "tuple", "with", "the", "MustShowLatency", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19092-L19097", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasMustShowLatency", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasMustShowLatency returns a boolean if a field has been set.", "docstring_tokens": ["HasMustShowLatency", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19100-L19106", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetMustShowResourceList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMustShowResourceList returns the MustShowResourceList field if non-nil, zero value otherwise.", "docstring_tokens": ["GetMustShowResourceList", "returns", "the", "MustShowResourceList", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19114-L19119", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetMustShowResourceListOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMustShowResourceListOk returns a tuple with the MustShowResourceList field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetMustShowResourceListOk", "returns", "a", "tuple", "with", "the", "MustShowResourceList", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19123-L19128", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasMustShowResourceList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasMustShowResourceList returns a boolean if a field has been set.", "docstring_tokens": ["HasMustShowResourceList", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19131-L19137", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetParams", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetParams returns the Params field if non-nil, zero value otherwise.", "docstring_tokens": ["GetParams", "returns", "the", "Params", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19145-L19150", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetParamsOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetParamsOk returns a tuple with the Params field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetParamsOk", "returns", "a", "tuple", "with", "the", "Params", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19154-L19159", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasParams", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasParams returns a boolean if a field has been set.", "docstring_tokens": ["HasParams", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19162-L19168", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetServiceService", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetServiceService returns the ServiceService field if non-nil, zero value otherwise.", "docstring_tokens": ["GetServiceService", "returns", "the", "ServiceService", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19269-L19274", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetServiceServiceOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetServiceServiceOk returns a tuple with the ServiceService field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetServiceServiceOk", "returns", "a", "tuple", "with", "the", "ServiceService", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19278-L19283", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasServiceService", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasServiceService returns a boolean if a field has been set.", "docstring_tokens": ["HasServiceService", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19286-L19292", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetSizeVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSizeVersion returns the SizeVersion field if non-nil, zero value otherwise.", "docstring_tokens": ["GetSizeVersion", "returns", "the", "SizeVersion", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19300-L19305", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetSizeVersionOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSizeVersionOk returns a tuple with the SizeVersion field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetSizeVersionOk", "returns", "a", "tuple", "with", "the", "SizeVersion", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19309-L19314", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasSizeVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasSizeVersion returns a boolean if a field has been set.", "docstring_tokens": ["HasSizeVersion", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19317-L19323", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetTextSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTextSize returns the TextSize field if non-nil, zero value otherwise.", "docstring_tokens": ["GetTextSize", "returns", "the", "TextSize", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19424-L19429", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetTextSizeOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTextSizeOk returns a tuple with the TextSize field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetTextSizeOk", "returns", "a", "tuple", "with", "the", "TextSize", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19433-L19438", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasTextSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasTextSize returns a boolean if a field has been set.", "docstring_tokens": ["HasTextSize", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19441-L19447", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetTick", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTick returns the Tick field if non-nil, zero value otherwise.", "docstring_tokens": ["GetTick", "returns", "the", "Tick", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19455-L19460", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetTickOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTickOk returns a tuple with the Tick field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetTickOk", "returns", "a", "tuple", "with", "the", "Tick", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19464-L19469", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasTick", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasTick returns a boolean if a field has been set.", "docstring_tokens": ["HasTick", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19472-L19478", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetTileDef", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTileDef returns the TileDef field if non-nil, zero value otherwise.", "docstring_tokens": ["GetTileDef", "returns", "the", "TileDef", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19548-L19553", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetTileDefOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTileDefOk returns a tuple with the TileDef field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetTileDefOk", "returns", "a", "tuple", "with", "the", "TileDef", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19557-L19562", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasTileDef", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasTileDef returns a boolean if a field has been set.", "docstring_tokens": ["HasTileDef", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19565-L19571", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetTitleText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTitleText returns the TitleText field if non-nil, zero value otherwise.", "docstring_tokens": ["GetTitleText", "returns", "the", "TitleText", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19703-L19708", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetTitleTextOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTitleTextOk returns a tuple with the TitleText field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetTitleTextOk", "returns", "a", "tuple", "with", "the", "TitleText", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19712-L19717", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasTitleText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasTitleText returns a boolean if a field has been set.", "docstring_tokens": ["HasTitleText", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19720-L19726", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetURL returns the URL field if non-nil, zero value otherwise.", "docstring_tokens": ["GetURL", "returns", "the", "URL", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19796-L19801", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetURLOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetURLOk returns a tuple with the URL field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetURLOk", "returns", "a", "tuple", "with", "the", "URL", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19805-L19810", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasURL returns a boolean if a field has been set.", "docstring_tokens": ["HasURL", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19813-L19819", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetCompute", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCompute returns the Compute field if non-nil, zero value otherwise.", "docstring_tokens": ["GetCompute", "returns", "the", "Compute", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19951-L19956", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetComputeOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetComputeOk returns a tuple with the Compute field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetComputeOk", "returns", "a", "tuple", "with", "the", "Compute", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19960-L19965", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasCompute", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasCompute returns a boolean if a field has been set.", "docstring_tokens": ["HasCompute", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19968-L19974", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetIndex", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetIndex returns the Index field if non-nil, zero value otherwise.", "docstring_tokens": ["GetIndex", "returns", "the", "Index", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19982-L19987", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetIndexOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetIndexOk returns a tuple with the Index field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetIndexOk", "returns", "a", "tuple", "with", "the", "Index", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19991-L19996", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasIndex", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasIndex returns a boolean if a field has been set.", "docstring_tokens": ["HasIndex", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L19999-L20005", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetSearch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSearch returns the Search field if non-nil, zero value otherwise.", "docstring_tokens": ["GetSearch", "returns", "the", "Search", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L20013-L20018", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetSearchOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSearchOk returns a tuple with the Search field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetSearchOk", "returns", "a", "tuple", "with", "the", "Search", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L20022-L20027", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasSearch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasSearch returns a boolean if a field has been set.", "docstring_tokens": ["HasSearch", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L20030-L20036", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetHideValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetHideValue returns the HideValue field if non-nil, zero value otherwise.", "docstring_tokens": ["GetHideValue", "returns", "the", "HideValue", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L20292-L20297", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetHideValueOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetHideValueOk returns a tuple with the HideValue field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetHideValueOk", "returns", "a", "tuple", "with", "the", "HideValue", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L20301-L20306", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasHideValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasHideValue returns a boolean if a field has been set.", "docstring_tokens": ["HasHideValue", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L20309-L20315", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetImageUrl", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetImageUrl returns the ImageUrl field if non-nil, zero value otherwise.", "docstring_tokens": ["GetImageUrl", "returns", "the", "ImageUrl", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L20323-L20328", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetImageUrlOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetImageUrlOk returns a tuple with the ImageUrl field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetImageUrlOk", "returns", "a", "tuple", "with", "the", "ImageUrl", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L20332-L20337", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasImageUrl", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasImageUrl returns a boolean if a field has been set.", "docstring_tokens": ["HasImageUrl", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L20340-L20346", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetAliasName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAliasName returns the AliasName field if non-nil, zero value otherwise.", "docstring_tokens": ["GetAliasName", "returns", "the", "AliasName", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L20695-L20700", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetAliasNameOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAliasNameOk returns a tuple with the AliasName field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetAliasNameOk", "returns", "a", "tuple", "with", "the", "AliasName", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L20704-L20709", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasAliasName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasAliasName returns a boolean if a field has been set.", "docstring_tokens": ["HasAliasName", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L20712-L20718", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetSearchBy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSearchBy returns the SearchBy field if non-nil, zero value otherwise.", "docstring_tokens": ["GetSearchBy", "returns", "the", "SearchBy", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L20819-L20824", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetSearchByOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSearchByOk returns a tuple with the SearchBy field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetSearchByOk", "returns", "a", "tuple", "with", "the", "SearchBy", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L20828-L20833", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasSearchBy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasSearchBy returns a boolean if a field has been set.", "docstring_tokens": ["HasSearchBy", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L20836-L20842", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetIncludeUnits", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetIncludeUnits returns the IncludeUnits field if non-nil, zero value otherwise.", "docstring_tokens": ["GetIncludeUnits", "returns", "the", "IncludeUnits", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L20912-L20917", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "GetIncludeUnitsOk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetIncludeUnitsOk returns a tuple with the IncludeUnits field if it's non-nil, zero value otherwise\n// and a boolean to check if the value has been set.", "docstring_tokens": ["GetIncludeUnitsOk", "returns", "a", "tuple", "with", "the", "IncludeUnits", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L20921-L20926", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "datadog-accessors.go", "func_name": "HasIncludeUnits", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasIncludeUnits returns a boolean if a field has been set.", "docstring_tokens": ["HasIncludeUnits", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/datadog-accessors.go#L20929-L20935", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "cmd/tools/gen-accessors.go", "func_name": "dump", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// dump sorts the results, and writes the generated code to a file", "docstring_tokens": ["dump", "sorts", "the", "results", "and", "writes", "the", "generated", "code", "to", "a", "file"], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/cmd/tools/gen-accessors.go#L139-L160", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "cmd/tools/gen-accessors.go", "func_name": "newAccessor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newAccessor returns a new accessor to be processed later", "docstring_tokens": ["newAccessor", "returns", "a", "new", "accessor", "to", "be", "processed", "later"], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/cmd/tools/gen-accessors.go#L163-L172", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "cmd/tools/gen-accessors.go", "func_name": "addIdent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// addIdent adds an accessor for an identifier, for a given receiver and field", "docstring_tokens": ["addIdent", "adds", "an", "accessor", "for", "an", "identifier", "for", "a", "given", "receiver", "and", "field"], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/cmd/tools/gen-accessors.go#L175-L195", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "cmd/tools/gen-accessors.go", "func_name": "addSelectorExpr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// addSelectorExpr adds an accessor for an identifier selector expression, for a given receiver and field", "docstring_tokens": ["addSelectorExpr", "adds", "an", "accessor", "for", "an", "identifier", "selector", "expression", "for", "a", "given", "receiver", "and", "field"], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/cmd/tools/gen-accessors.go#L198-L227", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "cmd/tools/gen-accessors.go", "func_name": "addMapType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// addMypType adds an accessor for a map type, for a given receiver and field", "docstring_tokens": ["addMypType", "adds", "an", "accessor", "for", "a", "map", "type", "for", "a", "given", "receiver", "and", "field"], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/cmd/tools/gen-accessors.go#L230-L253", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "cmd/tools/gen-accessors.go", "func_name": "addArrayType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// addArrayType adds an accessor for a array type for a given receiver and field", "docstring_tokens": ["addArrayType", "adds", "an", "accessor", "for", "a", "array", "type", "for", "a", "given", "receiver", "and", "field"], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/cmd/tools/gen-accessors.go#L256-L268", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "downtimes.go", "func_name": "CreateDowntime", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateDowntime adds a new downtme to the system. This returns a pointer\n// to a Downtime so you can pass that to UpdateDowntime or CancelDowntime\n// later if needed.", "docstring_tokens": ["CreateDowntime", "adds", "a", "new", "downtme", "to", "the", "system", ".", "This", "returns", "a", "pointer", "to", "a", "Downtime", "so", "you", "can", "pass", "that", "to", "UpdateDowntime", "or", "CancelDowntime", "later", "if", "needed", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/downtimes.go#L47-L53", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "downtimes.go", "func_name": "UpdateDowntime", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateDowntime takes a downtime that was previously retrieved through some method\n// and sends it back to the server.", "docstring_tokens": ["UpdateDowntime", "takes", "a", "downtime", "that", "was", "previously", "retrieved", "through", "some", "method", "and", "sends", "it", "back", "to", "the", "server", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/downtimes.go#L57-L60", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "downtimes.go", "func_name": "GetDowntime", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Getdowntime retrieves an downtime by identifier.", "docstring_tokens": ["Getdowntime", "retrieves", "an", "downtime", "by", "identifier", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/downtimes.go#L63-L69", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "downtimes.go", "func_name": "GetDowntimes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDowntimes returns a slice of all downtimes.", "docstring_tokens": ["GetDowntimes", "returns", "a", "slice", "of", "all", "downtimes", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/downtimes.go#L78-L84", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "api_keys.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON is a custom method for handling datetime marshalling", "docstring_tokens": ["MarshalJSON", "is", "a", "custom", "method", "for", "handling", "datetime", "marshalling"], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/api_keys.go#L39-L49", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "api_keys.go", "func_name": "UnmarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalJSON is a custom method for handling datetime unmarshalling", "docstring_tokens": ["UnmarshalJSON", "is", "a", "custom", "method", "for", "handling", "datetime", "unmarshalling"], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/api_keys.go#L52-L71", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "api_keys.go", "func_name": "GetAPIKeys", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAPIKeys returns all API keys or error on failure", "docstring_tokens": ["GetAPIKeys", "returns", "all", "API", "keys", "or", "error", "on", "failure"], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/api_keys.go#L74-L81", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "api_keys.go", "func_name": "GetAPIKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAPIKey returns a single API key or error on failure", "docstring_tokens": ["GetAPIKey", "returns", "a", "single", "API", "key", "or", "error", "on", "failure"], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/api_keys.go#L84-L91", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "api_keys.go", "func_name": "CreateAPIKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateAPIKey creates an API key from given struct and fills the rest of its\n// fields, or returns an error on failure", "docstring_tokens": ["CreateAPIKey", "creates", "an", "API", "key", "from", "given", "struct", "and", "fills", "the", "rest", "of", "its", "fields", "or", "returns", "an", "error", "on", "failure"], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/api_keys.go#L95-L106", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "api_keys.go", "func_name": "DeleteAPIKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteAPIKey deletes API key given by key, returns an error", "docstring_tokens": ["DeleteAPIKey", "deletes", "API", "key", "given", "by", "key", "returns", "an", "error"], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/api_keys.go#L120-L122", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "series.go", "func_name": "PostMetrics", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PostMetrics takes as input a slice of metrics and then posts them up to the\n// server for posting data.", "docstring_tokens": ["PostMetrics", "takes", "as", "input", "a", "slice", "of", "metrics", "and", "then", "posts", "them", "up", "to", "the", "server", "for", "posting", "data", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/series.go#L72-L75", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "screenboards.go", "func_name": "GetScreenboard", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetScreenboard returns a single screenboard created on this account.", "docstring_tokens": ["GetScreenboard", "returns", "a", "single", "screenboard", "created", "on", "this", "account", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/screenboards.go#L43-L54", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "screenboards.go", "func_name": "GetScreenboards", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetScreenboards returns a list of all screenboards created on this account.", "docstring_tokens": ["GetScreenboards", "returns", "a", "list", "of", "all", "screenboards", "created", "on", "this", "account", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/screenboards.go#L57-L63", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "screenboards.go", "func_name": "CreateScreenboard", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateScreenboard creates a new screenboard when given a Screenboard struct. Note\n// that the Id, Resource, Url and similar elements are not used in creation.", "docstring_tokens": ["CreateScreenboard", "creates", "a", "new", "screenboard", "when", "given", "a", "Screenboard", "struct", ".", "Note", "that", "the", "Id", "Resource", "Url", "and", "similar", "elements", "are", "not", "used", "in", "creation", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/screenboards.go#L72-L78", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "screenboards.go", "func_name": "UpdateScreenboard", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateScreenboard in essence takes a Screenboard struct and persists it back to\n// the server. Use this if you've updated your local and need to push it back.", "docstring_tokens": ["UpdateScreenboard", "in", "essence", "takes", "a", "Screenboard", "struct", "and", "persists", "it", "back", "to", "the", "server", ".", "Use", "this", "if", "you", "ve", "updated", "your", "local", "and", "need", "to", "push", "it", "back", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/screenboards.go#L82-L84", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "screenboards.go", "func_name": "ShareScreenboard", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ShareScreenboard shares an existing screenboard, it takes and updates ScreenShareResponse", "docstring_tokens": ["ShareScreenboard", "shares", "an", "existing", "screenboard", "it", "takes", "and", "updates", "ScreenShareResponse"], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/screenboards.go#L92-L94", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "screenboards.go", "func_name": "RevokeScreenboard", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RevokeScreenboard revokes a currently shared screenboard", "docstring_tokens": ["RevokeScreenboard", "revokes", "a", "currently", "shared", "screenboard"], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/screenboards.go#L97-L99", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "tags.go", "func_name": "GetTags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTags returns a map of tags.", "docstring_tokens": ["GetTags", "returns", "a", "map", "of", "tags", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/tags.go#L25-L35", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "tags.go", "func_name": "GetHostTags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetHostTags returns a slice of tags for a given host and source.", "docstring_tokens": ["GetHostTags", "returns", "a", "slice", "of", "tags", "for", "a", "given", "host", "and", "source", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/tags.go#L38-L48", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "tags.go", "func_name": "AddTagsToHost", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddTagsToHost does exactly what it says on the tin. Given a list of tags,\n// add them to the host. The source is optionally specified, and defaults to\n// \"users\" as per the API documentation.", "docstring_tokens": ["AddTagsToHost", "does", "exactly", "what", "it", "says", "on", "the", "tin", ".", "Given", "a", "list", "of", "tags", "add", "them", "to", "the", "host", ".", "The", "source", "is", "optionally", "specified", "and", "defaults", "to", "users", "as", "per", "the", "API", "documentation", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/tags.go#L67-L73", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "tags.go", "func_name": "RemoveHostTags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveHostTags removes all tags from a host for the given source. If none is\n// given, the API defaults to \"users\".", "docstring_tokens": ["RemoveHostTags", "removes", "all", "tags", "from", "a", "host", "for", "the", "given", "source", ".", "If", "none", "is", "given", "the", "API", "defaults", "to", "users", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/tags.go#L87-L93", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "request.go", "func_name": "redactError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// redactError removes api and application keys from error strings", "docstring_tokens": ["redactError", "removes", "api", "and", "application", "keys", "from", "error", "strings"], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/request.go#L46-L65", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "request.go", "func_name": "doRequestWithRetries", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// doRequestWithRetries performs an HTTP request repeatedly for maxTime or until\n// no error and no acceptable HTTP response code was returned.", "docstring_tokens": ["doRequestWithRetries", "performs", "an", "HTTP", "request", "repeatedly", "for", "maxTime", "or", "until", "no", "error", "and", "no", "acceptable", "HTTP", "response", "code", "was", "returned", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/request.go#L145-L188", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "events.go", "func_name": "PostEvent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PostEvent takes as input an event and then posts it to the server.", "docstring_tokens": ["PostEvent", "takes", "as", "input", "an", "event", "and", "then", "posts", "it", "to", "the", "server", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/events.go#L46-L52", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "events.go", "func_name": "GetEvent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetEvent gets a single event given an identifier.", "docstring_tokens": ["GetEvent", "gets", "a", "single", "event", "given", "an", "identifier", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/events.go#L55-L61", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "events.go", "func_name": "GetEvents", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetEvents returns a slice of events from the query stream.", "docstring_tokens": ["GetEvents", "returns", "a", "slice", "of", "events", "from", "the", "query", "stream", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/events.go#L64-L87", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "metric_metadata.go", "func_name": "ViewMetricMetadata", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ViewMetricMetadata allows you to get metadata about a specific metric.", "docstring_tokens": ["ViewMetricMetadata", "allows", "you", "to", "get", "metadata", "about", "a", "specific", "metric", "."], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/metric_metadata.go#L24-L30", "partition": "valid"} +{"repo": "zorkian/go-datadog-api", "path": "checks.go", "func_name": "PostCheck", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PostCheck posts the result of a check run to the server", "docstring_tokens": ["PostCheck", "posts", "the", "result", "of", "a", "check", "run", "to", "the", "server"], "sha": "fcf4c3b6edfd28f3bf01965725f290489b10d1ec", "url": "https://github.com/zorkian/go-datadog-api/blob/fcf4c3b6edfd28f3bf01965725f290489b10d1ec/checks.go#L22-L25", "partition": "valid"} +{"repo": "sourcegraph/jsonrpc2", "path": "stream.go", "func_name": "WriteObject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteObject implements ObjectStream.", "docstring_tokens": ["WriteObject", "implements", "ObjectStream", "."], "sha": "35a74f039c6a54af5bf0402d8f7da046c3f63ba2", "url": "https://github.com/sourcegraph/jsonrpc2/blob/35a74f039c6a54af5bf0402d8f7da046c3f63ba2/stream.go#L52-L59", "partition": "valid"} +{"repo": "sourcegraph/jsonrpc2", "path": "stream.go", "func_name": "ReadObject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadObject implements ObjectStream.", "docstring_tokens": ["ReadObject", "implements", "ObjectStream", "."], "sha": "35a74f039c6a54af5bf0402d8f7da046c3f63ba2", "url": "https://github.com/sourcegraph/jsonrpc2/blob/35a74f039c6a54af5bf0402d8f7da046c3f63ba2/stream.go#L62-L64", "partition": "valid"} +{"repo": "sourcegraph/jsonrpc2", "path": "jsonrpc2.go", "func_name": "SetParams", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetParams sets r.Params to the JSON representation of v. If JSON\n// marshaling fails, it returns an error.", "docstring_tokens": ["SetParams", "sets", "r", ".", "Params", "to", "the", "JSON", "representation", "of", "v", ".", "If", "JSON", "marshaling", "fails", "it", "returns", "an", "error", "."], "sha": "35a74f039c6a54af5bf0402d8f7da046c3f63ba2", "url": "https://github.com/sourcegraph/jsonrpc2/blob/35a74f039c6a54af5bf0402d8f7da046c3f63ba2/jsonrpc2.go#L107-L114", "partition": "valid"} +{"repo": "sourcegraph/jsonrpc2", "path": "jsonrpc2.go", "func_name": "SetMeta", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetMeta sets r.Meta to the JSON representation of v. If JSON\n// marshaling fails, it returns an error.", "docstring_tokens": ["SetMeta", "sets", "r", ".", "Meta", "to", "the", "JSON", "representation", "of", "v", ".", "If", "JSON", "marshaling", "fails", "it", "returns", "an", "error", "."], "sha": "35a74f039c6a54af5bf0402d8f7da046c3f63ba2", "url": "https://github.com/sourcegraph/jsonrpc2/blob/35a74f039c6a54af5bf0402d8f7da046c3f63ba2/jsonrpc2.go#L118-L125", "partition": "valid"} +{"repo": "sourcegraph/jsonrpc2", "path": "jsonrpc2.go", "func_name": "SetResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetResult sets r.Result to the JSON representation of v. If JSON\n// marshaling fails, it returns an error.", "docstring_tokens": ["SetResult", "sets", "r", ".", "Result", "to", "the", "JSON", "representation", "of", "v", ".", "If", "JSON", "marshaling", "fails", "it", "returns", "an", "error", "."], "sha": "35a74f039c6a54af5bf0402d8f7da046c3f63ba2", "url": "https://github.com/sourcegraph/jsonrpc2/blob/35a74f039c6a54af5bf0402d8f7da046c3f63ba2/jsonrpc2.go#L184-L191", "partition": "valid"} +{"repo": "sourcegraph/jsonrpc2", "path": "jsonrpc2.go", "func_name": "SetError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetError sets e.Error to the JSON representation of v. If JSON\n// marshaling fails, it panics.", "docstring_tokens": ["SetError", "sets", "e", ".", "Error", "to", "the", "JSON", "representation", "of", "v", ".", "If", "JSON", "marshaling", "fails", "it", "panics", "."], "sha": "35a74f039c6a54af5bf0402d8f7da046c3f63ba2", "url": "https://github.com/sourcegraph/jsonrpc2/blob/35a74f039c6a54af5bf0402d8f7da046c3f63ba2/jsonrpc2.go#L202-L208", "partition": "valid"} +{"repo": "sourcegraph/jsonrpc2", "path": "jsonrpc2.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close closes the JSON-RPC connection. The connection may not be\n// used after it has been closed.", "docstring_tokens": ["Close", "closes", "the", "JSON", "-", "RPC", "connection", ".", "The", "connection", "may", "not", "be", "used", "after", "it", "has", "been", "closed", "."], "sha": "35a74f039c6a54af5bf0402d8f7da046c3f63ba2", "url": "https://github.com/sourcegraph/jsonrpc2/blob/35a74f039c6a54af5bf0402d8f7da046c3f63ba2/jsonrpc2.go#L337-L346", "partition": "valid"} +{"repo": "sourcegraph/jsonrpc2", "path": "jsonrpc2.go", "func_name": "Reply", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reply sends a successful response with a result.", "docstring_tokens": ["Reply", "sends", "a", "successful", "response", "with", "a", "result", "."], "sha": "35a74f039c6a54af5bf0402d8f7da046c3f63ba2", "url": "https://github.com/sourcegraph/jsonrpc2/blob/35a74f039c6a54af5bf0402d8f7da046c3f63ba2/jsonrpc2.go#L479-L486", "partition": "valid"} +{"repo": "sourcegraph/jsonrpc2", "path": "jsonrpc2.go", "func_name": "ReplyWithError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReplyWithError sends a response with an error.", "docstring_tokens": ["ReplyWithError", "sends", "a", "response", "with", "an", "error", "."], "sha": "35a74f039c6a54af5bf0402d8f7da046c3f63ba2", "url": "https://github.com/sourcegraph/jsonrpc2/blob/35a74f039c6a54af5bf0402d8f7da046c3f63ba2/jsonrpc2.go#L489-L492", "partition": "valid"} +{"repo": "sourcegraph/jsonrpc2", "path": "conn_opt.go", "func_name": "LogMessages", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LogMessages causes all messages sent and received on conn to be\n// logged using the provided logger.", "docstring_tokens": ["LogMessages", "causes", "all", "messages", "sent", "and", "received", "on", "conn", "to", "be", "logged", "using", "the", "provided", "logger", "."], "sha": "35a74f039c6a54af5bf0402d8f7da046c3f63ba2", "url": "https://github.com/sourcegraph/jsonrpc2/blob/35a74f039c6a54af5bf0402d8f7da046c3f63ba2/conn_opt.go#L32-L101", "partition": "valid"} +{"repo": "sourcegraph/jsonrpc2", "path": "handler_with_error.go", "func_name": "HandlerWithError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HandlerWithError implements Handler by calling the func for each\n// request and handling returned errors and results.", "docstring_tokens": ["HandlerWithError", "implements", "Handler", "by", "calling", "the", "func", "for", "each", "request", "and", "handling", "returned", "errors", "and", "results", "."], "sha": "35a74f039c6a54af5bf0402d8f7da046c3f63ba2", "url": "https://github.com/sourcegraph/jsonrpc2/blob/35a74f039c6a54af5bf0402d8f7da046c3f63ba2/handler_with_error.go#L10-L12", "partition": "valid"} +{"repo": "sourcegraph/jsonrpc2", "path": "handler_with_error.go", "func_name": "Handle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Handle implements Handler.", "docstring_tokens": ["Handle", "implements", "Handler", "."], "sha": "35a74f039c6a54af5bf0402d8f7da046c3f63ba2", "url": "https://github.com/sourcegraph/jsonrpc2/blob/35a74f039c6a54af5bf0402d8f7da046c3f63ba2/handler_with_error.go#L20-L48", "partition": "valid"} +{"repo": "sourcegraph/jsonrpc2", "path": "websocket/stream.go", "func_name": "ReadObject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadObject implements jsonrpc2.ObjectStream.", "docstring_tokens": ["ReadObject", "implements", "jsonrpc2", ".", "ObjectStream", "."], "sha": "35a74f039c6a54af5bf0402d8f7da046c3f63ba2", "url": "https://github.com/sourcegraph/jsonrpc2/blob/35a74f039c6a54af5bf0402d8f7da046c3f63ba2/websocket/stream.go#L29-L39", "partition": "valid"} +{"repo": "sourcegraph/jsonrpc2", "path": "call_opt.go", "func_name": "PickID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PickID returns a call option which sets the ID on a request. Care must be\n// taken to ensure there are no conflicts with any previously picked ID, nor\n// with the default sequence ID.", "docstring_tokens": ["PickID", "returns", "a", "call", "option", "which", "sets", "the", "ID", "on", "a", "request", ".", "Care", "must", "be", "taken", "to", "ensure", "there", "are", "no", "conflicts", "with", "any", "previously", "picked", "ID", "nor", "with", "the", "default", "sequence", "ID", "."], "sha": "35a74f039c6a54af5bf0402d8f7da046c3f63ba2", "url": "https://github.com/sourcegraph/jsonrpc2/blob/35a74f039c6a54af5bf0402d8f7da046c3f63ba2/call_opt.go#L25-L30", "partition": "valid"} +{"repo": "anacrolix/dht", "path": "krpc/nodeaddr.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// A zero Port is taken to mean no port provided, per BEP 7.", "docstring_tokens": ["A", "zero", "Port", "is", "taken", "to", "mean", "no", "port", "provided", "per", "BEP", "7", "."], "sha": "b51b1061529d728173525128ca77b38eb839db42", "url": "https://github.com/anacrolix/dht/blob/b51b1061529d728173525128ca77b38eb839db42/krpc/nodeaddr.go#L18-L23", "partition": "valid"} +{"repo": "anacrolix/dht", "path": "security.go", "func_name": "crcIP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Generate the CRC used to make or validate secure node ID.", "docstring_tokens": ["Generate", "the", "CRC", "used", "to", "make", "or", "validate", "secure", "node", "ID", "."], "sha": "b51b1061529d728173525128ca77b38eb839db42", "url": "https://github.com/anacrolix/dht/blob/b51b1061529d728173525128ca77b38eb839db42/security.go#L18-L31", "partition": "valid"} +{"repo": "anacrolix/dht", "path": "server.go", "func_name": "Stats", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stats returns statistics for the server.", "docstring_tokens": ["Stats", "returns", "statistics", "for", "the", "server", "."], "sha": "b51b1061529d728173525128ca77b38eb839db42", "url": "https://github.com/anacrolix/dht/blob/b51b1061529d728173525128ca77b38eb839db42/server.go#L110-L118", "partition": "valid"} +{"repo": "anacrolix/dht", "path": "server.go", "func_name": "NewServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewServer initializes a new DHT node server.", "docstring_tokens": ["NewServer", "initializes", "a", "new", "DHT", "node", "server", "."], "sha": "b51b1061529d728173525128ca77b38eb839db42", "url": "https://github.com/anacrolix/dht/blob/b51b1061529d728173525128ca77b38eb839db42/server.go#L127-L167", "partition": "valid"} +{"repo": "anacrolix/dht", "path": "server.go", "func_name": "SetIPBlockList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Packets to and from any address matching a range in the list are dropped.", "docstring_tokens": ["Packets", "to", "and", "from", "any", "address", "matching", "a", "range", "in", "the", "list", "are", "dropped", "."], "sha": "b51b1061529d728173525128ca77b38eb839db42", "url": "https://github.com/anacrolix/dht/blob/b51b1061529d728173525128ca77b38eb839db42/server.go#L187-L191", "partition": "valid"} +{"repo": "anacrolix/dht", "path": "server.go", "func_name": "AddNode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Adds directly to the node table.", "docstring_tokens": ["Adds", "directly", "to", "the", "node", "table", "."], "sha": "b51b1061529d728173525128ca77b38eb839db42", "url": "https://github.com/anacrolix/dht/blob/b51b1061529d728173525128ca77b38eb839db42/server.go#L292-L299", "partition": "valid"} +{"repo": "anacrolix/dht", "path": "server.go", "func_name": "getNode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns the node if it's in the routing table, adding it if appropriate.", "docstring_tokens": ["Returns", "the", "node", "if", "it", "s", "in", "the", "routing", "table", "adding", "it", "if", "appropriate", "."], "sha": "b51b1061529d728173525128ca77b38eb839db42", "url": "https://github.com/anacrolix/dht/blob/b51b1061529d728173525128ca77b38eb839db42/server.go#L458-L490", "partition": "valid"} +{"repo": "anacrolix/dht", "path": "server.go", "func_name": "Ping", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sends a ping query to the address given.", "docstring_tokens": ["Sends", "a", "ping", "query", "to", "the", "address", "given", "."], "sha": "b51b1061529d728173525128ca77b38eb839db42", "url": "https://github.com/anacrolix/dht/blob/b51b1061529d728173525128ca77b38eb839db42/server.go#L682-L686", "partition": "valid"} +{"repo": "anacrolix/dht", "path": "server.go", "func_name": "addResponseNodes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add response nodes to node table.", "docstring_tokens": ["Add", "response", "nodes", "to", "node", "table", "."], "sha": "b51b1061529d728173525128ca77b38eb839db42", "url": "https://github.com/anacrolix/dht/blob/b51b1061529d728173525128ca77b38eb839db42/server.go#L716-L723", "partition": "valid"} +{"repo": "anacrolix/dht", "path": "server.go", "func_name": "findNode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sends a find_node query to addr. targetID is the node we're looking for.", "docstring_tokens": ["Sends", "a", "find_node", "query", "to", "addr", ".", "targetID", "is", "the", "node", "we", "re", "looking", "for", "."], "sha": "b51b1061529d728173525128ca77b38eb839db42", "url": "https://github.com/anacrolix/dht/blob/b51b1061529d728173525128ca77b38eb839db42/server.go#L726-L738", "partition": "valid"} +{"repo": "anacrolix/dht", "path": "server.go", "func_name": "Bootstrap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Populates the node table.", "docstring_tokens": ["Populates", "the", "node", "table", "."], "sha": "b51b1061529d728173525128ca77b38eb839db42", "url": "https://github.com/anacrolix/dht/blob/b51b1061529d728173525128ca77b38eb839db42/server.go#L750-L787", "partition": "valid"} +{"repo": "anacrolix/dht", "path": "server.go", "func_name": "NumNodes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns how many nodes are in the node table.", "docstring_tokens": ["Returns", "how", "many", "nodes", "are", "in", "the", "node", "table", "."], "sha": "b51b1061529d728173525128ca77b38eb839db42", "url": "https://github.com/anacrolix/dht/blob/b51b1061529d728173525128ca77b38eb839db42/server.go#L790-L794", "partition": "valid"} +{"repo": "anacrolix/dht", "path": "server.go", "func_name": "Nodes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Exports the current node table.", "docstring_tokens": ["Exports", "the", "current", "node", "table", "."], "sha": "b51b1061529d728173525128ca77b38eb839db42", "url": "https://github.com/anacrolix/dht/blob/b51b1061529d728173525128ca77b38eb839db42/server.go#L797-L808", "partition": "valid"} +{"repo": "anacrolix/dht", "path": "server.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stops the server network activity. This is all that's required to clean-up a Server.", "docstring_tokens": ["Stops", "the", "server", "network", "activity", ".", "This", "is", "all", "that", "s", "required", "to", "clean", "-", "up", "a", "Server", "."], "sha": "b51b1061529d728173525128ca77b38eb839db42", "url": "https://github.com/anacrolix/dht/blob/b51b1061529d728173525128ca77b38eb839db42/server.go#L811-L816", "partition": "valid"} +{"repo": "anacrolix/dht", "path": "node.go", "func_name": "IsGood", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Per the spec in BEP 5.", "docstring_tokens": ["Per", "the", "spec", "in", "BEP", "5", "."], "sha": "b51b1061529d728173525128ca77b38eb839db42", "url": "https://github.com/anacrolix/dht/blob/b51b1061529d728173525128ca77b38eb839db42/node.go#L46-L57", "partition": "valid"} +{"repo": "anacrolix/dht", "path": "announce.go", "func_name": "NumContacted", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns the number of distinct remote addresses the announce has queried.", "docstring_tokens": ["Returns", "the", "number", "of", "distinct", "remote", "addresses", "the", "announce", "has", "queried", "."], "sha": "b51b1061529d728173525128ca77b38eb839db42", "url": "https://github.com/anacrolix/dht/blob/b51b1061529d728173525128ca77b38eb839db42/announce.go#L46-L50", "partition": "valid"} +{"repo": "anacrolix/dht", "path": "announce.go", "func_name": "Announce", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// This is kind of the main thing you want to do with DHT. It traverses the\n// graph toward nodes that store peers for the infohash, streaming them to the\n// caller, and announcing the local node to each node if allowed and\n// specified.", "docstring_tokens": ["This", "is", "kind", "of", "the", "main", "thing", "you", "want", "to", "do", "with", "DHT", ".", "It", "traverses", "the", "graph", "toward", "nodes", "that", "store", "peers", "for", "the", "infohash", "streaming", "them", "to", "the", "caller", "and", "announcing", "the", "local", "node", "to", "each", "node", "if", "allowed", "and", "specified", "."], "sha": "b51b1061529d728173525128ca77b38eb839db42", "url": "https://github.com/anacrolix/dht/blob/b51b1061529d728173525128ca77b38eb839db42/announce.go#L60-L102", "partition": "valid"} +{"repo": "anacrolix/dht", "path": "announce.go", "func_name": "maybeAnnouncePeer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Announce to a peer, if appropriate.", "docstring_tokens": ["Announce", "to", "a", "peer", "if", "appropriate", "."], "sha": "b51b1061529d728173525128ca77b38eb839db42", "url": "https://github.com/anacrolix/dht/blob/b51b1061529d728173525128ca77b38eb839db42/announce.go#L174-L184", "partition": "valid"} +{"repo": "anacrolix/dht", "path": "announce.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stop the announce.", "docstring_tokens": ["Stop", "the", "announce", "."], "sha": "b51b1061529d728173525128ca77b38eb839db42", "url": "https://github.com/anacrolix/dht/blob/b51b1061529d728173525128ca77b38eb839db42/announce.go#L231-L235", "partition": "valid"} +{"repo": "google/uuid", "path": "version1.go", "func_name": "NewUUID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewUUID returns a Version 1 UUID based on the current NodeID and clock\n// sequence, and the current time. If the NodeID has not been set by SetNodeID\n// or SetNodeInterface then it will be set automatically. If the NodeID cannot\n// be set NewUUID returns nil. If clock sequence has not been set by\n// SetClockSequence then it will be set automatically. If GetTime fails to\n// return the current NewUUID returns nil and an error.\n//\n// In most cases, New should be used.", "docstring_tokens": ["NewUUID", "returns", "a", "Version", "1", "UUID", "based", "on", "the", "current", "NodeID", "and", "clock", "sequence", "and", "the", "current", "time", ".", "If", "the", "NodeID", "has", "not", "been", "set", "by", "SetNodeID", "or", "SetNodeInterface", "then", "it", "will", "be", "set", "automatically", ".", "If", "the", "NodeID", "cannot", "be", "set", "NewUUID", "returns", "nil", ".", "If", "clock", "sequence", "has", "not", "been", "set", "by", "SetClockSequence", "then", "it", "will", "be", "set", "automatically", ".", "If", "GetTime", "fails", "to", "return", "the", "current", "NewUUID", "returns", "nil", "and", "an", "error", ".", "In", "most", "cases", "New", "should", "be", "used", "."], "sha": "c2e93f3ae59f2904160ceaab466009f965df46d6", "url": "https://github.com/google/uuid/blob/c2e93f3ae59f2904160ceaab466009f965df46d6/version1.go#L19-L44", "partition": "valid"} +{"repo": "google/uuid", "path": "node.go", "func_name": "SetNodeInterface", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetNodeInterface selects the hardware address to be used for Version 1 UUIDs.\n// If name is \"\" then the first usable interface found will be used or a random\n// Node ID will be generated. If a named interface cannot be found then false\n// is returned.\n//\n// SetNodeInterface never fails when name is \"\".", "docstring_tokens": ["SetNodeInterface", "selects", "the", "hardware", "address", "to", "be", "used", "for", "Version", "1", "UUIDs", ".", "If", "name", "is", "then", "the", "first", "usable", "interface", "found", "will", "be", "used", "or", "a", "random", "Node", "ID", "will", "be", "generated", ".", "If", "a", "named", "interface", "cannot", "be", "found", "then", "false", "is", "returned", ".", "SetNodeInterface", "never", "fails", "when", "name", "is", "."], "sha": "c2e93f3ae59f2904160ceaab466009f965df46d6", "url": "https://github.com/google/uuid/blob/c2e93f3ae59f2904160ceaab466009f965df46d6/node.go#L33-L37", "partition": "valid"} +{"repo": "google/uuid", "path": "node.go", "func_name": "NodeID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NodeID returns a slice of a copy of the current Node ID, setting the Node ID\n// if not already set.", "docstring_tokens": ["NodeID", "returns", "a", "slice", "of", "a", "copy", "of", "the", "current", "Node", "ID", "setting", "the", "Node", "ID", "if", "not", "already", "set", "."], "sha": "c2e93f3ae59f2904160ceaab466009f965df46d6", "url": "https://github.com/google/uuid/blob/c2e93f3ae59f2904160ceaab466009f965df46d6/node.go#L60-L68", "partition": "valid"} +{"repo": "google/uuid", "path": "node.go", "func_name": "SetNodeID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetNodeID sets the Node ID to be used for Version 1 UUIDs. The first 6 bytes\n// of id are used. If id is less than 6 bytes then false is returned and the\n// Node ID is not set.", "docstring_tokens": ["SetNodeID", "sets", "the", "Node", "ID", "to", "be", "used", "for", "Version", "1", "UUIDs", ".", "The", "first", "6", "bytes", "of", "id", "are", "used", ".", "If", "id", "is", "less", "than", "6", "bytes", "then", "false", "is", "returned", "and", "the", "Node", "ID", "is", "not", "set", "."], "sha": "c2e93f3ae59f2904160ceaab466009f965df46d6", "url": "https://github.com/google/uuid/blob/c2e93f3ae59f2904160ceaab466009f965df46d6/node.go#L73-L82", "partition": "valid"} +{"repo": "google/uuid", "path": "node.go", "func_name": "NodeID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NodeID returns the 6 byte node id encoded in uuid. It returns nil if uuid is\n// not valid. The NodeID is only well defined for version 1 and 2 UUIDs.", "docstring_tokens": ["NodeID", "returns", "the", "6", "byte", "node", "id", "encoded", "in", "uuid", ".", "It", "returns", "nil", "if", "uuid", "is", "not", "valid", ".", "The", "NodeID", "is", "only", "well", "defined", "for", "version", "1", "and", "2", "UUIDs", "."], "sha": "c2e93f3ae59f2904160ceaab466009f965df46d6", "url": "https://github.com/google/uuid/blob/c2e93f3ae59f2904160ceaab466009f965df46d6/node.go#L86-L90", "partition": "valid"} +{"repo": "google/uuid", "path": "uuid.go", "func_name": "ParseBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseBytes is like Parse, except it parses a byte slice instead of a string.", "docstring_tokens": ["ParseBytes", "is", "like", "Parse", "except", "it", "parses", "a", "byte", "slice", "instead", "of", "a", "string", "."], "sha": "c2e93f3ae59f2904160ceaab466009f965df46d6", "url": "https://github.com/google/uuid/blob/c2e93f3ae59f2904160ceaab466009f965df46d6/uuid.go#L94-L135", "partition": "valid"} +{"repo": "google/uuid", "path": "uuid.go", "func_name": "MustParse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustParse is like Parse but panics if the string cannot be parsed.\n// It simplifies safe initialization of global variables holding compiled UUIDs.", "docstring_tokens": ["MustParse", "is", "like", "Parse", "but", "panics", "if", "the", "string", "cannot", "be", "parsed", ".", "It", "simplifies", "safe", "initialization", "of", "global", "variables", "holding", "compiled", "UUIDs", "."], "sha": "c2e93f3ae59f2904160ceaab466009f965df46d6", "url": "https://github.com/google/uuid/blob/c2e93f3ae59f2904160ceaab466009f965df46d6/uuid.go#L139-L145", "partition": "valid"} +{"repo": "google/uuid", "path": "uuid.go", "func_name": "FromBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FromBytes creates a new UUID from a byte slice. Returns an error if the slice\n// does not have a length of 16. The bytes are copied from the slice.", "docstring_tokens": ["FromBytes", "creates", "a", "new", "UUID", "from", "a", "byte", "slice", ".", "Returns", "an", "error", "if", "the", "slice", "does", "not", "have", "a", "length", "of", "16", ".", "The", "bytes", "are", "copied", "from", "the", "slice", "."], "sha": "c2e93f3ae59f2904160ceaab466009f965df46d6", "url": "https://github.com/google/uuid/blob/c2e93f3ae59f2904160ceaab466009f965df46d6/uuid.go#L149-L152", "partition": "valid"} +{"repo": "google/uuid", "path": "uuid.go", "func_name": "Must", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Must returns uuid if err is nil and panics otherwise.", "docstring_tokens": ["Must", "returns", "uuid", "if", "err", "is", "nil", "and", "panics", "otherwise", "."], "sha": "c2e93f3ae59f2904160ceaab466009f965df46d6", "url": "https://github.com/google/uuid/blob/c2e93f3ae59f2904160ceaab466009f965df46d6/uuid.go#L155-L160", "partition": "valid"} +{"repo": "google/uuid", "path": "uuid.go", "func_name": "Variant", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Variant returns the variant encoded in uuid.", "docstring_tokens": ["Variant", "returns", "the", "variant", "encoded", "in", "uuid", "."], "sha": "c2e93f3ae59f2904160ceaab466009f965df46d6", "url": "https://github.com/google/uuid/blob/c2e93f3ae59f2904160ceaab466009f965df46d6/uuid.go#L192-L203", "partition": "valid"} +{"repo": "google/uuid", "path": "time.go", "func_name": "Time", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Time returns the time in 100s of nanoseconds since 15 Oct 1582 encoded in\n// uuid. The time is only defined for version 1 and 2 UUIDs.", "docstring_tokens": ["Time", "returns", "the", "time", "in", "100s", "of", "nanoseconds", "since", "15", "Oct", "1582", "encoded", "in", "uuid", ".", "The", "time", "is", "only", "defined", "for", "version", "1", "and", "2", "UUIDs", "."], "sha": "c2e93f3ae59f2904160ceaab466009f965df46d6", "url": "https://github.com/google/uuid/blob/c2e93f3ae59f2904160ceaab466009f965df46d6/time.go#L112-L117", "partition": "valid"} +{"repo": "google/uuid", "path": "marshal.go", "func_name": "MarshalText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalText implements encoding.TextMarshaler.", "docstring_tokens": ["MarshalText", "implements", "encoding", ".", "TextMarshaler", "."], "sha": "c2e93f3ae59f2904160ceaab466009f965df46d6", "url": "https://github.com/google/uuid/blob/c2e93f3ae59f2904160ceaab466009f965df46d6/marshal.go#L10-L14", "partition": "valid"} +{"repo": "google/uuid", "path": "marshal.go", "func_name": "UnmarshalText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalText implements encoding.TextUnmarshaler.", "docstring_tokens": ["UnmarshalText", "implements", "encoding", ".", "TextUnmarshaler", "."], "sha": "c2e93f3ae59f2904160ceaab466009f965df46d6", "url": "https://github.com/google/uuid/blob/c2e93f3ae59f2904160ceaab466009f965df46d6/marshal.go#L17-L23", "partition": "valid"} +{"repo": "google/uuid", "path": "marshal.go", "func_name": "UnmarshalBinary", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalBinary implements encoding.BinaryUnmarshaler.", "docstring_tokens": ["UnmarshalBinary", "implements", "encoding", ".", "BinaryUnmarshaler", "."], "sha": "c2e93f3ae59f2904160ceaab466009f965df46d6", "url": "https://github.com/google/uuid/blob/c2e93f3ae59f2904160ceaab466009f965df46d6/marshal.go#L31-L37", "partition": "valid"} +{"repo": "manifoldco/promptui", "path": "select.go", "func_name": "RunCursorAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RunCursorAt executes the select list, initializing the cursor to the given\n// position. Invalid cursor positions will be clamped to valid values. It\n// displays the label and the list of items, asking the user to chose any value\n// within to list. Run will keep the prompt alive until it has been canceled\n// from the command prompt or it has received a valid value. It will return\n// the value and an error if any occurred during the select's execution.", "docstring_tokens": ["RunCursorAt", "executes", "the", "select", "list", "initializing", "the", "cursor", "to", "the", "given", "position", ".", "Invalid", "cursor", "positions", "will", "be", "clamped", "to", "valid", "values", ".", "It", "displays", "the", "label", "and", "the", "list", "of", "items", "asking", "the", "user", "to", "chose", "any", "value", "within", "to", "list", ".", "Run", "will", "keep", "the", "prompt", "alive", "until", "it", "has", "been", "canceled", "from", "the", "command", "prompt", "or", "it", "has", "received", "a", "valid", "value", ".", "It", "will", "return", "the", "value", "and", "an", "error", "if", "any", "occurred", "during", "the", "select", "s", "execution", "."], "sha": "35bab80e16a4de256e470efb31775342cec6f3cc", "url": "https://github.com/manifoldco/promptui/blob/35bab80e16a4de256e470efb31775342cec6f3cc/select.go#L193-L213", "partition": "valid"} +{"repo": "manifoldco/promptui", "path": "select.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run executes the select list. Its displays the label and the list of items, asking the user to chose any\n// value within to list or add his own. Run will keep the prompt alive until it has been canceled from\n// the command prompt or it has received a valid value.\n//\n// If the addLabel is selected in the list, this function will return a -1 index with the added label and no error.\n// Otherwise, it will return the index and the value of the selected item. In any case, if an error is triggered, it\n// will also return the error as its third return value.", "docstring_tokens": ["Run", "executes", "the", "select", "list", ".", "Its", "displays", "the", "label", "and", "the", "list", "of", "items", "asking", "the", "user", "to", "chose", "any", "value", "within", "to", "list", "or", "add", "his", "own", ".", "Run", "will", "keep", "the", "prompt", "alive", "until", "it", "has", "been", "canceled", "from", "the", "command", "prompt", "or", "it", "has", "received", "a", "valid", "value", ".", "If", "the", "addLabel", "is", "selected", "in", "the", "list", "this", "function", "will", "return", "a", "-", "1", "index", "with", "the", "added", "label", "and", "no", "error", ".", "Otherwise", "it", "will", "return", "the", "index", "and", "the", "value", "of", "the", "selected", "item", ".", "In", "any", "case", "if", "an", "error", "is", "triggered", "it", "will", "also", "return", "the", "error", "as", "its", "third", "return", "value", "."], "sha": "35bab80e16a4de256e470efb31775342cec6f3cc", "url": "https://github.com/manifoldco/promptui/blob/35bab80e16a4de256e470efb31775342cec6f3cc/select.go#L518-L560", "partition": "valid"} +{"repo": "manifoldco/promptui", "path": "screenbuf/screenbuf.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New creates and initializes a new ScreenBuf.", "docstring_tokens": ["New", "creates", "and", "initializes", "a", "new", "ScreenBuf", "."], "sha": "35bab80e16a4de256e470efb31775342cec6f3cc", "url": "https://github.com/manifoldco/promptui/blob/35bab80e16a4de256e470efb31775342cec6f3cc/screenbuf/screenbuf.go#L30-L32", "partition": "valid"} +{"repo": "manifoldco/promptui", "path": "screenbuf/screenbuf.go", "func_name": "Clear", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Clear clears all previous lines and the output starts from the top.", "docstring_tokens": ["Clear", "clears", "all", "previous", "lines", "and", "the", "output", "starts", "from", "the", "top", "."], "sha": "35bab80e16a4de256e470efb31775342cec6f3cc", "url": "https://github.com/manifoldco/promptui/blob/35bab80e16a4de256e470efb31775342cec6f3cc/screenbuf/screenbuf.go#L42-L57", "partition": "valid"} +{"repo": "manifoldco/promptui", "path": "screenbuf/screenbuf.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write writes a single line to the underlining buffer. If the ScreenBuf was\n// previously reset, all previous lines are cleared and the output starts from\n// the top. Lines with \\r or \\n will cause an error since they can interfere with the\n// terminal ability to move between lines.", "docstring_tokens": ["Write", "writes", "a", "single", "line", "to", "the", "underlining", "buffer", ".", "If", "the", "ScreenBuf", "was", "previously", "reset", "all", "previous", "lines", "are", "cleared", "and", "the", "output", "starts", "from", "the", "top", ".", "Lines", "with", "\\", "r", "or", "\\", "n", "will", "cause", "an", "error", "since", "they", "can", "interfere", "with", "the", "terminal", "ability", "to", "move", "between", "lines", "."], "sha": "35bab80e16a4de256e470efb31775342cec6f3cc", "url": "https://github.com/manifoldco/promptui/blob/35bab80e16a4de256e470efb31775342cec6f3cc/screenbuf/screenbuf.go#L63-L106", "partition": "valid"} +{"repo": "manifoldco/promptui", "path": "screenbuf/screenbuf.go", "func_name": "Flush", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Flush writes any buffered data to the underlying io.Writer, ensuring that any pending data is displayed.", "docstring_tokens": ["Flush", "writes", "any", "buffered", "data", "to", "the", "underlying", "io", ".", "Writer", "ensuring", "that", "any", "pending", "data", "is", "displayed", "."], "sha": "35bab80e16a4de256e470efb31775342cec6f3cc", "url": "https://github.com/manifoldco/promptui/blob/35bab80e16a4de256e470efb31775342cec6f3cc/screenbuf/screenbuf.go#L109-L140", "partition": "valid"} +{"repo": "manifoldco/promptui", "path": "codes.go", "func_name": "Styler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Styler is a function that accepts multiple possible styling transforms from the state,\n// color and background colors constants and transforms them into a templated string\n// to apply those styles in the CLI.\n//\n// The returned styling function accepts a string that will be extended with\n// the wrapping function's styling attributes.", "docstring_tokens": ["Styler", "is", "a", "function", "that", "accepts", "multiple", "possible", "styling", "transforms", "from", "the", "state", "color", "and", "background", "colors", "constants", "and", "transforms", "them", "into", "a", "templated", "string", "to", "apply", "those", "styles", "in", "the", "CLI", ".", "The", "returned", "styling", "function", "accepts", "a", "string", "that", "will", "be", "extended", "with", "the", "wrapping", "function", "s", "styling", "attributes", "."], "sha": "35bab80e16a4de256e470efb31775342cec6f3cc", "url": "https://github.com/manifoldco/promptui/blob/35bab80e16a4de256e470efb31775342cec6f3cc/codes.go#L104-L120", "partition": "valid"} +{"repo": "manifoldco/promptui", "path": "list/list.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New creates and initializes a list of searchable items. The items attribute must be a slice type with a\n// size greater than 0. Error will be returned if those two conditions are not met.", "docstring_tokens": ["New", "creates", "and", "initializes", "a", "list", "of", "searchable", "items", ".", "The", "items", "attribute", "must", "be", "a", "slice", "type", "with", "a", "size", "greater", "than", "0", ".", "Error", "will", "be", "returned", "if", "those", "two", "conditions", "are", "not", "met", "."], "sha": "35bab80e16a4de256e470efb31775342cec6f3cc", "url": "https://github.com/manifoldco/promptui/blob/35bab80e16a4de256e470efb31775342cec6f3cc/list/list.go#L32-L50", "partition": "valid"} +{"repo": "manifoldco/promptui", "path": "list/list.go", "func_name": "Prev", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Prev moves the visible list back one item. If the selected item is out of\n// view, the new select item becomes the last visible item. If the list is\n// already at the top, nothing happens.", "docstring_tokens": ["Prev", "moves", "the", "visible", "list", "back", "one", "item", ".", "If", "the", "selected", "item", "is", "out", "of", "view", "the", "new", "select", "item", "becomes", "the", "last", "visible", "item", ".", "If", "the", "list", "is", "already", "at", "the", "top", "nothing", "happens", "."], "sha": "35bab80e16a4de256e470efb31775342cec6f3cc", "url": "https://github.com/manifoldco/promptui/blob/35bab80e16a4de256e470efb31775342cec6f3cc/list/list.go#L55-L63", "partition": "valid"} +{"repo": "manifoldco/promptui", "path": "list/list.go", "func_name": "Search", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Search allows the list to be filtered by a given term. The list must\n// implement the searcher function signature for this functionality to work.", "docstring_tokens": ["Search", "allows", "the", "list", "to", "be", "filtered", "by", "a", "given", "term", ".", "The", "list", "must", "implement", "the", "searcher", "function", "signature", "for", "this", "functionality", "to", "work", "."], "sha": "35bab80e16a4de256e470efb31775342cec6f3cc", "url": "https://github.com/manifoldco/promptui/blob/35bab80e16a4de256e470efb31775342cec6f3cc/list/list.go#L67-L72", "partition": "valid"} +{"repo": "manifoldco/promptui", "path": "list/list.go", "func_name": "CancelSearch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CancelSearch stops the current search and returns the list to its\n// original order.", "docstring_tokens": ["CancelSearch", "stops", "the", "current", "search", "and", "returns", "the", "list", "to", "its", "original", "order", "."], "sha": "35bab80e16a4de256e470efb31775342cec6f3cc", "url": "https://github.com/manifoldco/promptui/blob/35bab80e16a4de256e470efb31775342cec6f3cc/list/list.go#L76-L80", "partition": "valid"} +{"repo": "manifoldco/promptui", "path": "list/list.go", "func_name": "SetStart", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetStart sets the current scroll position. Values out of bounds will be\n// clamped.", "docstring_tokens": ["SetStart", "sets", "the", "current", "scroll", "position", ".", "Values", "out", "of", "bounds", "will", "be", "clamped", "."], "sha": "35bab80e16a4de256e470efb31775342cec6f3cc", "url": "https://github.com/manifoldco/promptui/blob/35bab80e16a4de256e470efb31775342cec6f3cc/list/list.go#L101-L110", "partition": "valid"} +{"repo": "manifoldco/promptui", "path": "list/list.go", "func_name": "SetCursor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetCursor sets the position of the cursor in the list. Values out of bounds\n// will be clamped.", "docstring_tokens": ["SetCursor", "sets", "the", "position", "of", "the", "cursor", "in", "the", "list", ".", "Values", "out", "of", "bounds", "will", "be", "clamped", "."], "sha": "35bab80e16a4de256e470efb31775342cec6f3cc", "url": "https://github.com/manifoldco/promptui/blob/35bab80e16a4de256e470efb31775342cec6f3cc/list/list.go#L114-L129", "partition": "valid"} +{"repo": "manifoldco/promptui", "path": "list/list.go", "func_name": "Next", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Next moves the visible list forward one item. If the selected item is out of\n// view, the new select item becomes the first visible item. If the list is\n// already at the bottom, nothing happens.", "docstring_tokens": ["Next", "moves", "the", "visible", "list", "forward", "one", "item", ".", "If", "the", "selected", "item", "is", "out", "of", "view", "the", "new", "select", "item", "becomes", "the", "first", "visible", "item", ".", "If", "the", "list", "is", "already", "at", "the", "bottom", "nothing", "happens", "."], "sha": "35bab80e16a4de256e470efb31775342cec6f3cc", "url": "https://github.com/manifoldco/promptui/blob/35bab80e16a4de256e470efb31775342cec6f3cc/list/list.go#L134-L144", "partition": "valid"} +{"repo": "manifoldco/promptui", "path": "list/list.go", "func_name": "PageUp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PageUp moves the visible list backward by x items. Where x is the size of the\n// visible items on the list. The selected item becomes the first visible item.\n// If the list is already at the bottom, the selected item becomes the last\n// visible item.", "docstring_tokens": ["PageUp", "moves", "the", "visible", "list", "backward", "by", "x", "items", ".", "Where", "x", "is", "the", "size", "of", "the", "visible", "items", "on", "the", "list", ".", "The", "selected", "item", "becomes", "the", "first", "visible", "item", ".", "If", "the", "list", "is", "already", "at", "the", "bottom", "the", "selected", "item", "becomes", "the", "last", "visible", "item", "."], "sha": "35bab80e16a4de256e470efb31775342cec6f3cc", "url": "https://github.com/manifoldco/promptui/blob/35bab80e16a4de256e470efb31775342cec6f3cc/list/list.go#L150-L163", "partition": "valid"} +{"repo": "manifoldco/promptui", "path": "list/list.go", "func_name": "PageDown", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PageDown moves the visible list forward by x items. Where x is the size of\n// the visible items on the list. The selected item becomes the first visible\n// item.", "docstring_tokens": ["PageDown", "moves", "the", "visible", "list", "forward", "by", "x", "items", ".", "Where", "x", "is", "the", "size", "of", "the", "visible", "items", "on", "the", "list", ".", "The", "selected", "item", "becomes", "the", "first", "visible", "item", "."], "sha": "35bab80e16a4de256e470efb31775342cec6f3cc", "url": "https://github.com/manifoldco/promptui/blob/35bab80e16a4de256e470efb31775342cec6f3cc/list/list.go#L168-L188", "partition": "valid"} +{"repo": "manifoldco/promptui", "path": "list/list.go", "func_name": "Items", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Items returns a slice equal to the size of the list with the current visible\n// items and the index of the active item in this list.", "docstring_tokens": ["Items", "returns", "a", "slice", "equal", "to", "the", "size", "of", "the", "list", "with", "the", "current", "visible", "items", "and", "the", "index", "of", "the", "active", "item", "in", "this", "list", "."], "sha": "35bab80e16a4de256e470efb31775342cec6f3cc", "url": "https://github.com/manifoldco/promptui/blob/35bab80e16a4de256e470efb31775342cec6f3cc/list/list.go#L217-L237", "partition": "valid"} +{"repo": "manifoldco/promptui", "path": "cursor.go", "func_name": "NewCursor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCursor create a new cursor, with the DefaultCursor, the specified input,\n// and position at the end of the specified starting input.", "docstring_tokens": ["NewCursor", "create", "a", "new", "cursor", "with", "the", "DefaultCursor", "the", "specified", "input", "and", "position", "at", "the", "end", "of", "the", "specified", "starting", "input", "."], "sha": "35bab80e16a4de256e470efb31775342cec6f3cc", "url": "https://github.com/manifoldco/promptui/blob/35bab80e16a4de256e470efb31775342cec6f3cc/cursor.go#L54-L65", "partition": "valid"} +{"repo": "manifoldco/promptui", "path": "cursor.go", "func_name": "correctPosition", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ensures we are in bounds.", "docstring_tokens": ["ensures", "we", "are", "in", "bounds", "."], "sha": "35bab80e16a4de256e470efb31775342cec6f3cc", "url": "https://github.com/manifoldco/promptui/blob/35bab80e16a4de256e470efb31775342cec6f3cc/cursor.go#L86-L94", "partition": "valid"} +{"repo": "manifoldco/promptui", "path": "cursor.go", "func_name": "format", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// insert the cursor rune array into r before the provided index", "docstring_tokens": ["insert", "the", "cursor", "rune", "array", "into", "r", "before", "the", "provided", "index"], "sha": "35bab80e16a4de256e470efb31775342cec6f3cc", "url": "https://github.com/manifoldco/promptui/blob/35bab80e16a4de256e470efb31775342cec6f3cc/cursor.go#L97-L113", "partition": "valid"} +{"repo": "manifoldco/promptui", "path": "cursor.go", "func_name": "Format", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Format renders the input with the Cursor appropriately positioned.", "docstring_tokens": ["Format", "renders", "the", "input", "with", "the", "Cursor", "appropriately", "positioned", "."], "sha": "35bab80e16a4de256e470efb31775342cec6f3cc", "url": "https://github.com/manifoldco/promptui/blob/35bab80e16a4de256e470efb31775342cec6f3cc/cursor.go#L116-L120", "partition": "valid"} +{"repo": "manifoldco/promptui", "path": "cursor.go", "func_name": "FormatMask", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FormatMask replaces all input runes with the mask rune.", "docstring_tokens": ["FormatMask", "replaces", "all", "input", "runes", "with", "the", "mask", "rune", "."], "sha": "35bab80e16a4de256e470efb31775342cec6f3cc", "url": "https://github.com/manifoldco/promptui/blob/35bab80e16a4de256e470efb31775342cec6f3cc/cursor.go#L123-L129", "partition": "valid"} +{"repo": "manifoldco/promptui", "path": "cursor.go", "func_name": "Replace", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Replace replaces the previous input with whatever is specified, and moves the\n// cursor to the end position", "docstring_tokens": ["Replace", "replaces", "the", "previous", "input", "with", "whatever", "is", "specified", "and", "moves", "the", "cursor", "to", "the", "end", "position"], "sha": "35bab80e16a4de256e470efb31775342cec6f3cc", "url": "https://github.com/manifoldco/promptui/blob/35bab80e16a4de256e470efb31775342cec6f3cc/cursor.go#L149-L152", "partition": "valid"} +{"repo": "manifoldco/promptui", "path": "cursor.go", "func_name": "Place", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Place moves the cursor to the absolute array index specified by position", "docstring_tokens": ["Place", "moves", "the", "cursor", "to", "the", "absolute", "array", "index", "specified", "by", "position"], "sha": "35bab80e16a4de256e470efb31775342cec6f3cc", "url": "https://github.com/manifoldco/promptui/blob/35bab80e16a4de256e470efb31775342cec6f3cc/cursor.go#L155-L158", "partition": "valid"} +{"repo": "manifoldco/promptui", "path": "cursor.go", "func_name": "Move", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Move moves the cursor over in relative terms, by shift indices.", "docstring_tokens": ["Move", "moves", "the", "cursor", "over", "in", "relative", "terms", "by", "shift", "indices", "."], "sha": "35bab80e16a4de256e470efb31775342cec6f3cc", "url": "https://github.com/manifoldco/promptui/blob/35bab80e16a4de256e470efb31775342cec6f3cc/cursor.go#L161-L165", "partition": "valid"} +{"repo": "manifoldco/promptui", "path": "cursor.go", "func_name": "Backspace", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Backspace removes the rune that precedes the cursor\n//\n// It handles being at the beginning or end of the row, and moves the cursor to\n// the appropriate position.", "docstring_tokens": ["Backspace", "removes", "the", "rune", "that", "precedes", "the", "cursor", "It", "handles", "being", "at", "the", "beginning", "or", "end", "of", "the", "row", "and", "moves", "the", "cursor", "to", "the", "appropriate", "position", "."], "sha": "35bab80e16a4de256e470efb31775342cec6f3cc", "url": "https://github.com/manifoldco/promptui/blob/35bab80e16a4de256e470efb31775342cec6f3cc/cursor.go#L171-L185", "partition": "valid"} +{"repo": "manifoldco/promptui", "path": "cursor.go", "func_name": "Listen", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Listen is a readline Listener that updates internal cursor state appropriately.", "docstring_tokens": ["Listen", "is", "a", "readline", "Listener", "that", "updates", "internal", "cursor", "state", "appropriately", "."], "sha": "35bab80e16a4de256e470efb31775342cec6f3cc", "url": "https://github.com/manifoldco/promptui/blob/35bab80e16a4de256e470efb31775342cec6f3cc/cursor.go#L188-L220", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "aggregate.go", "func_name": "AggregateIssueChan", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AggregateIssueChan reads issues from a channel, aggregates issues which have\n// the same file, line, vol, and message, and returns aggregated issues on\n// a new channel.", "docstring_tokens": ["AggregateIssueChan", "reads", "issues", "from", "a", "channel", "aggregates", "issues", "which", "have", "the", "same", "file", "line", "vol", "and", "message", "and", "returns", "aggregated", "issues", "on", "a", "new", "channel", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/aggregate.go#L22-L51", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/ssa/ssa.go", "func_name": "StaticCallee", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StaticCallee returns the callee if this is a trivially static\n// \"call\"-mode call to a function.", "docstring_tokens": ["StaticCallee", "returns", "the", "callee", "if", "this", "is", "a", "trivially", "static", "call", "-", "mode", "call", "to", "a", "function", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/ssa/ssa.go#L1393-L1401", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/ssa/ssa.go", "func_name": "Func", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Func returns the package-level function of the specified name,\n// or nil if not found.\n//", "docstring_tokens": ["Func", "returns", "the", "package", "-", "level", "function", "of", "the", "specified", "name", "or", "nil", "if", "not", "found", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/ssa/ssa.go#L1525-L1528", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/ssa/ssa.go", "func_name": "Var", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Var returns the package-level variable of the specified name,\n// or nil if not found.\n//", "docstring_tokens": ["Var", "returns", "the", "package", "-", "level", "variable", "of", "the", "specified", "name", "or", "nil", "if", "not", "found", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/ssa/ssa.go#L1533-L1536", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/ssa/ssa.go", "func_name": "Const", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Const returns the package-level constant of the specified name,\n// or nil if not found.\n//", "docstring_tokens": ["Const", "returns", "the", "package", "-", "level", "constant", "of", "the", "specified", "name", "or", "nil", "if", "not", "found", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/ssa/ssa.go#L1541-L1544", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/ssa/ssa.go", "func_name": "Type", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Type returns the package-level type of the specified name,\n// or nil if not found.\n//", "docstring_tokens": ["Type", "returns", "the", "package", "-", "level", "type", "of", "the", "specified", "name", "or", "nil", "if", "not", "found", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/ssa/ssa.go#L1549-L1552", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "main.go", "func_name": "getGoPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Go 1.8 compatible GOPATH.", "docstring_tokens": ["Go", "1", ".", "8", "compatible", "GOPATH", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/main.go#L416-L424", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "main.go", "func_name": "addPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// addPath appends path to paths if path does not already exist in paths. Returns\n// the new paths.", "docstring_tokens": ["addPath", "appends", "path", "to", "paths", "if", "path", "does", "not", "already", "exist", "in", "paths", ".", "Returns", "the", "new", "paths", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/main.go#L432-L439", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "main.go", "func_name": "configureEnvironmentForInstall", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// configureEnvironmentForInstall sets GOPATH and GOBIN so that vendored linters\n// can be installed", "docstring_tokens": ["configureEnvironmentForInstall", "sets", "GOPATH", "and", "GOBIN", "so", "that", "vendored", "linters", "can", "be", "installed"], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/main.go#L473-L499", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/gopkg.in/yaml.v2/yaml.go", "func_name": "UnmarshalStrict", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalStrict is like Unmarshal except that any fields that are found\n// in the data that do not have corresponding struct members, or mapping\n// keys that are duplicates, will result in\n// an error.", "docstring_tokens": ["UnmarshalStrict", "is", "like", "Unmarshal", "except", "that", "any", "fields", "that", "are", "found", "in", "the", "data", "that", "do", "not", "have", "corresponding", "struct", "members", "or", "mapping", "keys", "that", "are", "duplicates", "will", "result", "in", "an", "error", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/gopkg.in/yaml.v2/yaml.go#L88-L90", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/gopkg.in/yaml.v2/yaml.go", "func_name": "Decode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Decode reads the next YAML-encoded value from its input\n// and stores it in the value pointed to by v.\n//\n// See the documentation for Unmarshal for details about the\n// conversion of YAML into a Go value.", "docstring_tokens": ["Decode", "reads", "the", "next", "YAML", "-", "encoded", "value", "from", "its", "input", "and", "stores", "it", "in", "the", "value", "pointed", "to", "by", "v", ".", "See", "the", "documentation", "for", "Unmarshal", "for", "details", "about", "the", "conversion", "of", "YAML", "into", "a", "Go", "value", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/gopkg.in/yaml.v2/yaml.go#L119-L135", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/gopkg.in/yaml.v2/yaml.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close closes the encoder by writing any remaining data.\n// It does not write a stream terminating string \"...\".", "docstring_tokens": ["Close", "closes", "the", "encoder", "by", "writing", "any", "remaining", "data", ".", "It", "does", "not", "write", "a", "stream", "terminating", "string", "...", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/gopkg.in/yaml.v2/yaml.go#L238-L242", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/gopkg.in/yaml.v2/scannerc.go", "func_name": "yaml_parser_save_simple_key", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Check if a simple key may start at the current position and add it if\n// needed.", "docstring_tokens": ["Check", "if", "a", "simple", "key", "may", "start", "at", "the", "current", "position", "and", "add", "it", "if", "needed", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/gopkg.in/yaml.v2/scannerc.go#L867-L891", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/cmd/structlayout-optimize/main.go", "func_name": "align", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// align returns the smallest y >= x such that y % a == 0.", "docstring_tokens": ["align", "returns", "the", "smallest", "y", ">", "=", "x", "such", "that", "y", "%", "a", "==", "0", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/cmd/structlayout-optimize/main.go#L202-L205", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/stylecheck/names.go", "func_name": "lintName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// lintName returns a different name if it should be different.", "docstring_tokens": ["lintName", "returns", "a", "different", "name", "if", "it", "should", "be", "different", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/stylecheck/names.go#L181-L244", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/ssa/sanity.go", "func_name": "sanityCheck", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// sanityCheck performs integrity checking of the SSA representation\n// of the function fn and returns true if it was valid. Diagnostics\n// are written to reporter if non-nil, os.Stderr otherwise. Some\n// diagnostics are only warnings and do not imply a negative result.\n//\n// Sanity-checking is intended to facilitate the debugging of code\n// transformation passes.\n//", "docstring_tokens": ["sanityCheck", "performs", "integrity", "checking", "of", "the", "SSA", "representation", "of", "the", "function", "fn", "and", "returns", "true", "if", "it", "was", "valid", ".", "Diagnostics", "are", "written", "to", "reporter", "if", "non", "-", "nil", "os", ".", "Stderr", "otherwise", ".", "Some", "diagnostics", "are", "only", "warnings", "and", "do", "not", "imply", "a", "negative", "result", ".", "Sanity", "-", "checking", "is", "intended", "to", "facilitate", "the", "debugging", "of", "code", "transformation", "passes", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/ssa/sanity.go#L34-L39", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/ssa/sanity.go", "func_name": "mustSanityCheck", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// mustSanityCheck is like sanityCheck but panics instead of returning\n// a negative result.\n//", "docstring_tokens": ["mustSanityCheck", "is", "like", "sanityCheck", "but", "panics", "instead", "of", "returning", "a", "negative", "result", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/ssa/sanity.go#L44-L49", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/ssa/sanity.go", "func_name": "findDuplicate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// findDuplicate returns an arbitrary basic block that appeared more\n// than once in blocks, or nil if all were unique.", "docstring_tokens": ["findDuplicate", "returns", "an", "arbitrary", "basic", "block", "that", "appeared", "more", "than", "once", "in", "blocks", "or", "nil", "if", "all", "were", "unique", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/ssa/sanity.go#L72-L88", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "issue.go", "func_name": "newIssuePathFromAbsPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newIssuePathFromAbsPath returns a new issuePath from a path that may be\n// an absolute path. root must be an absolute path.", "docstring_tokens": ["newIssuePathFromAbsPath", "returns", "a", "new", "issuePath", "from", "a", "path", "that", "may", "be", "an", "absolute", "path", ".", "root", "must", "be", "an", "absolute", "path", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/issue.go#L53-L70", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "issue.go", "func_name": "NewIssue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewIssue returns a new issue. Returns an error if formatTmpl is not a valid\n// template for an Issue.", "docstring_tokens": ["NewIssue", "returns", "a", "new", "issue", ".", "Returns", "an", "error", "if", "formatTmpl", "is", "not", "a", "valid", "template", "for", "an", "Issue", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/issue.go#L84-L93", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "issue.go", "func_name": "SortIssueChan", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SortIssueChan reads issues from one channel, sorts them, and returns them to another\n// channel", "docstring_tokens": ["SortIssueChan", "reads", "issues", "from", "one", "channel", "sorts", "them", "and", "returns", "them", "to", "another", "channel"], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/issue.go#L149-L166", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/ssa/builder.go", "func_name": "logicalBinop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// logicalBinop emits code to fn to evaluate e, a &&- or\n// ||-expression whose reified boolean value is wanted.\n// The value is returned.\n//", "docstring_tokens": ["logicalBinop", "emits", "code", "to", "fn", "to", "evaluate", "e", "a", "&&", "-", "or", "||", "-", "expression", "whose", "reified", "boolean", "value", "is", "wanted", ".", "The", "value", "is", "returned", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/ssa/builder.go#L121-L171", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/ssa/builder.go", "func_name": "expr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expr lowers a single-result expression e to SSA form, emitting code\n// to fn and returning the Value defined by the expression.\n//", "docstring_tokens": ["expr", "lowers", "a", "single", "-", "result", "expression", "e", "to", "SSA", "form", "emitting", "code", "to", "fn", "and", "returning", "the", "Value", "defined", "by", "the", "expression", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/ssa/builder.go#L513-L536", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/ssa/builder.go", "func_name": "stmtList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// stmtList emits to fn code for all statements in list.", "docstring_tokens": ["stmtList", "emits", "to", "fn", "code", "for", "all", "statements", "in", "list", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/ssa/builder.go#L788-L792", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/ssa/builder.go", "func_name": "assignOp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// assignOp emits to fn code to perform loc += incr or loc -= incr.", "docstring_tokens": ["assignOp", "emits", "to", "fn", "code", "to", "perform", "loc", "+", "=", "incr", "or", "loc", "-", "=", "incr", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/ssa/builder.go#L973-L976", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/ssa/builder.go", "func_name": "localValueSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// localValueSpec emits to fn code to define all of the vars in the\n// function-local ValueSpec, spec.\n//", "docstring_tokens": ["localValueSpec", "emits", "to", "fn", "code", "to", "define", "all", "of", "the", "vars", "in", "the", "function", "-", "local", "ValueSpec", "spec", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/ssa/builder.go#L981-L1017", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/ssa/builder.go", "func_name": "arrayLen", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// arrayLen returns the length of the array whose composite literal elements are elts.", "docstring_tokens": ["arrayLen", "returns", "the", "length", "of", "the", "array", "whose", "composite", "literal", "elements", "are", "elts", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/ssa/builder.go#L1064-L1078", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/ssa/builder.go", "func_name": "switchStmt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// switchStmt emits to fn code for the switch statement s, optionally\n// labelled by label.\n//", "docstring_tokens": ["switchStmt", "emits", "to", "fn", "code", "for", "the", "switch", "statement", "s", "optionally", "labelled", "by", "label", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/ssa/builder.go#L1238-L1319", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/ssa/builder.go", "func_name": "typeSwitchStmt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// typeSwitchStmt emits to fn code for the type switch statement s, optionally\n// labelled by label.\n//", "docstring_tokens": ["typeSwitchStmt", "emits", "to", "fn", "code", "for", "the", "type", "switch", "statement", "s", "optionally", "labelled", "by", "label", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/ssa/builder.go#L1324-L1425", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/ssa/builder.go", "func_name": "forStmt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// forStmt emits to fn code for the for statement s, optionally\n// labelled by label.\n//", "docstring_tokens": ["forStmt", "emits", "to", "fn", "code", "for", "the", "for", "statement", "s", "optionally", "labelled", "by", "label", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/ssa/builder.go#L1630-L1680", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/ssa/builder.go", "func_name": "rangeStmt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// rangeStmt emits to fn code for the range statement s, optionally\n// labelled by label.\n//", "docstring_tokens": ["rangeStmt", "emits", "to", "fn", "code", "for", "the", "range", "statement", "s", "optionally", "labelled", "by", "label", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/ssa/builder.go#L1882-L1953", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/ssa/builder.go", "func_name": "buildFunction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// buildFunction builds SSA code for the body of function fn. Idempotent.", "docstring_tokens": ["buildFunction", "builds", "SSA", "code", "for", "the", "body", "of", "function", "fn", ".", "Idempotent", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/ssa/builder.go#L2148-L2208", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/ssa/builder.go", "func_name": "buildFuncDecl", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// buildFuncDecl builds SSA code for the function or method declared\n// by decl in package pkg.\n//", "docstring_tokens": ["buildFuncDecl", "builds", "SSA", "code", "for", "the", "function", "or", "method", "declared", "by", "decl", "in", "package", "pkg", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/ssa/builder.go#L2213-L2226", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/ssa/builder.go", "func_name": "Build", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Build calls Package.Build for each package in prog.\n// Building occurs in parallel unless the BuildSerially mode flag was set.\n//\n// Build is intended for whole-program analysis; a typical compiler\n// need only build a single package.\n//\n// Build is idempotent and thread-safe.\n//", "docstring_tokens": ["Build", "calls", "Package", ".", "Build", "for", "each", "package", "in", "prog", ".", "Building", "occurs", "in", "parallel", "unless", "the", "BuildSerially", "mode", "flag", "was", "set", ".", "Build", "is", "intended", "for", "whole", "-", "program", "analysis", ";", "a", "typical", "compiler", "need", "only", "build", "a", "single", "package", ".", "Build", "is", "idempotent", "and", "thread", "-", "safe", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/ssa/builder.go#L2236-L2250", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/ssa/builder.go", "func_name": "objectOf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Like ObjectOf, but panics instead of returning nil.\n// Only valid during p's create and build phases.", "docstring_tokens": ["Like", "ObjectOf", "but", "panics", "instead", "of", "returning", "nil", ".", "Only", "valid", "during", "p", "s", "create", "and", "build", "phases", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/ssa/builder.go#L2363-L2369", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/ssa/builder.go", "func_name": "typeOf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Like TypeOf, but panics instead of returning nil.\n// Only valid during p's create and build phases.", "docstring_tokens": ["Like", "TypeOf", "but", "panics", "instead", "of", "returning", "nil", ".", "Only", "valid", "during", "p", "s", "create", "and", "build", "phases", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/ssa/builder.go#L2373-L2379", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/gopkg.in/yaml.v2/decode.go", "func_name": "expect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expect consumes an event from the event stream and\n// checks that it's of the expected type.", "docstring_tokens": ["expect", "consumes", "an", "event", "from", "the", "event", "stream", "and", "checks", "that", "it", "s", "of", "the", "expected", "type", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/gopkg.in/yaml.v2/decode.go#L82-L97", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/gopkg.in/yaml.v2/decode.go", "func_name": "peek", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// peek peeks at the next event in the event stream,\n// puts the results into p.event and returns the event type.", "docstring_tokens": ["peek", "peeks", "at", "the", "next", "event", "in", "the", "event", "stream", "puts", "the", "results", "into", "p", ".", "event", "and", "returns", "the", "event", "type", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/gopkg.in/yaml.v2/decode.go#L101-L109", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/gopkg.in/yaml.v2/decode.go", "func_name": "prepare", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// d.prepare initializes and dereferences pointers and calls UnmarshalYAML\n// if a value is found to implement it.\n// It returns the initialized and dereferenced out value, whether\n// unmarshalling was already done by UnmarshalYAML, and if so whether\n// its types unmarshalled appropriately.\n//\n// If n holds a null value, prepare returns before doing anything.", "docstring_tokens": ["d", ".", "prepare", "initializes", "and", "dereferences", "pointers", "and", "calls", "UnmarshalYAML", "if", "a", "value", "is", "found", "to", "implement", "it", ".", "It", "returns", "the", "initialized", "and", "dereferenced", "out", "value", "whether", "unmarshalling", "was", "already", "done", "by", "UnmarshalYAML", "and", "if", "so", "whether", "its", "types", "unmarshalled", "appropriately", ".", "If", "n", "holds", "a", "null", "value", "prepare", "returns", "before", "doing", "anything", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/gopkg.in/yaml.v2/decode.go#L293-L315", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/printf/printf.go", "func_name": "Parse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Parse parses f and returns a list of actions.\n// An action may either be a literal string, or a Verb.", "docstring_tokens": ["Parse", "parses", "f", "and", "returns", "a", "list", "of", "actions", ".", "An", "action", "may", "either", "be", "a", "literal", "string", "or", "a", "Verb", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/printf/printf.go#L76-L99", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/printf/printf.go", "func_name": "ParseVerb", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseVerb parses the verb at the beginning of f.\n// It returns the verb, how much of the input was consumed, and an error, if any.", "docstring_tokens": ["ParseVerb", "parses", "the", "verb", "at", "the", "beginning", "of", "f", ".", "It", "returns", "the", "verb", "how", "much", "of", "the", "input", "was", "consumed", "and", "an", "error", "if", "any", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/printf/printf.go#L108-L183", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/functions/terminates.go", "func_name": "terminates", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// terminates reports whether fn is supposed to return, that is if it\n// has at least one theoretic path that returns from the function.\n// Explicit panics do not count as terminating.", "docstring_tokens": ["terminates", "reports", "whether", "fn", "is", "supposed", "to", "return", "that", "is", "if", "it", "has", "at", "least", "one", "theoretic", "path", "that", "returns", "from", "the", "function", ".", "Explicit", "panics", "do", "not", "count", "as", "terminating", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/functions/terminates.go#L8-L24", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/gopkg.in/yaml.v2/apic.go", "func_name": "yaml_reader_read_handler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reader read handler.", "docstring_tokens": ["Reader", "read", "handler", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/gopkg.in/yaml.v2/apic.go#L51-L53", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/gopkg.in/yaml.v2/apic.go", "func_name": "yaml_parser_set_input_reader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set a file input.", "docstring_tokens": ["Set", "a", "file", "input", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/gopkg.in/yaml.v2/apic.go#L66-L72", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/gopkg.in/yaml.v2/apic.go", "func_name": "yaml_emitter_initialize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create a new emitter object.", "docstring_tokens": ["Create", "a", "new", "emitter", "object", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/gopkg.in/yaml.v2/apic.go#L83-L90", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/gopkg.in/yaml.v2/apic.go", "func_name": "yaml_writer_write_handler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// yaml_writer_write_handler uses emitter.output_writer to write the\n// emitted text.", "docstring_tokens": ["yaml_writer_write_handler", "uses", "emitter", ".", "output_writer", "to", "write", "the", "emitted", "text", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/gopkg.in/yaml.v2/apic.go#L105-L108", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/gopkg.in/yaml.v2/apic.go", "func_name": "yaml_emitter_set_output_writer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set a file output.", "docstring_tokens": ["Set", "a", "file", "output", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/gopkg.in/yaml.v2/apic.go#L120-L126", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/gopkg.in/yaml.v2/apic.go", "func_name": "yaml_mapping_start_event_initialize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create MAPPING-START.", "docstring_tokens": ["Create", "MAPPING", "-", "START", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/gopkg.in/yaml.v2/apic.go#L350-L358", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/gopkg.in/yaml.v2/writerc.go", "func_name": "yaml_emitter_flush", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Flush the output buffer.", "docstring_tokens": ["Flush", "the", "output", "buffer", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/gopkg.in/yaml.v2/writerc.go#L11-L26", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/unused/unused.go", "func_name": "processConversion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// processConversion marks fields as used if they're part of a type conversion.", "docstring_tokens": ["processConversion", "marks", "fields", "as", "used", "if", "they", "re", "part", "of", "a", "type", "conversion", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/unused/unused.go#L628-L682", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/unused/unused.go", "func_name": "processCompositeLiteral", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// processCompositeLiteral marks fields as used if the struct is used\n// in a composite literal.", "docstring_tokens": ["processCompositeLiteral", "marks", "fields", "as", "used", "if", "the", "struct", "is", "used", "in", "a", "composite", "literal", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/unused/unused.go#L686-L701", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/unused/unused.go", "func_name": "processCgoExported", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// processCgoExported marks functions as used if they're being\n// exported to cgo.", "docstring_tokens": ["processCgoExported", "marks", "functions", "as", "used", "if", "they", "re", "being", "exported", "to", "cgo", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/unused/unused.go#L705-L718", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/ssa/print.go", "func_name": "WritePackage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WritePackage writes to buf a human-readable summary of p.", "docstring_tokens": ["WritePackage", "writes", "to", "buf", "a", "human", "-", "readable", "summary", "of", "p", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/ssa/print.go#L390-L428", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "linters.go", "func_name": "NewLinter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLinter returns a new linter from a config", "docstring_tokens": ["NewLinter", "returns", "a", "new", "linter", "from", "a", "config"], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/linters.go#L30-L46", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/functions/pure.go", "func_name": "IsStub", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsStub reports whether a function is a stub. A function is\n// considered a stub if it has no instructions or exactly one\n// instruction, which must be either returning only constant values or\n// a panic.", "docstring_tokens": ["IsStub", "reports", "whether", "a", "function", "is", "a", "stub", ".", "A", "function", "is", "considered", "a", "stub", "if", "it", "has", "no", "instructions", "or", "exactly", "one", "instruction", "which", "must", "be", "either", "returning", "only", "constant", "values", "or", "a", "panic", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/functions/pure.go#L16-L41", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/stylecheck/lint.go", "func_name": "CheckUnexportedReturn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CheckUnexportedReturn checks that exported functions on exported\n// types do not return unexported types.", "docstring_tokens": ["CheckUnexportedReturn", "checks", "that", "exported", "functions", "on", "exported", "types", "do", "not", "return", "unexported", "types", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/stylecheck/lint.go#L231-L252", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/ssa/ssautil/load.go", "func_name": "CreateProgram", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateProgram returns a new program in SSA form, given a program\n// loaded from source. An SSA package is created for each transitively\n// error-free package of lprog.\n//\n// Code for bodies of functions is not built until Build is called\n// on the result.\n//\n// mode controls diagnostics and checking during SSA construction.\n//", "docstring_tokens": ["CreateProgram", "returns", "a", "new", "program", "in", "SSA", "form", "given", "a", "program", "loaded", "from", "source", ".", "An", "SSA", "package", "is", "created", "for", "each", "transitively", "error", "-", "free", "package", "of", "lprog", ".", "Code", "for", "bodies", "of", "functions", "is", "not", "built", "until", "Build", "is", "called", "on", "the", "result", ".", "mode", "controls", "diagnostics", "and", "checking", "during", "SSA", "construction", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/ssa/ssautil/load.go#L75-L85", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "directives.go", "func_name": "IsIgnored", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsIgnored returns true if the given linter issue is ignored by a linter directive.", "docstring_tokens": ["IsIgnored", "returns", "true", "if", "the", "given", "linter", "issue", "is", "ignored", "by", "a", "linter", "directive", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/directives.go#L69-L87", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "directives.go", "func_name": "Unmatched", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Unmatched returns all the ranges which were never used to ignore an issue", "docstring_tokens": ["Unmatched", "returns", "all", "the", "ranges", "which", "were", "never", "used", "to", "ignore", "an", "issue"], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/directives.go#L90-L100", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "directives.go", "func_name": "LoadFiles", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadFiles from a list of directories", "docstring_tokens": ["LoadFiles", "from", "a", "list", "of", "directories"], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/directives.go#L103-L116", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/gcsizes/sizes.go", "func_name": "ForArch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ForArch returns a correct Sizes for the given architecture.", "docstring_tokens": ["ForArch", "returns", "a", "correct", "Sizes", "for", "the", "given", "architecture", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/gcsizes/sizes.go#L20-L30", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/staticcheck/rules.go", "func_name": "ConvertedFrom", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ConvertedFrom reports whether value v was converted from type typ.", "docstring_tokens": ["ConvertedFrom", "reports", "whether", "value", "v", "was", "converted", "from", "type", "typ", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/staticcheck/rules.go#L296-L299", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/gopkg.in/yaml.v2/emitterc.go", "func_name": "yaml_emitter_emit_node", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Expect a node.", "docstring_tokens": ["Expect", "a", "node", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/gopkg.in/yaml.v2/emitterc.go#L649-L670", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/lint/lintdsl/lintdsl.go", "func_name": "IsBlank", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isBlank returns whether id is the blank identifier \"_\".\n// If id == nil, the answer is false.", "docstring_tokens": ["isBlank", "returns", "whether", "id", "is", "the", "blank", "identifier", "_", ".", "If", "id", "==", "nil", "the", "answer", "is", "false", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/lint/lintdsl/lintdsl.go#L91-L94", "partition": "valid"} +{"repo": "alecthomas/gometalinter", "path": "_linters/src/honnef.co/go/tools/lint/lintdsl/lintdsl.go", "func_name": "Dereference", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Dereference returns a pointer's element type; otherwise it returns\n// T.", "docstring_tokens": ["Dereference", "returns", "a", "pointer", "s", "element", "type", ";", "otherwise", "it", "returns", "T", "."], "sha": "32416ab75314da538e4a51cdf3c6189b66fe3de4", "url": "https://github.com/alecthomas/gometalinter/blob/32416ab75314da538e4a51cdf3c6189b66fe3de4/_linters/src/honnef.co/go/tools/lint/lintdsl/lintdsl.go#L214-L219", "partition": "valid"} +{"repo": "heptiolabs/healthcheck", "path": "checks.go", "func_name": "TCPDialCheck", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TCPDialCheck returns a Check that checks TCP connectivity to the provided\n// endpoint.", "docstring_tokens": ["TCPDialCheck", "returns", "a", "Check", "that", "checks", "TCP", "connectivity", "to", "the", "provided", "endpoint", "."], "sha": "6ff867650f40c632367411120275478876202233", "url": "https://github.com/heptiolabs/healthcheck/blob/6ff867650f40c632367411120275478876202233/checks.go#L29-L37", "partition": "valid"} +{"repo": "heptiolabs/healthcheck", "path": "checks.go", "func_name": "HTTPGetCheck", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HTTPGetCheck returns a Check that performs an HTTP GET request against the\n// specified URL. The check fails if the response times out or returns a non-200\n// status code.", "docstring_tokens": ["HTTPGetCheck", "returns", "a", "Check", "that", "performs", "an", "HTTP", "GET", "request", "against", "the", "specified", "URL", ".", "The", "check", "fails", "if", "the", "response", "times", "out", "or", "returns", "a", "non", "-", "200", "status", "code", "."], "sha": "6ff867650f40c632367411120275478876202233", "url": "https://github.com/heptiolabs/healthcheck/blob/6ff867650f40c632367411120275478876202233/checks.go#L42-L61", "partition": "valid"} +{"repo": "heptiolabs/healthcheck", "path": "checks.go", "func_name": "DNSResolveCheck", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DNSResolveCheck returns a Check that makes sure the provided host can resolve\n// to at least one IP address within the specified timeout.", "docstring_tokens": ["DNSResolveCheck", "returns", "a", "Check", "that", "makes", "sure", "the", "provided", "host", "can", "resolve", "to", "at", "least", "one", "IP", "address", "within", "the", "specified", "timeout", "."], "sha": "6ff867650f40c632367411120275478876202233", "url": "https://github.com/heptiolabs/healthcheck/blob/6ff867650f40c632367411120275478876202233/checks.go#L78-L92", "partition": "valid"} +{"repo": "heptiolabs/healthcheck", "path": "handler.go", "func_name": "NewHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewHandler creates a new basic Handler", "docstring_tokens": ["NewHandler", "creates", "a", "new", "basic", "Handler"], "sha": "6ff867650f40c632367411120275478876202233", "url": "https://github.com/heptiolabs/healthcheck/blob/6ff867650f40c632367411120275478876202233/handler.go#L32-L40", "partition": "valid"} +{"repo": "heptiolabs/healthcheck", "path": "metrics_handler.go", "func_name": "NewMetricsHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMetricsHandler returns a healthcheck Handler that also exposes metrics\n// into the provided Prometheus registry.", "docstring_tokens": ["NewMetricsHandler", "returns", "a", "healthcheck", "Handler", "that", "also", "exposes", "metrics", "into", "the", "provided", "Prometheus", "registry", "."], "sha": "6ff867650f40c632367411120275478876202233", "url": "https://github.com/heptiolabs/healthcheck/blob/6ff867650f40c632367411120275478876202233/metrics_handler.go#L31-L37", "partition": "valid"} +{"repo": "heptiolabs/healthcheck", "path": "timeout.go", "func_name": "Timeout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Timeout adds a timeout to a Check. If the underlying check takes longer than\n// the timeout, it returns an error.", "docstring_tokens": ["Timeout", "adds", "a", "timeout", "to", "a", "Check", ".", "If", "the", "underlying", "check", "takes", "longer", "than", "the", "timeout", "it", "returns", "an", "error", "."], "sha": "6ff867650f40c632367411120275478876202233", "url": "https://github.com/heptiolabs/healthcheck/blob/6ff867650f40c632367411120275478876202233/timeout.go#L41-L52", "partition": "valid"} +{"repo": "tatsushid/go-fastping", "path": "fastping.go", "func_name": "NewPinger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPinger returns a new Pinger struct pointer", "docstring_tokens": ["NewPinger", "returns", "a", "new", "Pinger", "struct", "pointer"], "sha": "d7bb493dee3e090e2ffb6914adddf17c1e7c026c", "url": "https://github.com/tatsushid/go-fastping/blob/d7bb493dee3e090e2ffb6914adddf17c1e7c026c/fastping.go#L156-L173", "partition": "valid"} +{"repo": "tatsushid/go-fastping", "path": "fastping.go", "func_name": "Network", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Network sets a network endpoints for ICMP ping and returns the previous\n// setting. network arg should be \"ip\" or \"udp\" string or if others are\n// specified, it returns an error. If this function isn't called, Pinger\n// uses \"ip\" as default.", "docstring_tokens": ["Network", "sets", "a", "network", "endpoints", "for", "ICMP", "ping", "and", "returns", "the", "previous", "setting", ".", "network", "arg", "should", "be", "ip", "or", "udp", "string", "or", "if", "others", "are", "specified", "it", "returns", "an", "error", ".", "If", "this", "function", "isn", "t", "called", "Pinger", "uses", "ip", "as", "default", "."], "sha": "d7bb493dee3e090e2ffb6914adddf17c1e7c026c", "url": "https://github.com/tatsushid/go-fastping/blob/d7bb493dee3e090e2ffb6914adddf17c1e7c026c/fastping.go#L179-L190", "partition": "valid"} +{"repo": "tatsushid/go-fastping", "path": "fastping.go", "func_name": "AddIP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddIP adds an IP address to Pinger. ipaddr arg should be a string like\n// \"192.0.2.1\".", "docstring_tokens": ["AddIP", "adds", "an", "IP", "address", "to", "Pinger", ".", "ipaddr", "arg", "should", "be", "a", "string", "like", "192", ".", "0", ".", "2", ".", "1", "."], "sha": "d7bb493dee3e090e2ffb6914adddf17c1e7c026c", "url": "https://github.com/tatsushid/go-fastping/blob/d7bb493dee3e090e2ffb6914adddf17c1e7c026c/fastping.go#L228-L242", "partition": "valid"} +{"repo": "tatsushid/go-fastping", "path": "fastping.go", "func_name": "AddIPAddr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddIPAddr adds an IP address to Pinger. ip arg should be a net.IPAddr\n// pointer.", "docstring_tokens": ["AddIPAddr", "adds", "an", "IP", "address", "to", "Pinger", ".", "ip", "arg", "should", "be", "a", "net", ".", "IPAddr", "pointer", "."], "sha": "d7bb493dee3e090e2ffb6914adddf17c1e7c026c", "url": "https://github.com/tatsushid/go-fastping/blob/d7bb493dee3e090e2ffb6914adddf17c1e7c026c/fastping.go#L246-L255", "partition": "valid"} +{"repo": "tatsushid/go-fastping", "path": "fastping.go", "func_name": "RemoveIP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveIP removes an IP address from Pinger. ipaddr arg should be a string\n// like \"192.0.2.1\".", "docstring_tokens": ["RemoveIP", "removes", "an", "IP", "address", "from", "Pinger", ".", "ipaddr", "arg", "should", "be", "a", "string", "like", "192", ".", "0", ".", "2", ".", "1", "."], "sha": "d7bb493dee3e090e2ffb6914adddf17c1e7c026c", "url": "https://github.com/tatsushid/go-fastping/blob/d7bb493dee3e090e2ffb6914adddf17c1e7c026c/fastping.go#L259-L268", "partition": "valid"} +{"repo": "tatsushid/go-fastping", "path": "fastping.go", "func_name": "RemoveIPAddr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveIPAddr removes an IP address from Pinger. ip arg should be a net.IPAddr\n// pointer.", "docstring_tokens": ["RemoveIPAddr", "removes", "an", "IP", "address", "from", "Pinger", ".", "ip", "arg", "should", "be", "a", "net", ".", "IPAddr", "pointer", "."], "sha": "d7bb493dee3e090e2ffb6914adddf17c1e7c026c", "url": "https://github.com/tatsushid/go-fastping/blob/d7bb493dee3e090e2ffb6914adddf17c1e7c026c/fastping.go#L272-L276", "partition": "valid"} +{"repo": "gosimple/slug", "path": "slug.go", "func_name": "MakeLang", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MakeLang returns slug generated from provided string and will use provided\n// language for chars substitution.", "docstring_tokens": ["MakeLang", "returns", "slug", "generated", "from", "provided", "string", "and", "will", "use", "provided", "language", "for", "chars", "substitution", "."], "sha": "e78d39397ba41d2c33d9615044ef93eca8a309d8", "url": "https://github.com/gosimple/slug/blob/e78d39397ba41d2c33d9615044ef93eca8a309d8/slug.go#L45-L90", "partition": "valid"} +{"repo": "gosimple/slug", "path": "slug.go", "func_name": "Substitute", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Substitute returns string with superseded all substrings from\n// provided substitution map. Substitution map will be applied in alphabetic\n// order. Many passes, on one substitution another one could apply.", "docstring_tokens": ["Substitute", "returns", "string", "with", "superseded", "all", "substrings", "from", "provided", "substitution", "map", ".", "Substitution", "map", "will", "be", "applied", "in", "alphabetic", "order", ".", "Many", "passes", "on", "one", "substitution", "another", "one", "could", "apply", "."], "sha": "e78d39397ba41d2c33d9615044ef93eca8a309d8", "url": "https://github.com/gosimple/slug/blob/e78d39397ba41d2c33d9615044ef93eca8a309d8/slug.go#L95-L107", "partition": "valid"} +{"repo": "gosimple/slug", "path": "slug.go", "func_name": "SubstituteRune", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SubstituteRune substitutes string chars with provided rune\n// substitution map. One pass.", "docstring_tokens": ["SubstituteRune", "substitutes", "string", "chars", "with", "provided", "rune", "substitution", "map", ".", "One", "pass", "."], "sha": "e78d39397ba41d2c33d9615044ef93eca8a309d8", "url": "https://github.com/gosimple/slug/blob/e78d39397ba41d2c33d9615044ef93eca8a309d8/slug.go#L111-L121", "partition": "valid"} +{"repo": "pierrec/lz4", "path": "internal/cmdflag/cmdflag.go", "func_name": "Parse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Parse parses the command line arguments including the global flags and, if any, the cmdflag and its flags.\n//\n// If the VersionBoolFlag is defined as a global boolean flag, then the program version is displayed and the program stops.", "docstring_tokens": ["Parse", "parses", "the", "command", "line", "arguments", "including", "the", "global", "flags", "and", "if", "any", "the", "cmdflag", "and", "its", "flags", ".", "If", "the", "VersionBoolFlag", "is", "defined", "as", "a", "global", "boolean", "flag", "then", "the", "program", "version", "is", "displayed", "and", "the", "program", "stops", "."], "sha": "d705d4371bfccdf47f10e45584e896026c83616f", "url": "https://github.com/pierrec/lz4/blob/d705d4371bfccdf47f10e45584e896026c83616f/internal/cmdflag/cmdflag.go#L91-L143", "partition": "valid"} +{"repo": "pierrec/lz4", "path": "internal/xxh32/xxh32zero.go", "func_name": "Sum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sum appends the current hash to b and returns the resulting slice.\n// It does not change the underlying hash state.", "docstring_tokens": ["Sum", "appends", "the", "current", "hash", "to", "b", "and", "returns", "the", "resulting", "slice", ".", "It", "does", "not", "change", "the", "underlying", "hash", "state", "."], "sha": "d705d4371bfccdf47f10e45584e896026c83616f", "url": "https://github.com/pierrec/lz4/blob/d705d4371bfccdf47f10e45584e896026c83616f/internal/xxh32/xxh32zero.go#L33-L36", "partition": "valid"} +{"repo": "pierrec/lz4", "path": "internal/xxh32/xxh32zero.go", "func_name": "Reset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reset resets the Hash to its initial state.", "docstring_tokens": ["Reset", "resets", "the", "Hash", "to", "its", "initial", "state", "."], "sha": "d705d4371bfccdf47f10e45584e896026c83616f", "url": "https://github.com/pierrec/lz4/blob/d705d4371bfccdf47f10e45584e896026c83616f/internal/xxh32/xxh32zero.go#L39-L46", "partition": "valid"} +{"repo": "pierrec/lz4", "path": "internal/xxh32/xxh32zero.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write adds input bytes to the Hash.\n// It never returns an error.", "docstring_tokens": ["Write", "adds", "input", "bytes", "to", "the", "Hash", ".", "It", "never", "returns", "an", "error", "."], "sha": "d705d4371bfccdf47f10e45584e896026c83616f", "url": "https://github.com/pierrec/lz4/blob/d705d4371bfccdf47f10e45584e896026c83616f/internal/xxh32/xxh32zero.go#L60-L107", "partition": "valid"} +{"repo": "pierrec/lz4", "path": "internal/xxh32/xxh32zero.go", "func_name": "Sum32", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sum32 returns the 32 bits Hash value.", "docstring_tokens": ["Sum32", "returns", "the", "32", "bits", "Hash", "value", "."], "sha": "d705d4371bfccdf47f10e45584e896026c83616f", "url": "https://github.com/pierrec/lz4/blob/d705d4371bfccdf47f10e45584e896026c83616f/internal/xxh32/xxh32zero.go#L110-L137", "partition": "valid"} +{"repo": "pierrec/lz4", "path": "internal/xxh32/xxh32zero.go", "func_name": "ChecksumZero", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ChecksumZero returns the 32bits Hash value.", "docstring_tokens": ["ChecksumZero", "returns", "the", "32bits", "Hash", "value", "."], "sha": "d705d4371bfccdf47f10e45584e896026c83616f", "url": "https://github.com/pierrec/lz4/blob/d705d4371bfccdf47f10e45584e896026c83616f/internal/xxh32/xxh32zero.go#L140-L182", "partition": "valid"} +{"repo": "pierrec/lz4", "path": "internal/xxh32/xxh32zero.go", "func_name": "Uint32Zero", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Uint32Zero hashes x with seed 0.", "docstring_tokens": ["Uint32Zero", "hashes", "x", "with", "seed", "0", "."], "sha": "d705d4371bfccdf47f10e45584e896026c83616f", "url": "https://github.com/pierrec/lz4/blob/d705d4371bfccdf47f10e45584e896026c83616f/internal/xxh32/xxh32zero.go#L185-L194", "partition": "valid"} +{"repo": "pierrec/lz4", "path": "block.go", "func_name": "UncompressBlock", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UncompressBlock uncompresses the source buffer into the destination one,\n// and returns the uncompressed size.\n//\n// The destination buffer must be sized appropriately.\n//\n// An error is returned if the source data is invalid or the destination buffer is too small.", "docstring_tokens": ["UncompressBlock", "uncompresses", "the", "source", "buffer", "into", "the", "destination", "one", "and", "returns", "the", "uncompressed", "size", ".", "The", "destination", "buffer", "must", "be", "sized", "appropriately", ".", "An", "error", "is", "returned", "if", "the", "source", "data", "is", "invalid", "or", "the", "destination", "buffer", "is", "too", "small", "."], "sha": "d705d4371bfccdf47f10e45584e896026c83616f", "url": "https://github.com/pierrec/lz4/blob/d705d4371bfccdf47f10e45584e896026c83616f/block.go#L33-L44", "partition": "valid"} +{"repo": "pierrec/lz4", "path": "reader.go", "func_name": "NewReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewReader returns a new LZ4 frame decoder.\n// No access to the underlying io.Reader is performed.", "docstring_tokens": ["NewReader", "returns", "a", "new", "LZ4", "frame", "decoder", ".", "No", "access", "to", "the", "underlying", "io", ".", "Reader", "is", "performed", "."], "sha": "d705d4371bfccdf47f10e45584e896026c83616f", "url": "https://github.com/pierrec/lz4/blob/d705d4371bfccdf47f10e45584e896026c83616f/reader.go#L32-L35", "partition": "valid"} +{"repo": "pierrec/lz4", "path": "reader.go", "func_name": "Reset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reset discards the Reader's state and makes it equivalent to the\n// result of its original state from NewReader, but reading from r instead.\n// This permits reusing a Reader rather than allocating a new one.", "docstring_tokens": ["Reset", "discards", "the", "Reader", "s", "state", "and", "makes", "it", "equivalent", "to", "the", "result", "of", "its", "original", "state", "from", "NewReader", "but", "reading", "from", "r", "instead", ".", "This", "permits", "reusing", "a", "Reader", "rather", "than", "allocating", "a", "new", "one", "."], "sha": "d705d4371bfccdf47f10e45584e896026c83616f", "url": "https://github.com/pierrec/lz4/blob/d705d4371bfccdf47f10e45584e896026c83616f/reader.go#L290-L298", "partition": "valid"} +{"repo": "pierrec/lz4", "path": "reader.go", "func_name": "readUint32", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// readUint32 reads an uint32 into the supplied buffer.\n// The idea is to make use of the already allocated buffers avoiding additional allocations.", "docstring_tokens": ["readUint32", "reads", "an", "uint32", "into", "the", "supplied", "buffer", ".", "The", "idea", "is", "to", "make", "use", "of", "the", "already", "allocated", "buffers", "avoiding", "additional", "allocations", "."], "sha": "d705d4371bfccdf47f10e45584e896026c83616f", "url": "https://github.com/pierrec/lz4/blob/d705d4371bfccdf47f10e45584e896026c83616f/reader.go#L302-L307", "partition": "valid"} +{"repo": "pierrec/lz4", "path": "writer.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write compresses data from the supplied buffer into the underlying io.Writer.\n// Write does not return until the data has been written.", "docstring_tokens": ["Write", "compresses", "data", "from", "the", "supplied", "buffer", "into", "the", "underlying", "io", ".", "Writer", ".", "Write", "does", "not", "return", "until", "the", "data", "has", "been", "written", "."], "sha": "d705d4371bfccdf47f10e45584e896026c83616f", "url": "https://github.com/pierrec/lz4/blob/d705d4371bfccdf47f10e45584e896026c83616f/writer.go#L101-L148", "partition": "valid"} +{"repo": "pierrec/lz4", "path": "writer.go", "func_name": "compressBlock", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// compressBlock compresses a block.", "docstring_tokens": ["compressBlock", "compresses", "a", "block", "."], "sha": "d705d4371bfccdf47f10e45584e896026c83616f", "url": "https://github.com/pierrec/lz4/blob/d705d4371bfccdf47f10e45584e896026c83616f/writer.go#L151-L210", "partition": "valid"} +{"repo": "pierrec/lz4", "path": "writer.go", "func_name": "Flush", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Flush flushes any pending compressed data to the underlying writer.\n// Flush does not return until the data has been written.\n// If the underlying writer returns an error, Flush returns that error.", "docstring_tokens": ["Flush", "flushes", "any", "pending", "compressed", "data", "to", "the", "underlying", "writer", ".", "Flush", "does", "not", "return", "until", "the", "data", "has", "been", "written", ".", "If", "the", "underlying", "writer", "returns", "an", "error", "Flush", "returns", "that", "error", "."], "sha": "d705d4371bfccdf47f10e45584e896026c83616f", "url": "https://github.com/pierrec/lz4/blob/d705d4371bfccdf47f10e45584e896026c83616f/writer.go#L215-L228", "partition": "valid"} +{"repo": "pierrec/lz4", "path": "writer.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close closes the Writer, flushing any unwritten data to the underlying io.Writer, but does not close the underlying io.Writer.", "docstring_tokens": ["Close", "closes", "the", "Writer", "flushing", "any", "unwritten", "data", "to", "the", "underlying", "io", ".", "Writer", "but", "does", "not", "close", "the", "underlying", "io", ".", "Writer", "."], "sha": "d705d4371bfccdf47f10e45584e896026c83616f", "url": "https://github.com/pierrec/lz4/blob/d705d4371bfccdf47f10e45584e896026c83616f/writer.go#L231-L258", "partition": "valid"} +{"repo": "pierrec/lz4", "path": "writer.go", "func_name": "Reset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reset clears the state of the Writer z such that it is equivalent to its\n// initial state from NewWriter, but instead writing to w.\n// No access to the underlying io.Writer is performed.", "docstring_tokens": ["Reset", "clears", "the", "state", "of", "the", "Writer", "z", "such", "that", "it", "is", "equivalent", "to", "its", "initial", "state", "from", "NewWriter", "but", "instead", "writing", "to", "w", ".", "No", "access", "to", "the", "underlying", "io", ".", "Writer", "is", "performed", "."], "sha": "d705d4371bfccdf47f10e45584e896026c83616f", "url": "https://github.com/pierrec/lz4/blob/d705d4371bfccdf47f10e45584e896026c83616f/writer.go#L263-L270", "partition": "valid"} +{"repo": "pierrec/lz4", "path": "writer.go", "func_name": "writeUint32", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// writeUint32 writes a uint32 to the underlying writer.", "docstring_tokens": ["writeUint32", "writes", "a", "uint32", "to", "the", "underlying", "writer", "."], "sha": "d705d4371bfccdf47f10e45584e896026c83616f", "url": "https://github.com/pierrec/lz4/blob/d705d4371bfccdf47f10e45584e896026c83616f/writer.go#L273-L278", "partition": "valid"} +{"repo": "pierrec/lz4", "path": "internal/cmds/uncompress.go", "func_name": "Uncompress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Uncompress uncompresses a set of files or from stdin to stdout.", "docstring_tokens": ["Uncompress", "uncompresses", "a", "set", "of", "files", "or", "from", "stdin", "to", "stdout", "."], "sha": "d705d4371bfccdf47f10e45584e896026c83616f", "url": "https://github.com/pierrec/lz4/blob/d705d4371bfccdf47f10e45584e896026c83616f/internal/cmds/uncompress.go#L16-L91", "partition": "valid"} +{"repo": "pierrec/lz4", "path": "internal/cmds/compress.go", "func_name": "Compress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Compress compresses a set of files or from stdin to stdout.", "docstring_tokens": ["Compress", "compresses", "a", "set", "of", "files", "or", "from", "stdin", "to", "stdout", "."], "sha": "d705d4371bfccdf47f10e45584e896026c83616f", "url": "https://github.com/pierrec/lz4/blob/d705d4371bfccdf47f10e45584e896026c83616f/internal/cmds/compress.go#L17-L111", "partition": "valid"} +{"repo": "pierrec/lz4", "path": "fuzz/lz4.go", "func_name": "Fuzz", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// lz4.Reader fuzz function", "docstring_tokens": ["lz4", ".", "Reader", "fuzz", "function"], "sha": "d705d4371bfccdf47f10e45584e896026c83616f", "url": "https://github.com/pierrec/lz4/blob/d705d4371bfccdf47f10e45584e896026c83616f/fuzz/lz4.go#L11-L45", "partition": "valid"} +{"repo": "asaskevich/EventBus", "path": "client.go", "func_name": "NewClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClient - create a client object with the address and server path", "docstring_tokens": ["NewClient", "-", "create", "a", "client", "object", "with", "the", "address", "and", "server", "path"], "sha": "d46933a94f05c6657d7b923fcf5ac563ee37ec79", "url": "https://github.com/asaskevich/EventBus/blob/d46933a94f05c6657d7b923fcf5ac563ee37ec79/client.go#L32-L39", "partition": "valid"} +{"repo": "asaskevich/EventBus", "path": "client.go", "func_name": "Subscribe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Subscribe subscribes to a topic in a remote event bus", "docstring_tokens": ["Subscribe", "subscribes", "to", "a", "topic", "in", "a", "remote", "event", "bus"], "sha": "d46933a94f05c6657d7b923fcf5ac563ee37ec79", "url": "https://github.com/asaskevich/EventBus/blob/d46933a94f05c6657d7b923fcf5ac563ee37ec79/client.go#L70-L72", "partition": "valid"} +{"repo": "asaskevich/EventBus", "path": "client.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start - starts the client service to listen to remote events", "docstring_tokens": ["Start", "-", "starts", "the", "client", "service", "to", "listen", "to", "remote", "events"], "sha": "d46933a94f05c6657d7b923fcf5ac563ee37ec79", "url": "https://github.com/asaskevich/EventBus/blob/d46933a94f05c6657d7b923fcf5ac563ee37ec79/client.go#L80-L97", "partition": "valid"} +{"repo": "asaskevich/EventBus", "path": "client.go", "func_name": "PushEvent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PushEvent - exported service to listening to remote events", "docstring_tokens": ["PushEvent", "-", "exported", "service", "to", "listening", "to", "remote", "events"], "sha": "d46933a94f05c6657d7b923fcf5ac563ee37ec79", "url": "https://github.com/asaskevich/EventBus/blob/d46933a94f05c6657d7b923fcf5ac563ee37ec79/client.go#L116-L120", "partition": "valid"} +{"repo": "asaskevich/EventBus", "path": "event_bus.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New returns new EventBus with empty handlers.", "docstring_tokens": ["New", "returns", "new", "EventBus", "with", "empty", "handlers", "."], "sha": "d46933a94f05c6657d7b923fcf5ac563ee37ec79", "url": "https://github.com/asaskevich/EventBus/blob/d46933a94f05c6657d7b923fcf5ac563ee37ec79/event_bus.go#L52-L59", "partition": "valid"} +{"repo": "asaskevich/EventBus", "path": "event_bus.go", "func_name": "doSubscribe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// doSubscribe handles the subscription logic and is utilized by the public Subscribe functions", "docstring_tokens": ["doSubscribe", "handles", "the", "subscription", "logic", "and", "is", "utilized", "by", "the", "public", "Subscribe", "functions"], "sha": "d46933a94f05c6657d7b923fcf5ac563ee37ec79", "url": "https://github.com/asaskevich/EventBus/blob/d46933a94f05c6657d7b923fcf5ac563ee37ec79/event_bus.go#L62-L70", "partition": "valid"} +{"repo": "asaskevich/EventBus", "path": "event_bus.go", "func_name": "Subscribe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Subscribe subscribes to a topic.\n// Returns error if `fn` is not a function.", "docstring_tokens": ["Subscribe", "subscribes", "to", "a", "topic", ".", "Returns", "error", "if", "fn", "is", "not", "a", "function", "."], "sha": "d46933a94f05c6657d7b923fcf5ac563ee37ec79", "url": "https://github.com/asaskevich/EventBus/blob/d46933a94f05c6657d7b923fcf5ac563ee37ec79/event_bus.go#L74-L78", "partition": "valid"} +{"repo": "asaskevich/EventBus", "path": "event_bus.go", "func_name": "HasCallback", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasCallback returns true if exists any callback subscribed to the topic.", "docstring_tokens": ["HasCallback", "returns", "true", "if", "exists", "any", "callback", "subscribed", "to", "the", "topic", "."], "sha": "d46933a94f05c6657d7b923fcf5ac563ee37ec79", "url": "https://github.com/asaskevich/EventBus/blob/d46933a94f05c6657d7b923fcf5ac563ee37ec79/event_bus.go#L108-L116", "partition": "valid"} +{"repo": "asaskevich/EventBus", "path": "event_bus.go", "func_name": "Unsubscribe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Unsubscribe removes callback defined for a topic.\n// Returns error if there are no callbacks subscribed to the topic.", "docstring_tokens": ["Unsubscribe", "removes", "callback", "defined", "for", "a", "topic", ".", "Returns", "error", "if", "there", "are", "no", "callbacks", "subscribed", "to", "the", "topic", "."], "sha": "d46933a94f05c6657d7b923fcf5ac563ee37ec79", "url": "https://github.com/asaskevich/EventBus/blob/d46933a94f05c6657d7b923fcf5ac563ee37ec79/event_bus.go#L120-L128", "partition": "valid"} +{"repo": "asaskevich/EventBus", "path": "event_bus.go", "func_name": "Publish", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Publish executes callback defined for a topic. Any additional argument will be transferred to the callback.", "docstring_tokens": ["Publish", "executes", "callback", "defined", "for", "a", "topic", ".", "Any", "additional", "argument", "will", "be", "transferred", "to", "the", "callback", "."], "sha": "d46933a94f05c6657d7b923fcf5ac563ee37ec79", "url": "https://github.com/asaskevich/EventBus/blob/d46933a94f05c6657d7b923fcf5ac563ee37ec79/event_bus.go#L131-L154", "partition": "valid"} +{"repo": "asaskevich/EventBus", "path": "network_bus.go", "func_name": "NewNetworkBus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewNetworkBus - returns a new network bus object at the server address and path", "docstring_tokens": ["NewNetworkBus", "-", "returns", "a", "new", "network", "bus", "object", "at", "the", "server", "address", "and", "path"], "sha": "d46933a94f05c6657d7b923fcf5ac563ee37ec79", "url": "https://github.com/asaskevich/EventBus/blob/d46933a94f05c6657d7b923fcf5ac563ee37ec79/network_bus.go#L24-L33", "partition": "valid"} +{"repo": "asaskevich/EventBus", "path": "network_bus.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start - helper method to serve a network bus service", "docstring_tokens": ["Start", "-", "helper", "method", "to", "serve", "a", "network", "bus", "service"], "sha": "d46933a94f05c6657d7b923fcf5ac563ee37ec79", "url": "https://github.com/asaskevich/EventBus/blob/d46933a94f05c6657d7b923fcf5ac563ee37ec79/network_bus.go#L47-L67", "partition": "valid"} +{"repo": "asaskevich/EventBus", "path": "server.go", "func_name": "NewServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewServer - create a new Server at the address and path", "docstring_tokens": ["NewServer", "-", "create", "a", "new", "Server", "at", "the", "address", "and", "path"], "sha": "d46933a94f05c6657d7b923fcf5ac563ee37ec79", "url": "https://github.com/asaskevich/EventBus/blob/d46933a94f05c6657d7b923fcf5ac563ee37ec79/server.go#L46-L54", "partition": "valid"} +{"repo": "asaskevich/EventBus", "path": "server.go", "func_name": "HasClientSubscribed", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasClientSubscribed - True if a client subscribed to this server with the same topic", "docstring_tokens": ["HasClientSubscribed", "-", "True", "if", "a", "client", "subscribed", "to", "this", "server", "with", "the", "same", "topic"], "sha": "d46933a94f05c6657d7b923fcf5ac563ee37ec79", "url": "https://github.com/asaskevich/EventBus/blob/d46933a94f05c6657d7b923fcf5ac563ee37ec79/server.go#L80-L89", "partition": "valid"} +{"repo": "asaskevich/EventBus", "path": "server.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start - starts a service for remote clients to subscribe to events", "docstring_tokens": ["Start", "-", "starts", "a", "service", "for", "remote", "clients", "to", "subscribe", "to", "events"], "sha": "d46933a94f05c6657d7b923fcf5ac563ee37ec79", "url": "https://github.com/asaskevich/EventBus/blob/d46933a94f05c6657d7b923fcf5ac563ee37ec79/server.go#L92-L111", "partition": "valid"} +{"repo": "asaskevich/EventBus", "path": "server.go", "func_name": "Register", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Register - Registers a remote handler to this event bus\n// for a remote subscribe - a given client address only needs to subscribe once\n// event will be republished in local event bus", "docstring_tokens": ["Register", "-", "Registers", "a", "remote", "handler", "to", "this", "event", "bus", "for", "a", "remote", "subscribe", "-", "a", "given", "client", "address", "only", "needs", "to", "subscribe", "once", "event", "will", "be", "republished", "in", "local", "event", "bus"], "sha": "d46933a94f05c6657d7b923fcf5ac563ee37ec79", "url": "https://github.com/asaskevich/EventBus/blob/d46933a94f05c6657d7b923fcf5ac563ee37ec79/server.go#L132-L153", "partition": "valid"} +{"repo": "zmap/zlint", "path": "util/gtld.go", "func_name": "Valid", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Valid determines if the provided `when` time is within the GTLDPeriod for the\n// gTLD. E.g. whether a certificate issued at `when` with a subject identifier\n// using the specified gTLD can be considered a valid use of the gTLD.", "docstring_tokens": ["Valid", "determines", "if", "the", "provided", "when", "time", "is", "within", "the", "GTLDPeriod", "for", "the", "gTLD", ".", "E", ".", "g", ".", "whether", "a", "certificate", "issued", "at", "when", "with", "a", "subject", "identifier", "using", "the", "specified", "gTLD", "can", "be", "considered", "a", "valid", "use", "of", "the", "gTLD", "."], "sha": "4d94f5800b73944b340e8266580538b136057aa6", "url": "https://github.com/zmap/zlint/blob/4d94f5800b73944b340e8266580538b136057aa6/util/gtld.go#L52-L71", "partition": "valid"} +{"repo": "zmap/zlint", "path": "util/gtld.go", "func_name": "HasValidTLD", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasValidTLD checks that a domain ends in a valid TLD that was delegated in\n// the root DNS at the time specified.", "docstring_tokens": ["HasValidTLD", "checks", "that", "a", "domain", "ends", "in", "a", "valid", "TLD", "that", "was", "delegated", "in", "the", "root", "DNS", "at", "the", "time", "specified", "."], "sha": "4d94f5800b73944b340e8266580538b136057aa6", "url": "https://github.com/zmap/zlint/blob/4d94f5800b73944b340e8266580538b136057aa6/util/gtld.go#L75-L90", "partition": "valid"} +{"repo": "zmap/zlint", "path": "util/gtld.go", "func_name": "IsInTLDMap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsInTLDMap checks that a label is present in the TLD map. It does not\n// consider the TLD's validity period and whether the TLD may have been removed,\n// only whether it was ever a TLD that was delegated.", "docstring_tokens": ["IsInTLDMap", "checks", "that", "a", "label", "is", "present", "in", "the", "TLD", "map", ".", "It", "does", "not", "consider", "the", "TLD", "s", "validity", "period", "and", "whether", "the", "TLD", "may", "have", "been", "removed", "only", "whether", "it", "was", "ever", "a", "TLD", "that", "was", "delegated", "."], "sha": "4d94f5800b73944b340e8266580538b136057aa6", "url": "https://github.com/zmap/zlint/blob/4d94f5800b73944b340e8266580538b136057aa6/util/gtld.go#L95-L102", "partition": "valid"} +{"repo": "zmap/zlint", "path": "lints/lint_subject_contains_malformed_arpa_ip.go", "func_name": "Execute", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Execute will check the given certificate to ensure that all of the DNS\n// subject alternate names that specify a reverse DNS name under the respective\n// IPv4 or IPv6 arpa zones are well formed. A Warn LintResult is returned if\n// the name is in a reverse DNS zone but has the wrong number of labels.", "docstring_tokens": ["Execute", "will", "check", "the", "given", "certificate", "to", "ensure", "that", "all", "of", "the", "DNS", "subject", "alternate", "names", "that", "specify", "a", "reverse", "DNS", "name", "under", "the", "respective", "IPv4", "or", "IPv6", "arpa", "zones", "are", "well", "formed", ".", "A", "Warn", "LintResult", "is", "returned", "if", "the", "name", "is", "in", "a", "reverse", "DNS", "zone", "but", "has", "the", "wrong", "number", "of", "labels", "."], "sha": "4d94f5800b73944b340e8266580538b136057aa6", "url": "https://github.com/zmap/zlint/blob/4d94f5800b73944b340e8266580538b136057aa6/lints/lint_subject_contains_malformed_arpa_ip.go#L57-L82", "partition": "valid"} +{"repo": "zmap/zlint", "path": "lints/lint_subject_contains_malformed_arpa_ip.go", "func_name": "lintReversedIPAddressLabels", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// lintReversedIPAddressLabels lints the given name as either a reversed IPv4 or\n// IPv6 address under the respective ARPA zone based on the address class. An\n// error is returned if there aren't enough labels in the name after removing\n// the relevant arpa suffix.", "docstring_tokens": ["lintReversedIPAddressLabels", "lints", "the", "given", "name", "as", "either", "a", "reversed", "IPv4", "or", "IPv6", "address", "under", "the", "respective", "ARPA", "zone", "based", "on", "the", "address", "class", ".", "An", "error", "is", "returned", "if", "there", "aren", "t", "enough", "labels", "in", "the", "name", "after", "removing", "the", "relevant", "arpa", "suffix", "."], "sha": "4d94f5800b73944b340e8266580538b136057aa6", "url": "https://github.com/zmap/zlint/blob/4d94f5800b73944b340e8266580538b136057aa6/lints/lint_subject_contains_malformed_arpa_ip.go#L88-L128", "partition": "valid"} +{"repo": "zmap/zlint", "path": "util/encodings.go", "func_name": "CheckRDNSequenceWhiteSpace", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CheckRDNSequenceWhiteSpace returns true if there is leading or trailing\n// whitespace in any name attribute in the sequence, respectively.", "docstring_tokens": ["CheckRDNSequenceWhiteSpace", "returns", "true", "if", "there", "is", "leading", "or", "trailing", "whitespace", "in", "any", "name", "attribute", "in", "the", "sequence", "respectively", "."], "sha": "4d94f5800b73944b340e8266580538b136057aa6", "url": "https://github.com/zmap/zlint/blob/4d94f5800b73944b340e8266580538b136057aa6/util/encodings.go#L31-L54", "partition": "valid"} +{"repo": "zmap/zlint", "path": "util/encodings.go", "func_name": "IsIA5String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsIA5String returns true if raw is an IA5String, and returns false otherwise.", "docstring_tokens": ["IsIA5String", "returns", "true", "if", "raw", "is", "an", "IA5String", "and", "returns", "false", "otherwise", "."], "sha": "4d94f5800b73944b340e8266580538b136057aa6", "url": "https://github.com/zmap/zlint/blob/4d94f5800b73944b340e8266580538b136057aa6/util/encodings.go#L57-L65", "partition": "valid"} +{"repo": "zmap/zlint", "path": "util/encodings.go", "func_name": "AllAlternateNameWithTagAreIA5", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AllAlternateNameWithTagAreIA5 returns true if all sequence members with the\n// given tag are encoded as IA5 strings, and false otherwise. If it encounters\n// errors parsing asn1, err will be non-nil.", "docstring_tokens": ["AllAlternateNameWithTagAreIA5", "returns", "true", "if", "all", "sequence", "members", "with", "the", "given", "tag", "are", "encoded", "as", "IA5", "strings", "and", "false", "otherwise", ".", "If", "it", "encounters", "errors", "parsing", "asn1", "err", "will", "be", "non", "-", "nil", "."], "sha": "4d94f5800b73944b340e8266580538b136057aa6", "url": "https://github.com/zmap/zlint/blob/4d94f5800b73944b340e8266580538b136057aa6/util/encodings.go#L80-L109", "partition": "valid"} +{"repo": "zmap/zlint", "path": "util/ev.go", "func_name": "IsEV", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsEV returns true if the input is a known Extended Validation OID.", "docstring_tokens": ["IsEV", "returns", "true", "if", "the", "input", "is", "a", "known", "Extended", "Validation", "OID", "."], "sha": "4d94f5800b73944b340e8266580538b136057aa6", "url": "https://github.com/zmap/zlint/blob/4d94f5800b73944b340e8266580538b136057aa6/util/ev.go#L64-L71", "partition": "valid"} +{"repo": "zmap/zlint", "path": "lints/lint_san_dns_name_onion_not_ev_cert.go", "func_name": "Execute", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Execute returns an Error LintResult if the certificate is not an EV\n// certificate. CheckApplies has already verified the certificate contains one\n// or more `.onion` subjects and so it must be an EV certificate.", "docstring_tokens": ["Execute", "returns", "an", "Error", "LintResult", "if", "the", "certificate", "is", "not", "an", "EV", "certificate", ".", "CheckApplies", "has", "already", "verified", "the", "certificate", "contains", "one", "or", "more", ".", "onion", "subjects", "and", "so", "it", "must", "be", "an", "EV", "certificate", "."], "sha": "4d94f5800b73944b340e8266580538b136057aa6", "url": "https://github.com/zmap/zlint/blob/4d94f5800b73944b340e8266580538b136057aa6/lints/lint_san_dns_name_onion_not_ev_cert.go#L45-L61", "partition": "valid"} +{"repo": "zmap/zlint", "path": "cmd/zlint-gtld-update/main.go", "func_name": "getData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getData fetches the response body bytes from an HTTP get to the provider url,\n// or returns an error.", "docstring_tokens": ["getData", "fetches", "the", "response", "body", "bytes", "from", "an", "HTTP", "get", "to", "the", "provider", "url", "or", "returns", "an", "error", "."], "sha": "4d94f5800b73944b340e8266580538b136057aa6", "url": "https://github.com/zmap/zlint/blob/4d94f5800b73944b340e8266580538b136057aa6/cmd/zlint-gtld-update/main.go#L110-L131", "partition": "valid"} +{"repo": "zmap/zlint", "path": "cmd/zlint-gtld-update/main.go", "func_name": "getGTLDData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getGTLDData fetches the ICANN_GTLD_JSON and parses it into a list of\n// util.GTLDPeriod objects, or returns an error. The gTLDEntries are returned\n// as-is and may contain entries that were never delegated from the root DNS.", "docstring_tokens": ["getGTLDData", "fetches", "the", "ICANN_GTLD_JSON", "and", "parses", "it", "into", "a", "list", "of", "util", ".", "GTLDPeriod", "objects", "or", "returns", "an", "error", ".", "The", "gTLDEntries", "are", "returned", "as", "-", "is", "and", "may", "contain", "entries", "that", "were", "never", "delegated", "from", "the", "root", "DNS", "."], "sha": "4d94f5800b73944b340e8266580538b136057aa6", "url": "https://github.com/zmap/zlint/blob/4d94f5800b73944b340e8266580538b136057aa6/cmd/zlint-gtld-update/main.go#L165-L180", "partition": "valid"} +{"repo": "zmap/zlint", "path": "cmd/zlint-gtld-update/main.go", "func_name": "delegatedGTLDs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// delegatedGTLDs filters the provided list of GTLDPeriods removing any entries\n// that were never delegated from the root DNS.", "docstring_tokens": ["delegatedGTLDs", "filters", "the", "provided", "list", "of", "GTLDPeriods", "removing", "any", "entries", "that", "were", "never", "delegated", "from", "the", "root", "DNS", "."], "sha": "4d94f5800b73944b340e8266580538b136057aa6", "url": "https://github.com/zmap/zlint/blob/4d94f5800b73944b340e8266580538b136057aa6/cmd/zlint-gtld-update/main.go#L184-L193", "partition": "valid"} +{"repo": "zmap/zlint", "path": "cmd/zlint-gtld-update/main.go", "func_name": "validateGTLDs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// validateGTLDs checks that all entries have a valid parseable DelegationDate\n// string, and if not-empty, a valid parseable RemovalDate string. This function\n// assumes an entry with an empty DelegationDate is an error. Use\n// `delegatedGTLDs` to filter out entries that were never delegated before\n// validating.", "docstring_tokens": ["validateGTLDs", "checks", "that", "all", "entries", "have", "a", "valid", "parseable", "DelegationDate", "string", "and", "if", "not", "-", "empty", "a", "valid", "parseable", "RemovalDate", "string", ".", "This", "function", "assumes", "an", "entry", "with", "an", "empty", "DelegationDate", "is", "an", "error", ".", "Use", "delegatedGTLDs", "to", "filter", "out", "entries", "that", "were", "never", "delegated", "before", "validating", "."], "sha": "4d94f5800b73944b340e8266580538b136057aa6", "url": "https://github.com/zmap/zlint/blob/4d94f5800b73944b340e8266580538b136057aa6/cmd/zlint-gtld-update/main.go#L200-L212", "partition": "valid"} +{"repo": "zmap/zlint", "path": "cmd/zlint-gtld-update/main.go", "func_name": "init", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// init sets up command line flags", "docstring_tokens": ["init", "sets", "up", "command", "line", "flags"], "sha": "4d94f5800b73944b340e8266580538b136057aa6", "url": "https://github.com/zmap/zlint/blob/4d94f5800b73944b340e8266580538b136057aa6/cmd/zlint-gtld-update/main.go#L288-L295", "partition": "valid"} +{"repo": "zmap/zlint", "path": "util/names.go", "func_name": "IsNameAttribute", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsNameAttribute returns true if the given ObjectIdentifier corresponds with\n// the type of any name attribute for PKIX.", "docstring_tokens": ["IsNameAttribute", "returns", "true", "if", "the", "given", "ObjectIdentifier", "corresponds", "with", "the", "type", "of", "any", "name", "attribute", "for", "PKIX", "."], "sha": "4d94f5800b73944b340e8266580538b136057aa6", "url": "https://github.com/zmap/zlint/blob/4d94f5800b73944b340e8266580538b136057aa6/util/names.go#L50-L59", "partition": "valid"} +{"repo": "zmap/zlint", "path": "lints/result.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON implements the json.Marshaler interface.", "docstring_tokens": ["MarshalJSON", "implements", "the", "json", ".", "Marshaler", "interface", "."], "sha": "4d94f5800b73944b340e8266580538b136057aa6", "url": "https://github.com/zmap/zlint/blob/4d94f5800b73944b340e8266580538b136057aa6/lints/result.go#L48-L51", "partition": "valid"} +{"repo": "zmap/zlint", "path": "lints/result.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns the canonical representation of a LintStatus as a string.", "docstring_tokens": ["String", "returns", "the", "canonical", "representation", "of", "a", "LintStatus", "as", "a", "string", "."], "sha": "4d94f5800b73944b340e8266580538b136057aa6", "url": "https://github.com/zmap/zlint/blob/4d94f5800b73944b340e8266580538b136057aa6/lints/result.go#L54-L73", "partition": "valid"} +{"repo": "zmap/zlint", "path": "zlint.go", "func_name": "EncodeLintDescriptionsToJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EncodeLintDescriptionsToJSON outputs a description of each lint as JSON\n// object, one object per line.", "docstring_tokens": ["EncodeLintDescriptionsToJSON", "outputs", "a", "description", "of", "each", "lint", "as", "JSON", "object", "one", "object", "per", "line", "."], "sha": "4d94f5800b73944b340e8266580538b136057aa6", "url": "https://github.com/zmap/zlint/blob/4d94f5800b73944b340e8266580538b136057aa6/zlint.go#L65-L71", "partition": "valid"} +{"repo": "zmap/zlint", "path": "zlint.go", "func_name": "LintCertificate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LintCertificate runs all registered lints on c, producing a ZLint.", "docstring_tokens": ["LintCertificate", "runs", "all", "registered", "lints", "on", "c", "producing", "a", "ZLint", "."], "sha": "4d94f5800b73944b340e8266580538b136057aa6", "url": "https://github.com/zmap/zlint/blob/4d94f5800b73944b340e8266580538b136057aa6/zlint.go#L74-L87", "partition": "valid"} +{"repo": "zmap/zlint", "path": "lints/lint_onion_subject_validity_time_too_large.go", "func_name": "CheckApplies", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CheckApplies returns true if the certificate is a subscriber certificate that\n// contains a subject name ending in `.onion`.", "docstring_tokens": ["CheckApplies", "returns", "true", "if", "the", "certificate", "is", "a", "subscriber", "certificate", "that", "contains", "a", "subject", "name", "ending", "in", ".", "onion", "."], "sha": "4d94f5800b73944b340e8266580538b136057aa6", "url": "https://github.com/zmap/zlint/blob/4d94f5800b73944b340e8266580538b136057aa6/lints/lint_onion_subject_validity_time_too_large.go#L41-L43", "partition": "valid"} +{"repo": "zmap/zlint", "path": "lints/lint_ext_tor_service_descriptor_hash_invalid.go", "func_name": "failResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// failResult is a small utility function for creating a failed lint result.", "docstring_tokens": ["failResult", "is", "a", "small", "utility", "function", "for", "creating", "a", "failed", "lint", "result", "."], "sha": "4d94f5800b73944b340e8266580538b136057aa6", "url": "https://github.com/zmap/zlint/blob/4d94f5800b73944b340e8266580538b136057aa6/lints/lint_ext_tor_service_descriptor_hash_invalid.go#L40-L45", "partition": "valid"} +{"repo": "zmap/zlint", "path": "lints/base.go", "func_name": "CheckEffective", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CheckEffective returns true if c was issued on or after the EffectiveDate. If\n// EffectiveDate is zero, CheckEffective always returns true.", "docstring_tokens": ["CheckEffective", "returns", "true", "if", "c", "was", "issued", "on", "or", "after", "the", "EffectiveDate", ".", "If", "EffectiveDate", "is", "zero", "CheckEffective", "always", "returns", "true", "."], "sha": "4d94f5800b73944b340e8266580538b136057aa6", "url": "https://github.com/zmap/zlint/blob/4d94f5800b73944b340e8266580538b136057aa6/lints/base.go#L91-L96", "partition": "valid"} +{"repo": "zmap/zlint", "path": "util/oid.go", "func_name": "GetExtFromCert", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetExtFromCert returns the extension with the matching OID, if present. If\n// the extension if not present, it returns nil.", "docstring_tokens": ["GetExtFromCert", "returns", "the", "extension", "with", "the", "matching", "OID", "if", "present", ".", "If", "the", "extension", "if", "not", "present", "it", "returns", "nil", "."], "sha": "4d94f5800b73944b340e8266580538b136057aa6", "url": "https://github.com/zmap/zlint/blob/4d94f5800b73944b340e8266580538b136057aa6/util/oid.go#L104-L111", "partition": "valid"} +{"repo": "zmap/zlint", "path": "util/oid.go", "func_name": "TypeInName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Helper function that checks for a name type in a pkix.Name", "docstring_tokens": ["Helper", "function", "that", "checks", "for", "a", "name", "type", "in", "a", "pkix", ".", "Name"], "sha": "4d94f5800b73944b340e8266580538b136057aa6", "url": "https://github.com/zmap/zlint/blob/4d94f5800b73944b340e8266580538b136057aa6/util/oid.go#L124-L131", "partition": "valid"} +{"repo": "zmap/zlint", "path": "util/oid.go", "func_name": "GetMappedPolicies", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//helper function to parse policyMapping extensions, returns slices of CertPolicyIds separated by domain", "docstring_tokens": ["helper", "function", "to", "parse", "policyMapping", "extensions", "returns", "slices", "of", "CertPolicyIds", "separated", "by", "domain"], "sha": "4d94f5800b73944b340e8266580538b136057aa6", "url": "https://github.com/zmap/zlint/blob/4d94f5800b73944b340e8266580538b136057aa6/util/oid.go#L134-L174", "partition": "valid"} +{"repo": "shurcooL/githubv4", "path": "example/githubv4dev/main.go", "func_name": "printJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// printJSON prints v as JSON encoded with indent to stdout. It panics on any error.", "docstring_tokens": ["printJSON", "prints", "v", "as", "JSON", "encoded", "with", "indent", "to", "stdout", ".", "It", "panics", "on", "any", "error", "."], "sha": "d9689b59501712371c702f54e9573531888d52fe", "url": "https://github.com/shurcooL/githubv4/blob/d9689b59501712371c702f54e9573531888d52fe/example/githubv4dev/main.go#L197-L204", "partition": "valid"} +{"repo": "shurcooL/githubv4", "path": "scalar.go", "func_name": "UnmarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalJSON implements the json.Unmarshaler interface.\n// The URI is expected to be a quoted string.", "docstring_tokens": ["UnmarshalJSON", "implements", "the", "json", ".", "Unmarshaler", "interface", ".", "The", "URI", "is", "expected", "to", "be", "a", "quoted", "string", "."], "sha": "d9689b59501712371c702f54e9573531888d52fe", "url": "https://github.com/shurcooL/githubv4/blob/d9689b59501712371c702f54e9573531888d52fe/scalar.go#L79-L91", "partition": "valid"} +{"repo": "shurcooL/githubv4", "path": "githubv4.go", "func_name": "NewClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClient creates a new GitHub GraphQL API v4 client with the provided http.Client.\n// If httpClient is nil, then http.DefaultClient is used.\n//\n// Note that GitHub GraphQL API v4 requires authentication, so\n// the provided http.Client is expected to take care of that.", "docstring_tokens": ["NewClient", "creates", "a", "new", "GitHub", "GraphQL", "API", "v4", "client", "with", "the", "provided", "http", ".", "Client", ".", "If", "httpClient", "is", "nil", "then", "http", ".", "DefaultClient", "is", "used", ".", "Note", "that", "GitHub", "GraphQL", "API", "v4", "requires", "authentication", "so", "the", "provided", "http", ".", "Client", "is", "expected", "to", "take", "care", "of", "that", "."], "sha": "d9689b59501712371c702f54e9573531888d52fe", "url": "https://github.com/shurcooL/githubv4/blob/d9689b59501712371c702f54e9573531888d52fe/githubv4.go#L20-L24", "partition": "valid"} +{"repo": "shurcooL/githubv4", "path": "githubv4.go", "func_name": "NewEnterpriseClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewEnterpriseClient creates a new GitHub GraphQL API v4 client for the GitHub Enterprise\n// instance with the specified GraphQL endpoint URL, using the provided http.Client.\n// If httpClient is nil, then http.DefaultClient is used.\n//\n// Note that GitHub GraphQL API v4 requires authentication, so\n// the provided http.Client is expected to take care of that.", "docstring_tokens": ["NewEnterpriseClient", "creates", "a", "new", "GitHub", "GraphQL", "API", "v4", "client", "for", "the", "GitHub", "Enterprise", "instance", "with", "the", "specified", "GraphQL", "endpoint", "URL", "using", "the", "provided", "http", ".", "Client", ".", "If", "httpClient", "is", "nil", "then", "http", ".", "DefaultClient", "is", "used", ".", "Note", "that", "GitHub", "GraphQL", "API", "v4", "requires", "authentication", "so", "the", "provided", "http", ".", "Client", "is", "expected", "to", "take", "care", "of", "that", "."], "sha": "d9689b59501712371c702f54e9573531888d52fe", "url": "https://github.com/shurcooL/githubv4/blob/d9689b59501712371c702f54e9573531888d52fe/githubv4.go#L32-L36", "partition": "valid"} +{"repo": "shurcooL/githubv4", "path": "githubv4.go", "func_name": "Query", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Query executes a single GraphQL query request,\n// with a query derived from q, populating the response into it.\n// q should be a pointer to struct that corresponds to the GitHub GraphQL schema.", "docstring_tokens": ["Query", "executes", "a", "single", "GraphQL", "query", "request", "with", "a", "query", "derived", "from", "q", "populating", "the", "response", "into", "it", ".", "q", "should", "be", "a", "pointer", "to", "struct", "that", "corresponds", "to", "the", "GitHub", "GraphQL", "schema", "."], "sha": "d9689b59501712371c702f54e9573531888d52fe", "url": "https://github.com/shurcooL/githubv4/blob/d9689b59501712371c702f54e9573531888d52fe/githubv4.go#L41-L43", "partition": "valid"} +{"repo": "shurcooL/githubv4", "path": "githubv4.go", "func_name": "Mutate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Mutate executes a single GraphQL mutation request,\n// with a mutation derived from m, populating the response into it.\n// m should be a pointer to struct that corresponds to the GitHub GraphQL schema.\n// Provided input will be set as a variable named \"input\".", "docstring_tokens": ["Mutate", "executes", "a", "single", "GraphQL", "mutation", "request", "with", "a", "mutation", "derived", "from", "m", "populating", "the", "response", "into", "it", ".", "m", "should", "be", "a", "pointer", "to", "struct", "that", "corresponds", "to", "the", "GitHub", "GraphQL", "schema", ".", "Provided", "input", "will", "be", "set", "as", "a", "variable", "named", "input", "."], "sha": "d9689b59501712371c702f54e9573531888d52fe", "url": "https://github.com/shurcooL/githubv4/blob/d9689b59501712371c702f54e9573531888d52fe/githubv4.go#L49-L56", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "fileselectdlg.go", "func_name": "populateFiles", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fills the ListBox with the file names from current directory.\n// Files which names do not match mask are filtered out.\n// If select directory is set, then the ListBox contains only directories.\n// Directory names ends with path separator", "docstring_tokens": ["Fills", "the", "ListBox", "with", "the", "file", "names", "from", "current", "directory", ".", "Files", "which", "names", "do", "not", "match", "mask", "are", "filtered", "out", ".", "If", "select", "directory", "is", "set", "then", "the", "ListBox", "contains", "only", "directories", ".", "Directory", "names", "ends", "with", "path", "separator"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/fileselectdlg.go#L77-L121", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "fileselectdlg.go", "func_name": "detectPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Tries to find the best fit for the given path.\n// It goes up until it gets into the existing directory.\n// If all fails it returns working directory.", "docstring_tokens": ["Tries", "to", "find", "the", "best", "fit", "for", "the", "given", "path", ".", "It", "goes", "up", "until", "it", "gets", "into", "the", "existing", "directory", ".", "If", "all", "fails", "it", "returns", "working", "directory", "."], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/fileselectdlg.go#L126-L149", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "fileselectdlg.go", "func_name": "pathUp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Goes up in the directory tree if it is possible", "docstring_tokens": ["Goes", "up", "in", "the", "directory", "tree", "if", "it", "is", "possible"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/fileselectdlg.go#L152-L160", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "fileselectdlg.go", "func_name": "pathDown", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Enters the directory", "docstring_tokens": ["Enters", "the", "directory"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/fileselectdlg.go#L163-L167", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "base_control.go", "func_name": "Destroy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Destroy removes an object from its parental chain", "docstring_tokens": ["Destroy", "removes", "an", "object", "from", "its", "parental", "chain"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/base_control.go#L638-L641", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "demos/tableview-preload/tableview.go", "func_name": "preload", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// cache data from a new row span\n// It imitates a random data by selecting values from predefined arrays. Sizes\n// of all arrays should be different to make TableView data look more random", "docstring_tokens": ["cache", "data", "from", "a", "new", "row", "span", "It", "imitates", "a", "random", "data", "by", "selecting", "values", "from", "predefined", "arrays", ".", "Sizes", "of", "all", "arrays", "should", "be", "different", "to", "make", "TableView", "data", "look", "more", "random"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/demos/tableview-preload/tableview.go#L36-L64", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "demos/tableview-preload/tableview.go", "func_name": "value", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// returns the cell value for a given col and row. Col and row are absolute\n// value. But cache keeps limited number of rows to minimize memory usage.\n// So, the position of the value of the cell should be calculated\n// To simplify, the function just returns empty string if the cell is not\n// cached. It is unlikely but can happen", "docstring_tokens": ["returns", "the", "cell", "value", "for", "a", "given", "col", "and", "row", ".", "Col", "and", "row", "are", "absolute", "value", ".", "But", "cache", "keeps", "limited", "number", "of", "rows", "to", "minimize", "memory", "usage", ".", "So", "the", "position", "of", "the", "value", "of", "the", "cell", "should", "be", "calculated", "To", "simplify", "the", "function", "just", "returns", "empty", "string", "if", "the", "cell", "is", "not", "cached", ".", "It", "is", "unlikely", "but", "can", "happen"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/demos/tableview-preload/tableview.go#L71-L81", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "composer.go", "func_name": "RefreshScreen", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Repaints everything on the screen", "docstring_tokens": ["Repaints", "everything", "on", "the", "screen"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/composer.go#L73-L96", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "composer.go", "func_name": "AddWindow", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddWindow constucts a new Window, adds it to the composer automatically,\n// and makes it active\n// posX and posY are top left coordinates of the Window\n// width and height are Window size\n// title is a Window title", "docstring_tokens": ["AddWindow", "constucts", "a", "new", "Window", "adds", "it", "to", "the", "composer", "automatically", "and", "makes", "it", "active", "posX", "and", "posY", "are", "top", "left", "coordinates", "of", "the", "Window", "width", "and", "height", "are", "Window", "size", "title", "is", "a", "Window", "title"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/composer.go#L103-L118", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "composer.go", "func_name": "DestroyWindow", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DestroyWindow removes the Window from the list of managed Windows", "docstring_tokens": ["DestroyWindow", "removes", "the", "Window", "from", "the", "list", "of", "managed", "Windows"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/composer.go#L589-L610", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "composer.go", "func_name": "IsDeadKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsDeadKey returns true if the pressed key is the first key in\n// the key sequence understood by composer. Dead key is never sent to\n// any control", "docstring_tokens": ["IsDeadKey", "returns", "true", "if", "the", "pressed", "key", "is", "the", "first", "key", "in", "the", "key", "sequence", "understood", "by", "composer", ".", "Dead", "key", "is", "never", "sent", "to", "any", "control"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/composer.go#L615-L622", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "label.go", "func_name": "SetTextDisplay", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetTextDisplay sets which part of the title is displayed in case of the title\n// is longer than the lable. Only AlignLeft and AlignRigth are valid values\n// for the property. Any other value does is skipped and does not affect\n// displaying the title", "docstring_tokens": ["SetTextDisplay", "sets", "which", "part", "of", "the", "title", "is", "displayed", "in", "case", "of", "the", "title", "is", "longer", "than", "the", "lable", ".", "Only", "AlignLeft", "and", "AlignRigth", "are", "valid", "values", "for", "the", "property", ".", "Any", "other", "value", "does", "is", "skipped", "and", "does", "not", "affect", "displaying", "the", "title"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/label.go#L166-L172", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "radiogroup.go", "func_name": "CreateRadioGroup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRadioGroup creates a new RadioGroup", "docstring_tokens": ["NewRadioGroup", "creates", "a", "new", "RadioGroup"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/radiogroup.go#L11-L15", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "radiogroup.go", "func_name": "Selected", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Selected returns the number of currently selected radio\n// button inside the group or -1 if no button is selected", "docstring_tokens": ["Selected", "returns", "the", "number", "of", "currently", "selected", "radio", "button", "inside", "the", "group", "or", "-", "1", "if", "no", "button", "is", "selected"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/radiogroup.go#L19-L30", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "radiogroup.go", "func_name": "SelectItem", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SelectItem makes the radio selected. The function returns false\n// if it failed to find the radio in the radio group", "docstring_tokens": ["SelectItem", "makes", "the", "radio", "selected", ".", "The", "function", "returns", "false", "if", "it", "failed", "to", "find", "the", "radio", "in", "the", "radio", "group"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/radiogroup.go#L34-L47", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "radiogroup.go", "func_name": "SetSelected", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetSelected selects the radio by its number. The function\n// returns false if the number is invalid for the radio group", "docstring_tokens": ["SetSelected", "selects", "the", "radio", "by", "its", "number", ".", "The", "function", "returns", "false", "if", "the", "number", "is", "invalid", "for", "the", "radio", "group"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/radiogroup.go#L51-L67", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "radiogroup.go", "func_name": "AddItem", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddItem add a new radio button to group", "docstring_tokens": ["AddItem", "add", "a", "new", "radio", "button", "to", "group"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/radiogroup.go#L70-L73", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "colorparse.go", "func_name": "NewColorParser", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewColorParser creates a new string parser.\n// str is a string to parse.\n// defText is a default text color.\n// defBack is a default background color.\n// Default colors are applied in case of reset color tag", "docstring_tokens": ["NewColorParser", "creates", "a", "new", "string", "parser", ".", "str", "is", "a", "string", "to", "parse", ".", "defText", "is", "a", "default", "text", "color", ".", "defBack", "is", "a", "default", "background", "color", ".", "Default", "colors", "are", "applied", "in", "case", "of", "reset", "color", "tag"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/colorparse.go#L52-L58", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "colorparse.go", "func_name": "NextElement", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NextElement parses and returns the next string element", "docstring_tokens": ["NextElement", "parses", "and", "returns", "the", "next", "string", "element"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/colorparse.go#L134-L169", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "edit.go", "func_name": "SetTitle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetTitle changes the EditField content and emits OnChage eventif the new value does not equal to old one", "docstring_tokens": ["SetTitle", "changes", "the", "EditField", "content", "and", "emits", "OnChage", "eventif", "the", "new", "value", "does", "not", "equal", "to", "old", "one"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/edit.go#L23-L27", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "edit.go", "func_name": "SetMaxWidth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetMaxWidth sets the maximum lenght of the EditField text. If the current text is longer it is truncated", "docstring_tokens": ["SetMaxWidth", "sets", "the", "maximum", "lenght", "of", "the", "EditField", "text", ".", "If", "the", "current", "text", "is", "longer", "it", "is", "truncated"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/edit.go#L236-L242", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "edit.go", "func_name": "SetSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetSize changes control size. Constant DoNotChange can be\n// used as placeholder to indicate that the control attrubute\n// should be unchanged.\n// Method does nothing if new size is less than minimal size\n// EditField height cannot be changed - it equals 1 always", "docstring_tokens": ["SetSize", "changes", "control", "size", ".", "Constant", "DoNotChange", "can", "be", "used", "as", "placeholder", "to", "indicate", "that", "the", "control", "attrubute", "should", "be", "unchanged", ".", "Method", "does", "nothing", "if", "new", "size", "is", "less", "than", "minimal", "size", "EditField", "height", "cannot", "be", "changed", "-", "it", "equals", "1", "always"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/edit.go#L254-L267", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "canvas.go", "func_name": "PopAttributes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PopAttributes restores saved with PushAttributes colors. Function does\n// nothing if there is no saved colors", "docstring_tokens": ["PopAttributes", "restores", "saved", "with", "PushAttributes", "colors", ".", "Function", "does", "nothing", "if", "there", "is", "no", "saved", "colors"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/canvas.go#L62-L70", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "canvas.go", "func_name": "PushClip", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PushClip saves the current clipping window", "docstring_tokens": ["PushClip", "saves", "the", "current", "clipping", "window"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/canvas.go#L73-L76", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "canvas.go", "func_name": "PopClip", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PopClip restores saved with PushClip clipping window", "docstring_tokens": ["PopClip", "restores", "saved", "with", "PushClip", "clipping", "window"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/canvas.go#L79-L86", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "canvas.go", "func_name": "InClipRect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InClipRect returns true if x and y position is inside current clipping\n// rectangle", "docstring_tokens": ["InClipRect", "returns", "true", "if", "x", "and", "y", "position", "is", "inside", "current", "clipping", "rectangle"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/canvas.go#L104-L108", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "canvas.go", "func_name": "SetScreenSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetSize sets the new Canvas size. If new size does not\n// equal old size then Canvas is recreated and cleared\n// with default colors. Both Canvas width and height must\n// be greater than 2", "docstring_tokens": ["SetSize", "sets", "the", "new", "Canvas", "size", ".", "If", "new", "size", "does", "not", "equal", "old", "size", "then", "Canvas", "is", "recreated", "and", "cleared", "with", "default", "colors", ".", "Both", "Canvas", "width", "and", "height", "must", "be", "greater", "than", "2"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/canvas.go#L143-L153", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "canvas.go", "func_name": "Symbol", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Symbol returns the character and its attributes by its coordinates", "docstring_tokens": ["Symbol", "returns", "the", "character", "and", "its", "attributes", "by", "its", "coordinates"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/canvas.go#L182-L188", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "canvas.go", "func_name": "SetClipRect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetClipRect defines a new clipping rect. Maybe useful with PopClip and\n// PushClip functions", "docstring_tokens": ["SetClipRect", "defines", "a", "new", "clipping", "rect", ".", "Maybe", "useful", "with", "PopClip", "and", "PushClip", "functions"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/canvas.go#L210-L228", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "canvas.go", "func_name": "ClipRect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ClipRect returns the current clipping rectangle", "docstring_tokens": ["ClipRect", "returns", "the", "current", "clipping", "rectangle"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/canvas.go#L231-L233", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "canvas.go", "func_name": "DrawHorizontalLine", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DrawHorizontalLine draws the part of the horizontal line that is inside\n// current clipping rectangle", "docstring_tokens": ["DrawHorizontalLine", "draws", "the", "part", "of", "the", "horizontal", "line", "that", "is", "inside", "current", "clipping", "rectangle"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/canvas.go#L237-L246", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "canvas.go", "func_name": "DrawVerticalLine", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DrawVerticalLine draws the part of the vertical line that is inside current\n// clipping rectangle", "docstring_tokens": ["DrawVerticalLine", "draws", "the", "part", "of", "the", "vertical", "line", "that", "is", "inside", "current", "clipping", "rectangle"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/canvas.go#L250-L259", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "canvas.go", "func_name": "DrawRawText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DrawRawText draws the part of text that is inside the current clipping\n// rectangle. DrawRawText always paints string as is - no color changes.\n// If you want to draw string with color changing commands included then\n// use DrawText function", "docstring_tokens": ["DrawRawText", "draws", "the", "part", "of", "text", "that", "is", "inside", "the", "current", "clipping", "rectangle", ".", "DrawRawText", "always", "paints", "string", "as", "is", "-", "no", "color", "changes", ".", "If", "you", "want", "to", "draw", "string", "with", "color", "changing", "commands", "included", "then", "use", "DrawText", "function"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/canvas.go#L298-L321", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "canvas.go", "func_name": "DrawTextVertical", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DrawTextVertical draws the part of text that is inside the current clipping\n// rectangle. DrawTextVertical always paints colorized string. If you want to draw\n// raw string then use DrawRawTextVertical function", "docstring_tokens": ["DrawTextVertical", "draws", "the", "part", "of", "text", "that", "is", "inside", "the", "current", "clipping", "rectangle", ".", "DrawTextVertical", "always", "paints", "colorized", "string", ".", "If", "you", "want", "to", "draw", "raw", "string", "then", "use", "DrawRawTextVertical", "function"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/canvas.go#L326-L348", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "canvas.go", "func_name": "DrawRawTextVertical", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DrawRawTextVertical draws the part of text that is inside the current clipping\n// rectangle. DrawRawTextVertical always paints string as is - no color changes.\n// If you want to draw string with color changing commands included then\n// use DrawTextVertical function", "docstring_tokens": ["DrawRawTextVertical", "draws", "the", "part", "of", "text", "that", "is", "inside", "the", "current", "clipping", "rectangle", ".", "DrawRawTextVertical", "always", "paints", "string", "as", "is", "-", "no", "color", "changes", ".", "If", "you", "want", "to", "draw", "string", "with", "color", "changing", "commands", "included", "then", "use", "DrawTextVertical", "function"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/canvas.go#L354-L377", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "canvas.go", "func_name": "DrawFrame", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DrawFrame paints the frame without changing area inside it", "docstring_tokens": ["DrawFrame", "paints", "the", "frame", "without", "changing", "area", "inside", "it"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/canvas.go#L380-L425", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "canvas.go", "func_name": "FillRect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FillRect paints the area with r character using the current colors", "docstring_tokens": ["FillRect", "paints", "the", "area", "with", "r", "character", "using", "the", "current", "colors"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/canvas.go#L501-L512", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "canvas.go", "func_name": "TextExtent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TextExtent calculates the width and the height of the text", "docstring_tokens": ["TextExtent", "calculates", "the", "width", "and", "the", "height", "of", "the", "text"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/canvas.go#L515-L531", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "listbox.go", "func_name": "EnsureVisible", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EnsureVisible makes the currently selected item visible and scrolls the item list if it is required", "docstring_tokens": ["EnsureVisible", "makes", "the", "currently", "selected", "item", "visible", "and", "scrolls", "the", "item", "list", "if", "it", "is", "required"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/listbox.go#L218-L240", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "listbox.go", "func_name": "Clear", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Clear deletes all ListBox items", "docstring_tokens": ["Clear", "deletes", "all", "ListBox", "items"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/listbox.go#L243-L247", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "listbox.go", "func_name": "AddItem", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// own methods\n// AddItem adds a new item to item list.\n// Returns true if the operation is successful", "docstring_tokens": ["own", "methods", "AddItem", "adds", "a", "new", "item", "to", "item", "list", ".", "Returns", "true", "if", "the", "operation", "is", "successful"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/listbox.go#L364-L367", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "listbox.go", "func_name": "SelectItem", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SelectItem selects item which number in the list equals\n// id. If the item exists the ListBox scrolls the list to\n// make the item visible.\n// Returns true if the item is selected successfully", "docstring_tokens": ["SelectItem", "selects", "item", "which", "number", "in", "the", "list", "equals", "id", ".", "If", "the", "item", "exists", "the", "ListBox", "scrolls", "the", "list", "to", "make", "the", "item", "visible", ".", "Returns", "true", "if", "the", "item", "is", "selected", "successfully"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/listbox.go#L373-L381", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "listbox.go", "func_name": "Item", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Item returns item text by its index.\n// If index is out of range an empty string and false are returned", "docstring_tokens": ["Item", "returns", "item", "text", "by", "its", "index", ".", "If", "index", "is", "out", "of", "range", "an", "empty", "string", "and", "false", "are", "returned"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/listbox.go#L385-L391", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "listbox.go", "func_name": "FindItem", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FindItem looks for an item in list which text equals\n// to text, by default the search is casesensitive.\n// Returns item number in item list or -1 if nothing is found.", "docstring_tokens": ["FindItem", "looks", "for", "an", "item", "in", "list", "which", "text", "equals", "to", "text", "by", "default", "the", "search", "is", "casesensitive", ".", "Returns", "item", "number", "in", "item", "list", "or", "-", "1", "if", "nothing", "is", "found", "."], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/listbox.go#L396-L404", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "listbox.go", "func_name": "PartialFindItem", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PartialFindItem looks for an item in list which text starts from\n// the given substring, by default the search is casesensitive.\n// Returns item number in item list or -1 if nothing is found.", "docstring_tokens": ["PartialFindItem", "looks", "for", "an", "item", "in", "list", "which", "text", "starts", "from", "the", "given", "substring", "by", "default", "the", "search", "is", "casesensitive", ".", "Returns", "item", "number", "in", "item", "list", "or", "-", "1", "if", "nothing", "is", "found", "."], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/listbox.go#L409-L428", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "listbox.go", "func_name": "SelectedItemText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SelectedItemText returns text of currently selected item or empty sting if nothing is\n// selected or ListBox is empty.", "docstring_tokens": ["SelectedItemText", "returns", "text", "of", "currently", "selected", "item", "or", "empty", "sting", "if", "nothing", "is", "selected", "or", "ListBox", "is", "empty", "."], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/listbox.go#L437-L443", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "listbox.go", "func_name": "RemoveItem", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveItem deletes an item which number is id in item list\n// Returns true if item is deleted", "docstring_tokens": ["RemoveItem", "deletes", "an", "item", "which", "number", "is", "id", "in", "item", "list", "Returns", "true", "if", "item", "is", "deleted"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/listbox.go#L447-L454", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "theme.go", "func_name": "SysColor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SysColor returns attribute by its id for the current theme.\n// The method panics if theme loop is detected - check if\n// parent attribute is correct", "docstring_tokens": ["SysColor", "returns", "attribute", "by", "its", "id", "for", "the", "current", "theme", ".", "The", "method", "panics", "if", "theme", "loop", "is", "detected", "-", "check", "if", "parent", "attribute", "is", "correct"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/theme.go#L216-L255", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "theme.go", "func_name": "SysObject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SysObject returns object look by its id for the current\n// theme. E.g, border lines for frame or arrows for scrollbar.\n// The method panics if theme loop is detected - check if\n// parent attribute is correct", "docstring_tokens": ["SysObject", "returns", "object", "look", "by", "its", "id", "for", "the", "current", "theme", ".", "E", ".", "g", "border", "lines", "for", "frame", "or", "arrows", "for", "scrollbar", ".", "The", "method", "panics", "if", "theme", "loop", "is", "detected", "-", "check", "if", "parent", "attribute", "is", "correct"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/theme.go#L261-L301", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "theme.go", "func_name": "SetThemePath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetThemePath changes the directory that contains themes.\n// If new path does not equal old one, theme list reloads", "docstring_tokens": ["SetThemePath", "changes", "the", "directory", "that", "contains", "themes", ".", "If", "new", "path", "does", "not", "equal", "old", "one", "theme", "list", "reloads"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/theme.go#L369-L376", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "theme.go", "func_name": "loadTheme", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// loadTheme loads the theme if it is not in the cache already.\n// If theme is in the cache loadTheme does nothing", "docstring_tokens": ["loadTheme", "loads", "the", "theme", "if", "it", "is", "not", "in", "the", "cache", "already", ".", "If", "theme", "is", "in", "the", "cache", "loadTheme", "does", "nothing"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/theme.go#L380-L469", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "theme.go", "func_name": "ReloadTheme", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReloadTheme refresh cache entry for the theme with new\n// data loaded from file. Use it to apply theme changes on\n// the fly without resetting manager or restarting application", "docstring_tokens": ["ReloadTheme", "refresh", "cache", "entry", "for", "the", "theme", "with", "new", "data", "loaded", "from", "file", ".", "Use", "it", "to", "apply", "theme", "changes", "on", "the", "fly", "without", "resetting", "manager", "or", "restarting", "application"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/theme.go#L474-L487", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "theme.go", "func_name": "ThemeInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ThemeInfo returns detailed info about theme", "docstring_tokens": ["ThemeInfo", "returns", "detailed", "info", "about", "theme"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/theme.go#L490-L503", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "textutil.go", "func_name": "Ellipsize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Ellipsize truncates text to maxWidth by replacing a\n// substring in the middle with ellipsis and keeping\n// the beginning and ending of the string untouched.\n// If maxWidth is less than 5 then no ellipsis is\n// added, the text is just truncated from the right.", "docstring_tokens": ["Ellipsize", "truncates", "text", "to", "maxWidth", "by", "replacing", "a", "substring", "in", "the", "middle", "with", "ellipsis", "and", "keeping", "the", "beginning", "and", "ending", "of", "the", "string", "untouched", ".", "If", "maxWidth", "is", "less", "than", "5", "then", "no", "ellipsis", "is", "added", "the", "text", "is", "just", "truncated", "from", "the", "right", "."], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/textutil.go#L34-L47", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "textutil.go", "func_name": "CutText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CutText makes a text no longer than maxWidth", "docstring_tokens": ["CutText", "makes", "a", "text", "no", "longer", "than", "maxWidth"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/textutil.go#L50-L57", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "textutil.go", "func_name": "AlignText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AlignText calculates the initial position of the text\n// output depending on str length and available width.\n// The str is truncated in case of its lenght greater than\n// width. Function returns shift that should be added to\n// original label position before output instead of padding\n// the string with spaces. The reason is to make possible\n// to draw a label aligned but with transparent beginning\n// and ending. If you do not need transparency you can\n// add spaces manually using the returned shift value", "docstring_tokens": ["AlignText", "calculates", "the", "initial", "position", "of", "the", "text", "output", "depending", "on", "str", "length", "and", "available", "width", ".", "The", "str", "is", "truncated", "in", "case", "of", "its", "lenght", "greater", "than", "width", ".", "Function", "returns", "shift", "that", "should", "be", "added", "to", "original", "label", "position", "before", "output", "instead", "of", "padding", "the", "string", "with", "spaces", ".", "The", "reason", "is", "to", "make", "possible", "to", "draw", "a", "label", "aligned", "but", "with", "transparent", "beginning", "and", "ending", ".", "If", "you", "do", "not", "need", "transparency", "you", "can", "add", "spaces", "manually", "using", "the", "returned", "shift", "value"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/textutil.go#L68-L82", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "textutil.go", "func_name": "SliceColorized", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SliceColorized returns a slice of text with correct color\n// tags. start and end are real printable rune indices", "docstring_tokens": ["SliceColorized", "returns", "a", "slice", "of", "text", "with", "correct", "color", "tags", ".", "start", "and", "end", "are", "real", "printable", "rune", "indices"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/textutil.go#L147-L196", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "textutil.go", "func_name": "ColorToString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ColorToString returns string representation of the attribute", "docstring_tokens": ["ColorToString", "returns", "string", "representation", "of", "the", "attribute"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/textutil.go#L253-L277", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "mainloop.go", "func_name": "MainLoop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MainLoop starts the main application event loop", "docstring_tokens": ["MainLoop", "starts", "the", "main", "application", "event", "loop"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/mainloop.go#L25-L53", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "edit_other.go", "func_name": "CreateEditField", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewEditField creates a new EditField control\n// view - is a View that manages the control\n// parent - is container that keeps the control. The same View can be a view and a parent at the same time.\n// width - is minimal width of the control.\n// text - text to edit.\n// scale - the way of scaling the control when the parent is resized. Use DoNotScale constant if the\n// control should keep its original size.", "docstring_tokens": ["NewEditField", "creates", "a", "new", "EditField", "control", "view", "-", "is", "a", "View", "that", "manages", "the", "control", "parent", "-", "is", "container", "that", "keeps", "the", "control", ".", "The", "same", "View", "can", "be", "a", "view", "and", "a", "parent", "at", "the", "same", "time", ".", "width", "-", "is", "minimal", "width", "of", "the", "control", ".", "text", "-", "text", "to", "edit", ".", "scale", "-", "the", "way", "of", "scaling", "the", "control", "when", "the", "parent", "is", "resized", ".", "Use", "DoNotScale", "constant", "if", "the", "control", "should", "keep", "its", "original", "size", "."], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/edit_other.go#L41-L68", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "ctrlutil.go", "func_name": "ChildAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ChildAt returns the children of parent control that is at absolute\n// coordinates x, y. Returns nil if x, y are outside parent control and\n// returns parent if no child is at x, y", "docstring_tokens": ["ChildAt", "returns", "the", "children", "of", "parent", "control", "that", "is", "at", "absolute", "coordinates", "x", "y", ".", "Returns", "nil", "if", "x", "y", "are", "outside", "parent", "control", "and", "returns", "parent", "if", "no", "child", "is", "at", "x", "y"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/ctrlutil.go#L60-L86", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "ctrlutil.go", "func_name": "DeactivateControls", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeactivateControls makes all children of parent inactive", "docstring_tokens": ["DeactivateControls", "makes", "all", "children", "of", "parent", "inactive"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/ctrlutil.go#L89-L98", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "ctrlutil.go", "func_name": "ActivateControl", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ActivateControl makes control active and disables all other children of\n// the parent. Returns true if control was found and activated", "docstring_tokens": ["ActivateControl", "makes", "control", "active", "and", "disables", "all", "other", "children", "of", "the", "parent", ".", "Returns", "true", "if", "control", "was", "found", "and", "activated"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/ctrlutil.go#L102-L115", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "ctrlutil.go", "func_name": "FindChild", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FindChild returns control if it is a child of the parent and nil otherwise", "docstring_tokens": ["FindChild", "returns", "control", "if", "it", "is", "a", "child", "of", "the", "parent", "and", "nil", "otherwise"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/ctrlutil.go#L118-L138", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "ctrlutil.go", "func_name": "IsMouseClickEvent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsMouseClickEvent returns if a user action can be treated as mouse click.", "docstring_tokens": ["IsMouseClickEvent", "returns", "if", "a", "user", "action", "can", "be", "treated", "as", "mouse", "click", "."], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/ctrlutil.go#L141-L150", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "ctrlutil.go", "func_name": "FindFirstControl", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FindFirstControl returns the first child for that fn returns true.\n// The function is used to find active or tab-stop control", "docstring_tokens": ["FindFirstControl", "returns", "the", "first", "child", "for", "that", "fn", "returns", "true", ".", "The", "function", "is", "used", "to", "find", "active", "or", "tab", "-", "stop", "control"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/ctrlutil.go#L154-L161", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "ctrlutil.go", "func_name": "ActiveControl", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ActiveControl returns the active child of the parent or nil if no child is\n// active", "docstring_tokens": ["ActiveControl", "returns", "the", "active", "child", "of", "the", "parent", "or", "nil", "if", "no", "child", "is", "active"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/ctrlutil.go#L178-L183", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "ctrlutil.go", "func_name": "FindFirstActiveControl", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FindFirstActiveControl returns the first active control of a parent", "docstring_tokens": ["FindFirstActiveControl", "returns", "the", "first", "active", "control", "of", "a", "parent"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/ctrlutil.go#L186-L193", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "ctrlutil.go", "func_name": "SendEventToChild", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SendEventToChild tries to find a child control that should recieve the evetn\n// For mouse click events it looks for a control at coordinates of event,\n// makes it active, and then sends the event to it.\n// If it is not mouse click event then it looks for the first active child and\n// sends the event to it if it is not nil", "docstring_tokens": ["SendEventToChild", "tries", "to", "find", "a", "child", "control", "that", "should", "recieve", "the", "evetn", "For", "mouse", "click", "events", "it", "looks", "for", "a", "control", "at", "coordinates", "of", "event", "makes", "it", "active", "and", "then", "sends", "the", "event", "to", "it", ".", "If", "it", "is", "not", "mouse", "click", "event", "then", "it", "looks", "for", "the", "first", "active", "child", "and", "sends", "the", "event", "to", "it", "if", "it", "is", "not", "nil"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/ctrlutil.go#L275-L298", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "ctrlutil.go", "func_name": "CalcClipper", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CalcClipper calculates the clipper size based on the control's size, position\n// and paddings", "docstring_tokens": ["CalcClipper", "calculates", "the", "clipper", "size", "based", "on", "the", "control", "s", "size", "position", "and", "paddings"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/ctrlutil.go#L302-L313", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "ctrlutil.go", "func_name": "ClippedParent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ClippedParent finds the first c parent with clipped flag", "docstring_tokens": ["ClippedParent", "finds", "the", "first", "c", "parent", "with", "clipped", "flag"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/ctrlutil.go#L316-L332", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "ctrlutil.go", "func_name": "ControlInRect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ControlInRect returns true if c is within a given rect", "docstring_tokens": ["ControlInRect", "returns", "true", "if", "c", "is", "within", "a", "given", "rect"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/ctrlutil.go#L335-L341", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "dialog.go", "func_name": "CreateAlertDialog", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateAlertDialog creates a new alert dialog.\n// title is a dialog title\n// message is a text inside dialog for user to be notified of a fact\n// button is a title for button inside dialog.", "docstring_tokens": ["CreateAlertDialog", "creates", "a", "new", "alert", "dialog", ".", "title", "is", "a", "dialog", "title", "message", "is", "a", "text", "inside", "dialog", "for", "user", "to", "be", "notified", "of", "a", "fact", "button", "is", "a", "title", "for", "button", "inside", "dialog", "."], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/dialog.go#L40-L42", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "checkbox.go", "func_name": "ProcessEvent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//ProcessEvent processes all events come from the control parent. If a control\n// processes an event it should return true. If the method returns false it means\n// that the control do not want or cannot process the event and the caller sends\n// the event to the control parent", "docstring_tokens": ["ProcessEvent", "processes", "all", "events", "come", "from", "the", "control", "parent", ".", "If", "a", "control", "processes", "an", "event", "it", "should", "return", "true", ".", "If", "the", "method", "returns", "false", "it", "means", "that", "the", "control", "do", "not", "want", "or", "cannot", "process", "the", "event", "and", "the", "caller", "sends", "the", "event", "to", "the", "control", "parent"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/checkbox.go#L104-L125", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "checkbox.go", "func_name": "SetState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetState changes the current state of CheckBox\n// Value must be 0 or 1 if Allow3State is off,\n// and 0, 1, or 2 if Allow3State is on", "docstring_tokens": ["SetState", "changes", "the", "current", "state", "of", "CheckBox", "Value", "must", "be", "0", "or", "1", "if", "Allow3State", "is", "off", "and", "0", "1", "or", "2", "if", "Allow3State", "is", "on"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/checkbox.go#L130-L153", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "checkbox.go", "func_name": "State", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// State returns current state of CheckBox", "docstring_tokens": ["State", "returns", "current", "state", "of", "CheckBox"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/checkbox.go#L156-L161", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "checkbox.go", "func_name": "SetAllow3State", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetAllow3State sets if ComboBox should use 3 states. If the current\n// state is unknown and one disables Allow3State option then the current\n// value resets to off", "docstring_tokens": ["SetAllow3State", "sets", "if", "ComboBox", "should", "use", "3", "states", ".", "If", "the", "current", "state", "is", "unknown", "and", "one", "disables", "Allow3State", "option", "then", "the", "current", "value", "resets", "to", "off"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/checkbox.go#L166-L171", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "checkbox.go", "func_name": "SetSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetSize changes control size. Constant DoNotChange can be\n// used as placeholder to indicate that the control attrubute\n// should be unchanged.\n// Method does nothing if new size is less than minimal size\n// CheckBox height cannot be changed - it equals 1 always", "docstring_tokens": ["SetSize", "changes", "control", "size", ".", "Constant", "DoNotChange", "can", "be", "used", "as", "placeholder", "to", "indicate", "that", "the", "control", "attrubute", "should", "be", "unchanged", ".", "Method", "does", "nothing", "if", "new", "size", "is", "less", "than", "minimal", "size", "CheckBox", "height", "cannot", "be", "changed", "-", "it", "equals", "1", "always"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/checkbox.go#L183-L196", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "frame.go", "func_name": "ScrollTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ScrollTo in case of a scrollable frame this api will scroll the content\n// without adjusting the clipper", "docstring_tokens": ["ScrollTo", "in", "case", "of", "a", "scrollable", "frame", "this", "api", "will", "scroll", "the", "content", "without", "adjusting", "the", "clipper"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/frame.go#L164-L174", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "tableview.go", "func_name": "EnsureColVisible", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EnsureColVisible scrolls the table horizontally\n// to make the currently selected column fully visible", "docstring_tokens": ["EnsureColVisible", "scrolls", "the", "table", "horizontally", "to", "make", "the", "currently", "selected", "column", "fully", "visible"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/tableview.go#L539-L578", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "tableview.go", "func_name": "EnsureRowVisible", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EnsureRowVisible scrolls the table vertically\n// to make the currently selected row visible", "docstring_tokens": ["EnsureRowVisible", "scrolls", "the", "table", "vertically", "to", "make", "the", "currently", "selected", "row", "visible"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/tableview.go#L582-L606", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "tableview.go", "func_name": "Columns", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Columns returns the current list of table columns", "docstring_tokens": ["Columns", "returns", "the", "current", "list", "of", "table", "columns"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/tableview.go#L886-L890", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "tableview.go", "func_name": "SetColumnInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetColumnInfo replaces the existing column info", "docstring_tokens": ["SetColumnInfo", "replaces", "the", "existing", "column", "info"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/tableview.go#L901-L905", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "tableview.go", "func_name": "OnKeyPress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OnKeyPress sets the callback that is called when a user presses a Key while\n// the controls is active. If a handler processes the key it should return\n// true. If handler returns false it means that the default handler has to\n// process the key", "docstring_tokens": ["OnKeyPress", "sets", "the", "callback", "that", "is", "called", "when", "a", "user", "presses", "a", "Key", "while", "the", "controls", "is", "active", ".", "If", "a", "handler", "processes", "the", "key", "it", "should", "return", "true", ".", "If", "handler", "returns", "false", "it", "means", "that", "the", "default", "handler", "has", "to", "process", "the", "key"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/tableview.go#L941-L943", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "tableview.go", "func_name": "OnDrawCell", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OnDrawCell is called every time the table is going to display\n// a cell", "docstring_tokens": ["OnDrawCell", "is", "called", "every", "time", "the", "table", "is", "going", "to", "display", "a", "cell"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/tableview.go#L947-L951", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "tableview.go", "func_name": "SetSelectedRow", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetSelectedRow changes the currently selected row.\n// If row is greater than number of row the last row\n// is selected. Set row to -1 to turn off selection.\n// The table scrolls automatically to display the column", "docstring_tokens": ["SetSelectedRow", "changes", "the", "currently", "selected", "row", ".", "If", "row", "is", "greater", "than", "number", "of", "row", "the", "last", "row", "is", "selected", ".", "Set", "row", "to", "-", "1", "to", "turn", "off", "selection", ".", "The", "table", "scrolls", "automatically", "to", "display", "the", "column"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/tableview.go#L975-L987", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "tableview.go", "func_name": "SetSelectedCol", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetSelectedCol changes the currently selected column.\n// If column is greater than number of columns the last\n// column is selected. Set row to -1 to turn off selection.\n// The table scrolls automatically to display the column", "docstring_tokens": ["SetSelectedCol", "changes", "the", "currently", "selected", "column", ".", "If", "column", "is", "greater", "than", "number", "of", "columns", "the", "last", "column", "is", "selected", ".", "Set", "row", "to", "-", "1", "to", "turn", "off", "selection", ".", "The", "table", "scrolls", "automatically", "to", "display", "the", "column"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/tableview.go#L993-L1005", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "radio.go", "func_name": "SetSelected", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetSelected makes the button selected. One should not use\n// the method directly, it is for RadioGroup control", "docstring_tokens": ["SetSelected", "makes", "the", "button", "selected", ".", "One", "should", "not", "use", "the", "method", "directly", "it", "is", "for", "RadioGroup", "control"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/radio.go#L125-L131", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "radio.go", "func_name": "OnChange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OnChange sets the callback that is called whenever the state\n// of the Radio is changed. Argument of callback is the current", "docstring_tokens": ["OnChange", "sets", "the", "callback", "that", "is", "called", "whenever", "the", "state", "of", "the", "Radio", "is", "changed", ".", "Argument", "of", "callback", "is", "the", "current"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/radio.go#L145-L150", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "textview.go", "func_name": "SetText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetText replaces existing content of the control", "docstring_tokens": ["SetText", "replaces", "existing", "content", "of", "the", "control"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/textview.go#L385-L395", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "textview.go", "func_name": "SetWordWrap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetWordWrap enables or disables wordwrap mode", "docstring_tokens": ["SetWordWrap", "enables", "or", "disables", "wordwrap", "mode"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/textview.go#L454-L461", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "textview.go", "func_name": "LoadFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadFile loads a text from file and replace the control\n// text with the file one.\n// Function returns false if loading text from file fails", "docstring_tokens": ["LoadFile", "loads", "a", "text", "from", "file", "and", "replace", "the", "control", "text", "with", "the", "file", "one", ".", "Function", "returns", "false", "if", "loading", "text", "from", "file", "fails"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/textview.go#L466-L491", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "textview.go", "func_name": "AddText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddText appends a text to the end of the control content.\n// View position may be changed automatically depending on\n// value of AutoScroll", "docstring_tokens": ["AddText", "appends", "a", "text", "to", "the", "end", "of", "the", "control", "content", ".", "View", "position", "may", "be", "changed", "automatically", "depending", "on", "value", "of", "AutoScroll"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/textview.go#L508-L516", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "progressbar.go", "func_name": "Value", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Value returns the current ProgressBar value", "docstring_tokens": ["Value", "returns", "the", "current", "ProgressBar", "value"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/progressbar.go#L184-L188", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "progressbar.go", "func_name": "SetLimits", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetLimits set new ProgressBar limits. The current value\n// is adjusted if it exceeds new limits", "docstring_tokens": ["SetLimits", "set", "new", "ProgressBar", "limits", ".", "The", "current", "value", "is", "adjusted", "if", "it", "exceeds", "new", "limits"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/progressbar.go#L197-L207", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "progressbar.go", "func_name": "Step", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Step increases ProgressBar value by 1 if the value is less\n// than ProgressBar high limit", "docstring_tokens": ["Step", "increases", "ProgressBar", "value", "by", "1", "if", "the", "value", "is", "less", "than", "ProgressBar", "high", "limit"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/progressbar.go#L211-L221", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "progressbar.go", "func_name": "SecondaryColors", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SecondaryColors returns text and background colors for empty\n// part of the ProgressBar", "docstring_tokens": ["SecondaryColors", "returns", "text", "and", "background", "colors", "for", "empty", "part", "of", "the", "ProgressBar"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/progressbar.go#L225-L227", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "progressbar.go", "func_name": "SetSecondaryColors", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetSecondaryColors sets new text and background colors for\n// empty part of the ProgressBar", "docstring_tokens": ["SetSecondaryColors", "sets", "new", "text", "and", "background", "colors", "for", "empty", "part", "of", "the", "ProgressBar"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/progressbar.go#L231-L233", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "barchart.go", "func_name": "SetAutoSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetAutoSize enables or disables automatic bar\n// width calculation", "docstring_tokens": ["SetAutoSize", "enables", "or", "disables", "automatic", "bar", "width", "calculation"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/barchart.go#L437-L442", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "barchart.go", "func_name": "SetBarGap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetGap sets the space width between two adjacent bars", "docstring_tokens": ["SetGap", "sets", "the", "space", "width", "between", "two", "adjacent", "bars"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/barchart.go#L450-L452", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "barchart.go", "func_name": "SetMinBarWidth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetMinBarWidth changes the minimal bar width", "docstring_tokens": ["SetMinBarWidth", "changes", "the", "minimal", "bar", "width"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/barchart.go#L460-L462", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "barchart.go", "func_name": "SetShowTitles", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetShowTitles turns on and off horizontal axis and bar titles", "docstring_tokens": ["SetShowTitles", "turns", "on", "and", "off", "horizontal", "axis", "and", "bar", "titles"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/barchart.go#L483-L488", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "barchart.go", "func_name": "SetLegendWidth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetLegendWidth sets new legend panel width", "docstring_tokens": ["SetLegendWidth", "sets", "new", "legend", "panel", "width"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/barchart.go#L497-L499", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "barchart.go", "func_name": "OnDrawCell", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OnDrawCell sets callback that allows to draw multicolored\n// bars. BarChart sends the current attrubutes and rune that\n// it is going to use to display as well as the current value\n// of the bar. A user can change the values of BarDataCell\n// depending on some external data or calculations - only\n// changing colors and rune makes sense. Changing anything else\n// does not affect the chart", "docstring_tokens": ["OnDrawCell", "sets", "callback", "that", "allows", "to", "draw", "multicolored", "bars", ".", "BarChart", "sends", "the", "current", "attrubutes", "and", "rune", "that", "it", "is", "going", "to", "use", "to", "display", "as", "well", "as", "the", "current", "value", "of", "the", "bar", ".", "A", "user", "can", "change", "the", "values", "of", "BarDataCell", "depending", "on", "some", "external", "data", "or", "calculations", "-", "only", "changing", "colors", "and", "rune", "makes", "sense", ".", "Changing", "anything", "else", "does", "not", "affect", "the", "chart"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/barchart.go#L508-L513", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "barchart.go", "func_name": "SetShowMarks", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetShowMarks turns on and off marks under horizontal axis", "docstring_tokens": ["SetShowMarks", "turns", "on", "and", "off", "marks", "under", "horizontal", "axis"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/barchart.go#L522-L527", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "window.go", "func_name": "OnKeyDown", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OnKeyDown sets the callback that is called when a user presses a key\n// while the Window is active", "docstring_tokens": ["OnKeyDown", "sets", "the", "callback", "that", "is", "called", "when", "a", "user", "presses", "a", "key", "while", "the", "Window", "is", "active"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/window.go#L304-L310", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "window.go", "func_name": "SetMaximized", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetMaximized opens the view to full screen or restores its\n// previous size", "docstring_tokens": ["SetMaximized", "opens", "the", "view", "to", "full", "screen", "or", "restores", "its", "previous", "size"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/window.go#L329-L348", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "window.go", "func_name": "SetVisible", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetVisible allows to temporarily remove the window from screen\n// and show it later without reconstruction", "docstring_tokens": ["SetVisible", "allows", "to", "temporarily", "remove", "the", "window", "from", "screen", "and", "show", "it", "later", "without", "reconstruction"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/window.go#L362-L374", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "sparkchart.go", "func_name": "SetTop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetTop sets the theoretical highest value of data flow\n// to scale the chart", "docstring_tokens": ["SetTop", "sets", "the", "theoretical", "highest", "value", "of", "data", "flow", "to", "scale", "the", "chart"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/sparkchart.go#L279-L284", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "sparkchart.go", "func_name": "SetAutoScale", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetAutoScale changes the way of scaling the data flow", "docstring_tokens": ["SetAutoScale", "changes", "the", "way", "of", "scaling", "the", "data", "flow"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/sparkchart.go#L293-L298", "partition": "valid"} +{"repo": "VladimirMarkelov/clui", "path": "sparkchart.go", "func_name": "SetHilitePeaks", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetHilitePeaks enables or disables hiliting maximum\n// values with different colors", "docstring_tokens": ["SetHilitePeaks", "enables", "or", "disables", "hiliting", "maximum", "values", "with", "different", "colors"], "sha": "561dfd3507d095df84d8a66c7acc267b00f80953", "url": "https://github.com/VladimirMarkelov/clui/blob/561dfd3507d095df84d8a66c7acc267b00f80953/sparkchart.go#L308-L313", "partition": "valid"} +{"repo": "gobuffalo/envy", "path": "envy.go", "func_name": "loadEnv", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Load the ENV variables to the env map", "docstring_tokens": ["Load", "the", "ENV", "variables", "to", "the", "env", "map"], "sha": "043cb4b8af871b49563291e32c66bb84378a60ac", "url": "https://github.com/gobuffalo/envy/blob/043cb4b8af871b49563291e32c66bb84378a60ac/envy.go#L41-L69", "partition": "valid"} +{"repo": "gobuffalo/envy", "path": "envy.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get a value from the ENV. If it doesn't exist the\n// default value will be returned.", "docstring_tokens": ["Get", "a", "value", "from", "the", "ENV", ".", "If", "it", "doesn", "t", "exist", "the", "default", "value", "will", "be", "returned", "."], "sha": "043cb4b8af871b49563291e32c66bb84378a60ac", "url": "https://github.com/gobuffalo/envy/blob/043cb4b8af871b49563291e32c66bb84378a60ac/envy.go#L129-L136", "partition": "valid"} +{"repo": "gobuffalo/envy", "path": "envy.go", "func_name": "MustGet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get a value from the ENV. If it doesn't exist\n// an error will be returned", "docstring_tokens": ["Get", "a", "value", "from", "the", "ENV", ".", "If", "it", "doesn", "t", "exist", "an", "error", "will", "be", "returned"], "sha": "043cb4b8af871b49563291e32c66bb84378a60ac", "url": "https://github.com/gobuffalo/envy/blob/043cb4b8af871b49563291e32c66bb84378a60ac/envy.go#L140-L147", "partition": "valid"} +{"repo": "gobuffalo/envy", "path": "envy.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set a value into the ENV. This is NOT permanent. It will\n// only affect values accessed through envy.", "docstring_tokens": ["Set", "a", "value", "into", "the", "ENV", ".", "This", "is", "NOT", "permanent", ".", "It", "will", "only", "affect", "values", "accessed", "through", "envy", "."], "sha": "043cb4b8af871b49563291e32c66bb84378a60ac", "url": "https://github.com/gobuffalo/envy/blob/043cb4b8af871b49563291e32c66bb84378a60ac/envy.go#L151-L155", "partition": "valid"} +{"repo": "gobuffalo/envy", "path": "envy.go", "func_name": "MustSet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustSet the value into the underlying ENV, as well as envy.\n// This may return an error if there is a problem setting the\n// underlying ENV value.", "docstring_tokens": ["MustSet", "the", "value", "into", "the", "underlying", "ENV", "as", "well", "as", "envy", ".", "This", "may", "return", "an", "error", "if", "there", "is", "a", "problem", "setting", "the", "underlying", "ENV", "value", "."], "sha": "043cb4b8af871b49563291e32c66bb84378a60ac", "url": "https://github.com/gobuffalo/envy/blob/043cb4b8af871b49563291e32c66bb84378a60ac/envy.go#L160-L169", "partition": "valid"} +{"repo": "gobuffalo/envy", "path": "envy.go", "func_name": "GoPaths", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GoPaths returns all possible GOPATHS that are set.", "docstring_tokens": ["GoPaths", "returns", "all", "possible", "GOPATHS", "that", "are", "set", "."], "sha": "043cb4b8af871b49563291e32c66bb84378a60ac", "url": "https://github.com/gobuffalo/envy/blob/043cb4b8af871b49563291e32c66bb84378a60ac/envy.go#L217-L223", "partition": "valid"} +{"repo": "gobuffalo/envy", "path": "envy.go", "func_name": "CurrentModule", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CurrentModule will attempt to return the module name from `go.mod` if\n// modules are enabled.\n// If modules are not enabled it will fallback to using CurrentPackage instead.", "docstring_tokens": ["CurrentModule", "will", "attempt", "to", "return", "the", "module", "name", "from", "go", ".", "mod", "if", "modules", "are", "enabled", ".", "If", "modules", "are", "not", "enabled", "it", "will", "fallback", "to", "using", "CurrentPackage", "instead", "."], "sha": "043cb4b8af871b49563291e32c66bb84378a60ac", "url": "https://github.com/gobuffalo/envy/blob/043cb4b8af871b49563291e32c66bb84378a60ac/envy.go#L244-L257", "partition": "valid"} +{"repo": "pusher/pusher-http-go", "path": "request.go", "func_name": "request", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// change timeout to time.Duration", "docstring_tokens": ["change", "timeout", "to", "time", ".", "Duration"], "sha": "a7ce6f7e297a4e37a971241abce1f0a00a505c4d", "url": "https://github.com/pusher/pusher-http-go/blob/a7ce6f7e297a4e37a971241abce1f0a00a505c4d/request.go#L13-L22", "partition": "valid"} +{"repo": "pusher/pusher-http-go", "path": "push_notifications.go", "func_name": "validate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// validate checks the notificationRequest has 0 \"DinoParty\"", "docstring_tokens": ["dino_party", "-", ">", "DinoParty"], "sha": "16a898ed1f4943794fb9b0e7afb7376a7619cf21", "url": "https://github.com/go-openapi/inflect/blob/16a898ed1f4943794fb9b0e7afb7376a7619cf21/inflect.go#L370-L373", "partition": "valid"} +{"repo": "knq/jwt", "path": "cmd/jwt/main.go", "func_name": "getSuitableAlgFromCurve", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getSuitableAlgFromCurve inspects the key length in curve, and determines the\n// corresponding jwt.Algorithm.", "docstring_tokens": ["getSuitableAlgFromCurve", "inspects", "the", "key", "length", "in", "curve", "and", "determines", "the", "corresponding", "jwt", ".", "Algorithm", "."], "sha": "fc44a4704737296ab034fd04557f9f1b36cc1612", "url": "https://github.com/knq/jwt/blob/fc44a4704737296ab034fd04557f9f1b36cc1612/cmd/jwt/main.go#L186-L210", "partition": "valid"} +{"repo": "knq/jwt", "path": "cmd/jwt/main.go", "func_name": "getAlgFromKeyData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getAlgFromKeyData determines the best jwt.Algorithm suitable based on the\n// set of given crypto primitives in pem.", "docstring_tokens": ["getAlgFromKeyData", "determines", "the", "best", "jwt", ".", "Algorithm", "suitable", "based", "on", "the", "set", "of", "given", "crypto", "primitives", "in", "pem", "."], "sha": "fc44a4704737296ab034fd04557f9f1b36cc1612", "url": "https://github.com/knq/jwt/blob/fc44a4704737296ab034fd04557f9f1b36cc1612/cmd/jwt/main.go#L214-L239", "partition": "valid"} +{"repo": "knq/jwt", "path": "cmd/jwt/main.go", "func_name": "buildEncArgs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// buildEncArgs builds and encodes passed argument strings in the form of\n// name=val as a json object.", "docstring_tokens": ["buildEncArgs", "builds", "and", "encodes", "passed", "argument", "strings", "in", "the", "form", "of", "name", "=", "val", "as", "a", "json", "object", "."], "sha": "fc44a4704737296ab034fd04557f9f1b36cc1612", "url": "https://github.com/knq/jwt/blob/fc44a4704737296ab034fd04557f9f1b36cc1612/cmd/jwt/main.go#L243-L272", "partition": "valid"} +{"repo": "knq/jwt", "path": "cmd/jwt/main.go", "func_name": "doDec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// doDec decodes in as a JWT.", "docstring_tokens": ["doDec", "decodes", "in", "as", "a", "JWT", "."], "sha": "fc44a4704737296ab034fd04557f9f1b36cc1612", "url": "https://github.com/knq/jwt/blob/fc44a4704737296ab034fd04557f9f1b36cc1612/cmd/jwt/main.go#L283-L300", "partition": "valid"} +{"repo": "knq/jwt", "path": "cmd/jwt/main.go", "func_name": "doEnc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// doEnc encodes in as the payload in a JWT.", "docstring_tokens": ["doEnc", "encodes", "in", "as", "the", "payload", "in", "a", "JWT", "."], "sha": "fc44a4704737296ab034fd04557f9f1b36cc1612", "url": "https://github.com/knq/jwt/blob/fc44a4704737296ab034fd04557f9f1b36cc1612/cmd/jwt/main.go#L303-L324", "partition": "valid"} +{"repo": "knq/jwt", "path": "gserviceaccount/opts.go", "func_name": "Transport", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Transport is a GServiceAccount option to set the client transport used by\n// the token source.", "docstring_tokens": ["Transport", "is", "a", "GServiceAccount", "option", "to", "set", "the", "client", "transport", "used", "by", "the", "token", "source", "."], "sha": "fc44a4704737296ab034fd04557f9f1b36cc1612", "url": "https://github.com/knq/jwt/blob/fc44a4704737296ab034fd04557f9f1b36cc1612/gserviceaccount/opts.go#L14-L19", "partition": "valid"} +{"repo": "knq/jwt", "path": "gserviceaccount/opts.go", "func_name": "Proxy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Proxy is a GServiceAccount option to set a HTTP proxy used for by the token\n// source.", "docstring_tokens": ["Proxy", "is", "a", "GServiceAccount", "option", "to", "set", "a", "HTTP", "proxy", "used", "for", "by", "the", "token", "source", "."], "sha": "fc44a4704737296ab034fd04557f9f1b36cc1612", "url": "https://github.com/knq/jwt/blob/fc44a4704737296ab034fd04557f9f1b36cc1612/gserviceaccount/opts.go#L23-L33", "partition": "valid"} +{"repo": "knq/jwt", "path": "gserviceaccount/opts.go", "func_name": "Expiration", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Expiration is a GServiceAccount option to set a expiration limit for tokens\n// generated from the token source.", "docstring_tokens": ["Expiration", "is", "a", "GServiceAccount", "option", "to", "set", "a", "expiration", "limit", "for", "tokens", "generated", "from", "the", "token", "source", "."], "sha": "fc44a4704737296ab034fd04557f9f1b36cc1612", "url": "https://github.com/knq/jwt/blob/fc44a4704737296ab034fd04557f9f1b36cc1612/gserviceaccount/opts.go#L37-L42", "partition": "valid"} +{"repo": "knq/jwt", "path": "jwt.go", "func_name": "Encode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Encode encodes a JWT using the Algorithm and Signer, returning the URL-safe\n// encoded token or any errors encountered during encoding.", "docstring_tokens": ["Encode", "encodes", "a", "JWT", "using", "the", "Algorithm", "and", "Signer", "returning", "the", "URL", "-", "safe", "encoded", "token", "or", "any", "errors", "encountered", "during", "encoding", "."], "sha": "fc44a4704737296ab034fd04557f9f1b36cc1612", "url": "https://github.com/knq/jwt/blob/fc44a4704737296ab034fd04557f9f1b36cc1612/jwt.go#L124-L193", "partition": "valid"} +{"repo": "knq/jwt", "path": "jwt.go", "func_name": "PeekHeaderField", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PeekHeaderField extracts the specified field from the serialized JWT buf's\n// header. An error will be returned if the field is not present in the decoded\n// header.", "docstring_tokens": ["PeekHeaderField", "extracts", "the", "specified", "field", "from", "the", "serialized", "JWT", "buf", "s", "header", ".", "An", "error", "will", "be", "returned", "if", "the", "field", "is", "not", "present", "in", "the", "decoded", "header", "."], "sha": "fc44a4704737296ab034fd04557f9f1b36cc1612", "url": "https://github.com/knq/jwt/blob/fc44a4704737296ab034fd04557f9f1b36cc1612/jwt.go#L198-L200", "partition": "valid"} +{"repo": "knq/jwt", "path": "jwt.go", "func_name": "PeekAlgorithm", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PeekAlgorithm extracts the signing algorithm listed in the \"alg\" field of\n// the serialized JWT buf's header and attempts to unmarshal it into an\n// Algorithm. An error will be returned if the alg field is not specified in\n// the JWT header, or is otherwise invalid.", "docstring_tokens": ["PeekAlgorithm", "extracts", "the", "signing", "algorithm", "listed", "in", "the", "alg", "field", "of", "the", "serialized", "JWT", "buf", "s", "header", "and", "attempts", "to", "unmarshal", "it", "into", "an", "Algorithm", ".", "An", "error", "will", "be", "returned", "if", "the", "alg", "field", "is", "not", "specified", "in", "the", "JWT", "header", "or", "is", "otherwise", "invalid", "."], "sha": "fc44a4704737296ab034fd04557f9f1b36cc1612", "url": "https://github.com/knq/jwt/blob/fc44a4704737296ab034fd04557f9f1b36cc1612/jwt.go#L213-L229", "partition": "valid"} +{"repo": "knq/jwt", "path": "jwt.go", "func_name": "PeekAlgorithmAndIssuer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PeekAlgorithmAndIssuer extracts the signing algorithm listed in the \"alg\"\n// field and the issuer from the \"iss\" field of the serialized JWT buf's header\n// and payload, attempting to unmarshal alg to Algorithm and iss to a string.\n// An error will be returned if the Algorithm or Issuer fields are not\n// specified in the JWT header and payload, or are otherwise invalid.", "docstring_tokens": ["PeekAlgorithmAndIssuer", "extracts", "the", "signing", "algorithm", "listed", "in", "the", "alg", "field", "and", "the", "issuer", "from", "the", "iss", "field", "of", "the", "serialized", "JWT", "buf", "s", "header", "and", "payload", "attempting", "to", "unmarshal", "alg", "to", "Algorithm", "and", "iss", "to", "a", "string", ".", "An", "error", "will", "be", "returned", "if", "the", "Algorithm", "or", "Issuer", "fields", "are", "not", "specified", "in", "the", "JWT", "header", "and", "payload", "or", "are", "otherwise", "invalid", "."], "sha": "fc44a4704737296ab034fd04557f9f1b36cc1612", "url": "https://github.com/knq/jwt/blob/fc44a4704737296ab034fd04557f9f1b36cc1612/jwt.go#L236-L252", "partition": "valid"} +{"repo": "knq/jwt", "path": "ecc.go", "func_name": "NewEllipticSigner", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewEllipticSigner creates an Elliptic Curve Signer for the specified curve.", "docstring_tokens": ["NewEllipticSigner", "creates", "an", "Elliptic", "Curve", "Signer", "for", "the", "specified", "curve", "."], "sha": "fc44a4704737296ab034fd04557f9f1b36cc1612", "url": "https://github.com/knq/jwt/blob/fc44a4704737296ab034fd04557f9f1b36cc1612/ecc.go#L23-L71", "partition": "valid"} +{"repo": "knq/jwt", "path": "bearer/bearer.go", "func_name": "NewTokenSource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTokenSource creates a oauth2.TokenSource that generates auth tokens\n// redeemed using the JWT Bearer Grant assertion auth flow using the supplied\n// jwt.Signer. A token redemption will be invoked at the tokenURL using the\n// supplied context.\n//\n// Use the Claim option to pass additional claims to the token source.", "docstring_tokens": ["NewTokenSource", "creates", "a", "oauth2", ".", "TokenSource", "that", "generates", "auth", "tokens", "redeemed", "using", "the", "JWT", "Bearer", "Grant", "assertion", "auth", "flow", "using", "the", "supplied", "jwt", ".", "Signer", ".", "A", "token", "redemption", "will", "be", "invoked", "at", "the", "tokenURL", "using", "the", "supplied", "context", ".", "Use", "the", "Claim", "option", "to", "pass", "additional", "claims", "to", "the", "token", "source", "."], "sha": "fc44a4704737296ab034fd04557f9f1b36cc1612", "url": "https://github.com/knq/jwt/blob/fc44a4704737296ab034fd04557f9f1b36cc1612/bearer/bearer.go#L52-L70", "partition": "valid"} +{"repo": "knq/jwt", "path": "bearer/bearer.go", "func_name": "Client", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Client returns a HTTP client using the bearer token.", "docstring_tokens": ["Client", "returns", "a", "HTTP", "client", "using", "the", "bearer", "token", "."], "sha": "fc44a4704737296ab034fd04557f9f1b36cc1612", "url": "https://github.com/knq/jwt/blob/fc44a4704737296ab034fd04557f9f1b36cc1612/bearer/bearer.go#L174-L180", "partition": "valid"} +{"repo": "knq/jwt", "path": "rsa.go", "func_name": "Sign", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sign signs the data in buf using rand, priv and hash.", "docstring_tokens": ["Sign", "signs", "the", "data", "in", "buf", "using", "rand", "priv", "and", "hash", "."], "sha": "fc44a4704737296ab034fd04557f9f1b36cc1612", "url": "https://github.com/knq/jwt/blob/fc44a4704737296ab034fd04557f9f1b36cc1612/rsa.go#L36-L38", "partition": "valid"} +{"repo": "knq/jwt", "path": "rsa.go", "func_name": "Verify", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Verify verifies the signature sig against using pub, hash, and the hashed\n// data.", "docstring_tokens": ["Verify", "verifies", "the", "signature", "sig", "against", "using", "pub", "hash", "and", "the", "hashed", "data", "."], "sha": "fc44a4704737296ab034fd04557f9f1b36cc1612", "url": "https://github.com/knq/jwt/blob/fc44a4704737296ab034fd04557f9f1b36cc1612/rsa.go#L42-L44", "partition": "valid"} +{"repo": "knq/jwt", "path": "rsa.go", "func_name": "NewRSASigner", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRSASigner creates an RSA Signer for the specified Algorithm and provided\n// low level RSA implementation.", "docstring_tokens": ["NewRSASigner", "creates", "an", "RSA", "Signer", "for", "the", "specified", "Algorithm", "and", "provided", "low", "level", "RSA", "implementation", "."], "sha": "fc44a4704737296ab034fd04557f9f1b36cc1612", "url": "https://github.com/knq/jwt/blob/fc44a4704737296ab034fd04557f9f1b36cc1612/rsa.go#L80-L124", "partition": "valid"} +{"repo": "knq/jwt", "path": "util.go", "func_name": "getFieldWithTag", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getFieldWithTag lookups jwt tag, with specified tagName on obj, returning\n// its reflected value.", "docstring_tokens": ["getFieldWithTag", "lookups", "jwt", "tag", "with", "specified", "tagName", "on", "obj", "returning", "its", "reflected", "value", "."], "sha": "fc44a4704737296ab034fd04557f9f1b36cc1612", "url": "https://github.com/knq/jwt/blob/fc44a4704737296ab034fd04557f9f1b36cc1612/util.go#L19-L34", "partition": "valid"} +{"repo": "knq/jwt", "path": "util.go", "func_name": "decodeToObjOrFieldWithTag", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// decodeToObjOrFieldWithTag decodes the buf into obj's field having the\n// specified jwt tagName. If the provided obj's has the same type as\n// defaultObj, then the obj is set to the defaultObj, otherwise an attempt is\n// made to json.Decode the buf into obj.", "docstring_tokens": ["decodeToObjOrFieldWithTag", "decodes", "the", "buf", "into", "obj", "s", "field", "having", "the", "specified", "jwt", "tagName", ".", "If", "the", "provided", "obj", "s", "has", "the", "same", "type", "as", "defaultObj", "then", "the", "obj", "is", "set", "to", "the", "defaultObj", "otherwise", "an", "attempt", "is", "made", "to", "json", ".", "Decode", "the", "buf", "into", "obj", "."], "sha": "fc44a4704737296ab034fd04557f9f1b36cc1612", "url": "https://github.com/knq/jwt/blob/fc44a4704737296ab034fd04557f9f1b36cc1612/util.go#L40-L68", "partition": "valid"} +{"repo": "knq/jwt", "path": "util.go", "func_name": "grabEncodeTargets", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// grabEncodeTargets grabs the fields for the obj.", "docstring_tokens": ["grabEncodeTargets", "grabs", "the", "fields", "for", "the", "obj", "."], "sha": "fc44a4704737296ab034fd04557f9f1b36cc1612", "url": "https://github.com/knq/jwt/blob/fc44a4704737296ab034fd04557f9f1b36cc1612/util.go#L71-L91", "partition": "valid"} +{"repo": "knq/jwt", "path": "util.go", "func_name": "encodeTargets", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// encodeTargets determines what to encode.", "docstring_tokens": ["encodeTargets", "determines", "what", "to", "encode", "."], "sha": "fc44a4704737296ab034fd04557f9f1b36cc1612", "url": "https://github.com/knq/jwt/blob/fc44a4704737296ab034fd04557f9f1b36cc1612/util.go#L94-L108", "partition": "valid"} +{"repo": "knq/jwt", "path": "util.go", "func_name": "peekField", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// peekField looks at an undecoded JWT, JSON decoding the data at pos, and\n// returning the specified field's value as string.\n//\n// If the fieldName is not present, then an error will be returned.", "docstring_tokens": ["peekField", "looks", "at", "an", "undecoded", "JWT", "JSON", "decoding", "the", "data", "at", "pos", "and", "returning", "the", "specified", "field", "s", "value", "as", "string", ".", "If", "the", "fieldName", "is", "not", "present", "then", "an", "error", "will", "be", "returned", "."], "sha": "fc44a4704737296ab034fd04557f9f1b36cc1612", "url": "https://github.com/knq/jwt/blob/fc44a4704737296ab034fd04557f9f1b36cc1612/util.go#L126-L169", "partition": "valid"} +{"repo": "knq/jwt", "path": "bearer/opts.go", "func_name": "ExpiresIn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ExpiresIn is an option that will set the expiration duration generated for\n// tokens to the specified duration.", "docstring_tokens": ["ExpiresIn", "is", "an", "option", "that", "will", "set", "the", "expiration", "duration", "generated", "for", "tokens", "to", "the", "specified", "duration", "."], "sha": "fc44a4704737296ab034fd04557f9f1b36cc1612", "url": "https://github.com/knq/jwt/blob/fc44a4704737296ab034fd04557f9f1b36cc1612/bearer/opts.go#L15-L27", "partition": "valid"} +{"repo": "knq/jwt", "path": "bearer/opts.go", "func_name": "Claim", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Claim is an option that adds an additional claim that is generated with the\n// token.", "docstring_tokens": ["Claim", "is", "an", "option", "that", "adds", "an", "additional", "claim", "that", "is", "generated", "with", "the", "token", "."], "sha": "fc44a4704737296ab034fd04557f9f1b36cc1612", "url": "https://github.com/knq/jwt/blob/fc44a4704737296ab034fd04557f9f1b36cc1612/bearer/opts.go#L49-L59", "partition": "valid"} +{"repo": "knq/jwt", "path": "bearer/opts.go", "func_name": "Transport", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Transport is an option that sets an underlying client transport to the\n// exchange process.", "docstring_tokens": ["Transport", "is", "an", "option", "that", "sets", "an", "underlying", "client", "transport", "to", "the", "exchange", "process", "."], "sha": "fc44a4704737296ab034fd04557f9f1b36cc1612", "url": "https://github.com/knq/jwt/blob/fc44a4704737296ab034fd04557f9f1b36cc1612/bearer/opts.go#L74-L79", "partition": "valid"} +{"repo": "knq/jwt", "path": "hmac.go", "func_name": "NewHMACSigner", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewHMACSigner creates a HMAC Signer for the specified Algorithm.", "docstring_tokens": ["NewHMACSigner", "creates", "a", "HMAC", "Signer", "for", "the", "specified", "Algorithm", "."], "sha": "fc44a4704737296ab034fd04557f9f1b36cc1612", "url": "https://github.com/knq/jwt/blob/fc44a4704737296ab034fd04557f9f1b36cc1612/hmac.go#L16-L38", "partition": "valid"} +{"repo": "knq/jwt", "path": "gserviceaccount/gserviceaccount.go", "func_name": "FromJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FromJSON loads service account credentials from the JSON encoded buf.", "docstring_tokens": ["FromJSON", "loads", "service", "account", "credentials", "from", "the", "JSON", "encoded", "buf", "."], "sha": "fc44a4704737296ab034fd04557f9f1b36cc1612", "url": "https://github.com/knq/jwt/blob/fc44a4704737296ab034fd04557f9f1b36cc1612/gserviceaccount/gserviceaccount.go#L52-L69", "partition": "valid"} +{"repo": "knq/jwt", "path": "gserviceaccount/gserviceaccount.go", "func_name": "FromReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FromReader loads Google service account credentials from a reader.", "docstring_tokens": ["FromReader", "loads", "Google", "service", "account", "credentials", "from", "a", "reader", "."], "sha": "fc44a4704737296ab034fd04557f9f1b36cc1612", "url": "https://github.com/knq/jwt/blob/fc44a4704737296ab034fd04557f9f1b36cc1612/gserviceaccount/gserviceaccount.go#L72-L79", "partition": "valid"} +{"repo": "knq/jwt", "path": "gserviceaccount/gserviceaccount.go", "func_name": "FromFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FromFile loads Google service account credentials from a reader.", "docstring_tokens": ["FromFile", "loads", "Google", "service", "account", "credentials", "from", "a", "reader", "."], "sha": "fc44a4704737296ab034fd04557f9f1b36cc1612", "url": "https://github.com/knq/jwt/blob/fc44a4704737296ab034fd04557f9f1b36cc1612/gserviceaccount/gserviceaccount.go#L82-L89", "partition": "valid"} +{"repo": "knq/jwt", "path": "gserviceaccount/gserviceaccount.go", "func_name": "Signer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Signer returns a jwt.Signer for use when signing tokens.", "docstring_tokens": ["Signer", "returns", "a", "jwt", ".", "Signer", "for", "use", "when", "signing", "tokens", "."], "sha": "fc44a4704737296ab034fd04557f9f1b36cc1612", "url": "https://github.com/knq/jwt/blob/fc44a4704737296ab034fd04557f9f1b36cc1612/gserviceaccount/gserviceaccount.go#L92-L111", "partition": "valid"} +{"repo": "knq/jwt", "path": "alg.go", "func_name": "Encode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Encode serializes a JWT using the Algorithm and Signer.", "docstring_tokens": ["Encode", "serializes", "a", "JWT", "using", "the", "Algorithm", "and", "Signer", "."], "sha": "fc44a4704737296ab034fd04557f9f1b36cc1612", "url": "https://github.com/knq/jwt/blob/fc44a4704737296ab034fd04557f9f1b36cc1612/alg.go#L216-L218", "partition": "valid"} +{"repo": "knq/jwt", "path": "alg.go", "func_name": "UnmarshalText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalText attempts to unmarshal buf into an Algorithm.", "docstring_tokens": ["UnmarshalText", "attempts", "to", "unmarshal", "buf", "into", "an", "Algorithm", "."], "sha": "fc44a4704737296ab034fd04557f9f1b36cc1612", "url": "https://github.com/knq/jwt/blob/fc44a4704737296ab034fd04557f9f1b36cc1612/alg.go#L236-L276", "partition": "valid"} +{"repo": "knq/jwt", "path": "type.go", "func_name": "DecodeUnverifiedToken", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DecodeUnverifiedToken decodes a token into the provided UnverifiedToken.", "docstring_tokens": ["DecodeUnverifiedToken", "decodes", "a", "token", "into", "the", "provided", "UnverifiedToken", "."], "sha": "fc44a4704737296ab034fd04557f9f1b36cc1612", "url": "https://github.com/knq/jwt/blob/fc44a4704737296ab034fd04557f9f1b36cc1612/type.go#L57-L68", "partition": "valid"} +{"repo": "knq/jwt", "path": "store.go", "func_name": "PublicKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PublicKey returns the stored public key for the keystore, alternately\n// generating the public key from the private key if the public key was not\n// supplied and the private key was.", "docstring_tokens": ["PublicKey", "returns", "the", "stored", "public", "key", "for", "the", "keystore", "alternately", "generating", "the", "public", "key", "from", "the", "private", "key", "if", "the", "public", "key", "was", "not", "supplied", "and", "the", "private", "key", "was", "."], "sha": "fc44a4704737296ab034fd04557f9f1b36cc1612", "url": "https://github.com/knq/jwt/blob/fc44a4704737296ab034fd04557f9f1b36cc1612/store.go#L31-L54", "partition": "valid"} +{"repo": "knq/jwt", "path": "store.go", "func_name": "PrivateKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PrivateKey returns the stored private key for the keystore.", "docstring_tokens": ["PrivateKey", "returns", "the", "stored", "private", "key", "for", "the", "keystore", "."], "sha": "fc44a4704737296ab034fd04557f9f1b36cc1612", "url": "https://github.com/knq/jwt/blob/fc44a4704737296ab034fd04557f9f1b36cc1612/store.go#L57-L61", "partition": "valid"} +{"repo": "tv42/httpunix", "path": "httpunix.go", "func_name": "RegisterLocation", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterLocation registers an URL location and maps it to the given\n// file system path.\n//\n// Calling RegisterLocation twice for the same location is a\n// programmer error, and causes a panic.", "docstring_tokens": ["RegisterLocation", "registers", "an", "URL", "location", "and", "maps", "it", "to", "the", "given", "file", "system", "path", ".", "Calling", "RegisterLocation", "twice", "for", "the", "same", "location", "is", "a", "programmer", "error", "and", "causes", "a", "panic", "."], "sha": "b75d8614f926c077e48d85f1f8f7885b758c6225", "url": "https://github.com/tv42/httpunix/blob/b75d8614f926c077e48d85f1f8f7885b758c6225/httpunix.go#L46-L56", "partition": "valid"} +{"repo": "andy-kimball/arenaskl", "path": "arena.go", "func_name": "NewArena", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewArena allocates a new arena of the specified size and returns it.", "docstring_tokens": ["NewArena", "allocates", "a", "new", "arena", "of", "the", "specified", "size", "and", "returns", "it", "."], "sha": "6bf06cf57626e536063e9398a57dfe1417ed0799", "url": "https://github.com/andy-kimball/arenaskl/blob/6bf06cf57626e536063e9398a57dfe1417ed0799/arena.go#L47-L56", "partition": "valid"} +{"repo": "andy-kimball/arenaskl", "path": "skl.go", "func_name": "NewSkiplist", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSkiplist constructs and initializes a new, empty skiplist. All nodes, keys,\n// and values in the skiplist will be allocated from the given arena.", "docstring_tokens": ["NewSkiplist", "constructs", "and", "initializes", "a", "new", "empty", "skiplist", ".", "All", "nodes", "keys", "and", "values", "in", "the", "skiplist", "will", "be", "allocated", "from", "the", "given", "arena", "."], "sha": "6bf06cf57626e536063e9398a57dfe1417ed0799", "url": "https://github.com/andy-kimball/arenaskl/blob/6bf06cf57626e536063e9398a57dfe1417ed0799/skl.go#L96-L124", "partition": "valid"} +{"repo": "andy-kimball/arenaskl", "path": "iterator.go", "func_name": "Init", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Init associates the iterator with a skiplist and resets all state.", "docstring_tokens": ["Init", "associates", "the", "iterator", "with", "a", "skiplist", "and", "resets", "all", "state", "."], "sha": "6bf06cf57626e536063e9398a57dfe1417ed0799", "url": "https://github.com/andy-kimball/arenaskl/blob/6bf06cf57626e536063e9398a57dfe1417ed0799/iterator.go#L47-L52", "partition": "valid"} +{"repo": "andy-kimball/arenaskl", "path": "iterator.go", "func_name": "Value", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Value returns the value at the current position.", "docstring_tokens": ["Value", "returns", "the", "value", "at", "the", "current", "position", "."], "sha": "6bf06cf57626e536063e9398a57dfe1417ed0799", "url": "https://github.com/andy-kimball/arenaskl/blob/6bf06cf57626e536063e9398a57dfe1417ed0799/iterator.go#L63-L66", "partition": "valid"} +{"repo": "andy-kimball/arenaskl", "path": "iterator.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set updates the value of the current iteration record if it has not been\n// updated or deleted since iterating or seeking to it. If the record has been\n// updated, then Set positions the iterator on the most current value and\n// returns ErrRecordUpdated. If the record has been deleted, then Set keeps\n// the iterator positioned on the current record with the current value and\n// returns ErrRecordDeleted.", "docstring_tokens": ["Set", "updates", "the", "value", "of", "the", "current", "iteration", "record", "if", "it", "has", "not", "been", "updated", "or", "deleted", "since", "iterating", "or", "seeking", "to", "it", ".", "If", "the", "record", "has", "been", "updated", "then", "Set", "positions", "the", "iterator", "on", "the", "most", "current", "value", "and", "returns", "ErrRecordUpdated", ".", "If", "the", "record", "has", "been", "deleted", "then", "Set", "keeps", "the", "iterator", "positioned", "on", "the", "current", "record", "with", "the", "current", "value", "and", "returns", "ErrRecordDeleted", "."], "sha": "6bf06cf57626e536063e9398a57dfe1417ed0799", "url": "https://github.com/andy-kimball/arenaskl/blob/6bf06cf57626e536063e9398a57dfe1417ed0799/iterator.go#L237-L244", "partition": "valid"} +{"repo": "andy-kimball/arenaskl", "path": "iterator.go", "func_name": "SetMeta", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetMeta updates the meta value of the current iteration record if it has not\n// been updated or deleted since iterating or seeking to it. If the record has\n// been updated, then SetMeta positions the iterator on the most current value\n// and returns ErrRecordUpdated. If the record has been deleted, then SetMeta\n// keeps the iterator positioned on the current record with the current value\n// and returns ErrRecordDeleted.", "docstring_tokens": ["SetMeta", "updates", "the", "meta", "value", "of", "the", "current", "iteration", "record", "if", "it", "has", "not", "been", "updated", "or", "deleted", "since", "iterating", "or", "seeking", "to", "it", ".", "If", "the", "record", "has", "been", "updated", "then", "SetMeta", "positions", "the", "iterator", "on", "the", "most", "current", "value", "and", "returns", "ErrRecordUpdated", ".", "If", "the", "record", "has", "been", "deleted", "then", "SetMeta", "keeps", "the", "iterator", "positioned", "on", "the", "current", "record", "with", "the", "current", "value", "and", "returns", "ErrRecordDeleted", "."], "sha": "6bf06cf57626e536063e9398a57dfe1417ed0799", "url": "https://github.com/andy-kimball/arenaskl/blob/6bf06cf57626e536063e9398a57dfe1417ed0799/iterator.go#L252-L264", "partition": "valid"} +{"repo": "andy-kimball/arenaskl", "path": "iterator.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete marks the current iterator record as deleted from the store if it\n// has not been updated since iterating or seeking to it. If the record has\n// been updated, then Delete positions the iterator on the most current value\n// and returns ErrRecordUpdated. If the record is deleted, then Delete positions\n// the iterator on the next record.", "docstring_tokens": ["Delete", "marks", "the", "current", "iterator", "record", "as", "deleted", "from", "the", "store", "if", "it", "has", "not", "been", "updated", "since", "iterating", "or", "seeking", "to", "it", ".", "If", "the", "record", "has", "been", "updated", "then", "Delete", "positions", "the", "iterator", "on", "the", "most", "current", "value", "and", "returns", "ErrRecordUpdated", ".", "If", "the", "record", "is", "deleted", "then", "Delete", "positions", "the", "iterator", "on", "the", "next", "record", "."], "sha": "6bf06cf57626e536063e9398a57dfe1417ed0799", "url": "https://github.com/andy-kimball/arenaskl/blob/6bf06cf57626e536063e9398a57dfe1417ed0799/iterator.go#L271-L284", "partition": "valid"} +{"repo": "andy-kimball/arenaskl", "path": "iterator.go", "func_name": "isSameArray", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsSameArray returns true if the slices are the same length and the array\n// underlying the two slices is the same. Always returns false for empty arrays.", "docstring_tokens": ["IsSameArray", "returns", "true", "if", "the", "slices", "are", "the", "same", "length", "and", "the", "array", "underlying", "the", "two", "slices", "is", "the", "same", ".", "Always", "returns", "false", "for", "empty", "arrays", "."], "sha": "6bf06cf57626e536063e9398a57dfe1417ed0799", "url": "https://github.com/andy-kimball/arenaskl/blob/6bf06cf57626e536063e9398a57dfe1417ed0799/iterator.go#L415-L421", "partition": "valid"} +{"repo": "thecodeteam/goscaleio", "path": "api/api.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New returns a new API client.", "docstring_tokens": ["New", "returns", "a", "new", "API", "client", "."], "sha": "30be8284b32e1a53e2ac473e95275b24e6d583de", "url": "https://github.com/thecodeteam/goscaleio/blob/30be8284b32e1a53e2ac473e95275b24e6d583de/api/api.go#L121-L170", "partition": "valid"} +{"repo": "thecodeteam/goscaleio", "path": "api/api_logging.go", "func_name": "WriteIndentedN", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteIndentedN indents all lines n spaces.", "docstring_tokens": ["WriteIndentedN", "indents", "all", "lines", "n", "spaces", "."], "sha": "30be8284b32e1a53e2ac473e95275b24e6d583de", "url": "https://github.com/thecodeteam/goscaleio/blob/30be8284b32e1a53e2ac473e95275b24e6d583de/api/api_logging.go#L74-L98", "partition": "valid"} +{"repo": "thecodeteam/goscaleio", "path": "api/api_logging.go", "func_name": "WriteIndented", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteIndented indents all lines four spaces.", "docstring_tokens": ["WriteIndented", "indents", "all", "lines", "four", "spaces", "."], "sha": "30be8284b32e1a53e2ac473e95275b24e6d583de", "url": "https://github.com/thecodeteam/goscaleio/blob/30be8284b32e1a53e2ac473e95275b24e6d583de/api/api_logging.go#L101-L103", "partition": "valid"} +{"repo": "stathat/go", "path": "stathat.go", "func_name": "NewReporter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewReporter returns a new Reporter. You must specify the channel bufferSize and the\n// goroutine poolSize. You can pass in nil for the transport and it will create an\n// http transport with MaxIdleConnsPerHost set to the goroutine poolSize. Note if you\n// pass in your own transport, it's a good idea to have its MaxIdleConnsPerHost be set\n// to at least the poolSize to allow for effective connection reuse.", "docstring_tokens": ["NewReporter", "returns", "a", "new", "Reporter", ".", "You", "must", "specify", "the", "channel", "bufferSize", "and", "the", "goroutine", "poolSize", ".", "You", "can", "pass", "in", "nil", "for", "the", "transport", "and", "it", "will", "create", "an", "http", "transport", "with", "MaxIdleConnsPerHost", "set", "to", "the", "goroutine", "poolSize", ".", "Note", "if", "you", "pass", "in", "your", "own", "transport", "it", "s", "a", "good", "idea", "to", "have", "its", "MaxIdleConnsPerHost", "be", "set", "to", "at", "least", "the", "poolSize", "to", "allow", "for", "effective", "connection", "reuse", "."], "sha": "74669b9f388d9d788c97399a0824adbfee78400e", "url": "https://github.com/stathat/go/blob/74669b9f388d9d788c97399a0824adbfee78400e/stathat.go#L103-L120", "partition": "valid"} +{"repo": "stathat/go", "path": "stathat.go", "func_name": "PostCount", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Using the classic API, posts a count to a stat using DefaultReporter.", "docstring_tokens": ["Using", "the", "classic", "API", "posts", "a", "count", "to", "a", "stat", "using", "DefaultReporter", "."], "sha": "74669b9f388d9d788c97399a0824adbfee78400e", "url": "https://github.com/stathat/go/blob/74669b9f388d9d788c97399a0824adbfee78400e/stathat.go#L298-L300", "partition": "valid"} +{"repo": "stathat/go", "path": "stathat.go", "func_name": "PostCountTime", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Using the classic API, posts a count to a stat using DefaultReporter at a specific\n// time.", "docstring_tokens": ["Using", "the", "classic", "API", "posts", "a", "count", "to", "a", "stat", "using", "DefaultReporter", "at", "a", "specific", "time", "."], "sha": "74669b9f388d9d788c97399a0824adbfee78400e", "url": "https://github.com/stathat/go/blob/74669b9f388d9d788c97399a0824adbfee78400e/stathat.go#L304-L306", "partition": "valid"} +{"repo": "stathat/go", "path": "stathat.go", "func_name": "PostValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Using the classic API, posts a value to a stat using DefaultReporter.", "docstring_tokens": ["Using", "the", "classic", "API", "posts", "a", "value", "to", "a", "stat", "using", "DefaultReporter", "."], "sha": "74669b9f388d9d788c97399a0824adbfee78400e", "url": "https://github.com/stathat/go/blob/74669b9f388d9d788c97399a0824adbfee78400e/stathat.go#L314-L316", "partition": "valid"} +{"repo": "stathat/go", "path": "stathat.go", "func_name": "PostValueTime", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Using the classic API, posts a value to a stat at a specific time using DefaultReporter.", "docstring_tokens": ["Using", "the", "classic", "API", "posts", "a", "value", "to", "a", "stat", "at", "a", "specific", "time", "using", "DefaultReporter", "."], "sha": "74669b9f388d9d788c97399a0824adbfee78400e", "url": "https://github.com/stathat/go/blob/74669b9f388d9d788c97399a0824adbfee78400e/stathat.go#L319-L321", "partition": "valid"} +{"repo": "stathat/go", "path": "stathat.go", "func_name": "PostEZCount", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Using the EZ API, posts a count to a stat using DefaultReporter.", "docstring_tokens": ["Using", "the", "EZ", "API", "posts", "a", "count", "to", "a", "stat", "using", "DefaultReporter", "."], "sha": "74669b9f388d9d788c97399a0824adbfee78400e", "url": "https://github.com/stathat/go/blob/74669b9f388d9d788c97399a0824adbfee78400e/stathat.go#L329-L331", "partition": "valid"} +{"repo": "stathat/go", "path": "stathat.go", "func_name": "PostEZCountTime", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Using the EZ API, posts a count to a stat at a specific time using DefaultReporter.", "docstring_tokens": ["Using", "the", "EZ", "API", "posts", "a", "count", "to", "a", "stat", "at", "a", "specific", "time", "using", "DefaultReporter", "."], "sha": "74669b9f388d9d788c97399a0824adbfee78400e", "url": "https://github.com/stathat/go/blob/74669b9f388d9d788c97399a0824adbfee78400e/stathat.go#L334-L336", "partition": "valid"} +{"repo": "stathat/go", "path": "stathat.go", "func_name": "PostEZValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Using the EZ API, posts a value to a stat using DefaultReporter.", "docstring_tokens": ["Using", "the", "EZ", "API", "posts", "a", "value", "to", "a", "stat", "using", "DefaultReporter", "."], "sha": "74669b9f388d9d788c97399a0824adbfee78400e", "url": "https://github.com/stathat/go/blob/74669b9f388d9d788c97399a0824adbfee78400e/stathat.go#L339-L341", "partition": "valid"} +{"repo": "stathat/go", "path": "stathat.go", "func_name": "PostEZValueTime", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Using the EZ API, posts a value to a stat at a specific time using DefaultReporter.", "docstring_tokens": ["Using", "the", "EZ", "API", "posts", "a", "value", "to", "a", "stat", "at", "a", "specific", "time", "using", "DefaultReporter", "."], "sha": "74669b9f388d9d788c97399a0824adbfee78400e", "url": "https://github.com/stathat/go/blob/74669b9f388d9d788c97399a0824adbfee78400e/stathat.go#L344-L346", "partition": "valid"} +{"repo": "stathat/go", "path": "stathat.go", "func_name": "PostCount", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Using the classic API, posts a count to a stat.", "docstring_tokens": ["Using", "the", "classic", "API", "posts", "a", "count", "to", "a", "stat", "."], "sha": "74669b9f388d9d788c97399a0824adbfee78400e", "url": "https://github.com/stathat/go/blob/74669b9f388d9d788c97399a0824adbfee78400e/stathat.go#L355-L358", "partition": "valid"} +{"repo": "stathat/go", "path": "stathat.go", "func_name": "PostCountTime", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Using the classic API, posts a count to a stat at a specific time.", "docstring_tokens": ["Using", "the", "classic", "API", "posts", "a", "count", "to", "a", "stat", "at", "a", "specific", "time", "."], "sha": "74669b9f388d9d788c97399a0824adbfee78400e", "url": "https://github.com/stathat/go/blob/74669b9f388d9d788c97399a0824adbfee78400e/stathat.go#L361-L366", "partition": "valid"} +{"repo": "stathat/go", "path": "stathat.go", "func_name": "PostCountOne", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Using the classic API, posts a count of 1 to a stat.", "docstring_tokens": ["Using", "the", "classic", "API", "posts", "a", "count", "of", "1", "to", "a", "stat", "."], "sha": "74669b9f388d9d788c97399a0824adbfee78400e", "url": "https://github.com/stathat/go/blob/74669b9f388d9d788c97399a0824adbfee78400e/stathat.go#L369-L371", "partition": "valid"} +{"repo": "stathat/go", "path": "stathat.go", "func_name": "PostValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Using the classic API, posts a value to a stat.", "docstring_tokens": ["Using", "the", "classic", "API", "posts", "a", "value", "to", "a", "stat", "."], "sha": "74669b9f388d9d788c97399a0824adbfee78400e", "url": "https://github.com/stathat/go/blob/74669b9f388d9d788c97399a0824adbfee78400e/stathat.go#L374-L377", "partition": "valid"} +{"repo": "stathat/go", "path": "stathat.go", "func_name": "PostValueTime", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Using the classic API, posts a value to a stat at a specific time.", "docstring_tokens": ["Using", "the", "classic", "API", "posts", "a", "value", "to", "a", "stat", "at", "a", "specific", "time", "."], "sha": "74669b9f388d9d788c97399a0824adbfee78400e", "url": "https://github.com/stathat/go/blob/74669b9f388d9d788c97399a0824adbfee78400e/stathat.go#L380-L385", "partition": "valid"} +{"repo": "stathat/go", "path": "stathat.go", "func_name": "PostEZCountOne", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Using the EZ API, posts a count of 1 to a stat.", "docstring_tokens": ["Using", "the", "EZ", "API", "posts", "a", "count", "of", "1", "to", "a", "stat", "."], "sha": "74669b9f388d9d788c97399a0824adbfee78400e", "url": "https://github.com/stathat/go/blob/74669b9f388d9d788c97399a0824adbfee78400e/stathat.go#L388-L390", "partition": "valid"} +{"repo": "stathat/go", "path": "stathat.go", "func_name": "PostEZCount", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Using the EZ API, posts a count to a stat.", "docstring_tokens": ["Using", "the", "EZ", "API", "posts", "a", "count", "to", "a", "stat", "."], "sha": "74669b9f388d9d788c97399a0824adbfee78400e", "url": "https://github.com/stathat/go/blob/74669b9f388d9d788c97399a0824adbfee78400e/stathat.go#L393-L396", "partition": "valid"} +{"repo": "stathat/go", "path": "stathat.go", "func_name": "PostEZCountTime", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Using the EZ API, posts a count to a stat at a specific time.", "docstring_tokens": ["Using", "the", "EZ", "API", "posts", "a", "count", "to", "a", "stat", "at", "a", "specific", "time", "."], "sha": "74669b9f388d9d788c97399a0824adbfee78400e", "url": "https://github.com/stathat/go/blob/74669b9f388d9d788c97399a0824adbfee78400e/stathat.go#L399-L404", "partition": "valid"} +{"repo": "stathat/go", "path": "stathat.go", "func_name": "PostEZValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Using the EZ API, posts a value to a stat.", "docstring_tokens": ["Using", "the", "EZ", "API", "posts", "a", "value", "to", "a", "stat", "."], "sha": "74669b9f388d9d788c97399a0824adbfee78400e", "url": "https://github.com/stathat/go/blob/74669b9f388d9d788c97399a0824adbfee78400e/stathat.go#L407-L410", "partition": "valid"} +{"repo": "stathat/go", "path": "stathat.go", "func_name": "PostEZValueTime", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Using the EZ API, posts a value to a stat at a specific time.", "docstring_tokens": ["Using", "the", "EZ", "API", "posts", "a", "value", "to", "a", "stat", "at", "a", "specific", "time", "."], "sha": "74669b9f388d9d788c97399a0824adbfee78400e", "url": "https://github.com/stathat/go/blob/74669b9f388d9d788c97399a0824adbfee78400e/stathat.go#L413-L418", "partition": "valid"} +{"repo": "stathat/go", "path": "stathat.go", "func_name": "NewBatchReporter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewBatchReporter creates a batching stat reporter. The interval parameter\n// specifies how often stats should be posted to the StatHat server.", "docstring_tokens": ["NewBatchReporter", "creates", "a", "batching", "stat", "reporter", ".", "The", "interval", "parameter", "specifies", "how", "often", "stats", "should", "be", "posted", "to", "the", "StatHat", "server", "."], "sha": "74669b9f388d9d788c97399a0824adbfee78400e", "url": "https://github.com/stathat/go/blob/74669b9f388d9d788c97399a0824adbfee78400e/stathat.go#L481-L493", "partition": "valid"} +{"repo": "t94j0/nmap", "path": "host.go", "func_name": "cleanHost", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// cleanHost is used to conver from the rawHost format to a more usable format", "docstring_tokens": ["cleanHost", "is", "used", "to", "conver", "from", "the", "rawHost", "format", "to", "a", "more", "usable", "format"], "sha": "96d772f8fd992d13500a7fa0261b7b97ed9ac310", "url": "https://github.com/t94j0/nmap/blob/96d772f8fd992d13500a7fa0261b7b97ed9ac310/host.go#L28-L47", "partition": "valid"} +{"repo": "t94j0/nmap", "path": "host.go", "func_name": "GetHost", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetHost will get a specified host by either hostname or ip. The first\n// return value is the host, if it was found. The second return value is the\n// wether the host was found or not", "docstring_tokens": ["GetHost", "will", "get", "a", "specified", "host", "by", "either", "hostname", "or", "ip", ".", "The", "first", "return", "value", "is", "the", "host", "if", "it", "was", "found", ".", "The", "second", "return", "value", "is", "the", "wether", "the", "host", "was", "found", "or", "not"], "sha": "96d772f8fd992d13500a7fa0261b7b97ed9ac310", "url": "https://github.com/t94j0/nmap/blob/96d772f8fd992d13500a7fa0261b7b97ed9ac310/host.go#L52-L67", "partition": "valid"} +{"repo": "t94j0/nmap", "path": "host.go", "func_name": "Rescan", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Rescan the target. Normally used for finding differences between scans\n// at two points in time.", "docstring_tokens": ["Rescan", "the", "target", ".", "Normally", "used", "for", "finding", "differences", "between", "scans", "at", "two", "points", "in", "time", "."], "sha": "96d772f8fd992d13500a7fa0261b7b97ed9ac310", "url": "https://github.com/t94j0/nmap/blob/96d772f8fd992d13500a7fa0261b7b97ed9ac310/host.go#L71-L78", "partition": "valid"} +{"repo": "t94j0/nmap", "path": "host.go", "func_name": "Diff", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Diff gets the difference between the the target host and the argument host.\n//The first returned value is the added ports and the second returned value is\n// the removed ports.", "docstring_tokens": ["Diff", "gets", "the", "difference", "between", "the", "the", "target", "host", "and", "the", "argument", "host", ".", "The", "first", "returned", "value", "is", "the", "added", "ports", "and", "the", "second", "returned", "value", "is", "the", "removed", "ports", "."], "sha": "96d772f8fd992d13500a7fa0261b7b97ed9ac310", "url": "https://github.com/t94j0/nmap/blob/96d772f8fd992d13500a7fa0261b7b97ed9ac310/host.go#L83-L101", "partition": "valid"} +{"repo": "t94j0/nmap", "path": "host.go", "func_name": "ToString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToString converts the host into a nicely formatted string", "docstring_tokens": ["ToString", "converts", "the", "host", "into", "a", "nicely", "formatted", "string"], "sha": "96d772f8fd992d13500a7fa0261b7b97ed9ac310", "url": "https://github.com/t94j0/nmap/blob/96d772f8fd992d13500a7fa0261b7b97ed9ac310/host.go#L104-L123", "partition": "valid"} +{"repo": "t94j0/nmap", "path": "scan.go", "func_name": "Init", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Init initializes a scan object. This is the easiest way to create a Scan\n// object. If you are trying to create a Scan object by hand, make sure to\n// instantiate the Hosts map", "docstring_tokens": ["Init", "initializes", "a", "scan", "object", ".", "This", "is", "the", "easiest", "way", "to", "create", "a", "Scan", "object", ".", "If", "you", "are", "trying", "to", "create", "a", "Scan", "object", "by", "hand", "make", "sure", "to", "instantiate", "the", "Hosts", "map"], "sha": "96d772f8fd992d13500a7fa0261b7b97ed9ac310", "url": "https://github.com/t94j0/nmap/blob/96d772f8fd992d13500a7fa0261b7b97ed9ac310/scan.go#L53-L57", "partition": "valid"} +{"repo": "t94j0/nmap", "path": "scan.go", "func_name": "AddHosts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddHosts adds a list of hosts to the list of hosts to be scanned", "docstring_tokens": ["AddHosts", "adds", "a", "list", "of", "hosts", "to", "the", "list", "of", "hosts", "to", "be", "scanned"], "sha": "96d772f8fd992d13500a7fa0261b7b97ed9ac310", "url": "https://github.com/t94j0/nmap/blob/96d772f8fd992d13500a7fa0261b7b97ed9ac310/scan.go#L60-L63", "partition": "valid"} +{"repo": "t94j0/nmap", "path": "scan.go", "func_name": "SetHosts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetHosts sets the hosts that will be scanned", "docstring_tokens": ["SetHosts", "sets", "the", "hosts", "that", "will", "be", "scanned"], "sha": "96d772f8fd992d13500a7fa0261b7b97ed9ac310", "url": "https://github.com/t94j0/nmap/blob/96d772f8fd992d13500a7fa0261b7b97ed9ac310/scan.go#L66-L69", "partition": "valid"} +{"repo": "t94j0/nmap", "path": "scan.go", "func_name": "AddPorts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddPorts appends a list of ports to the list of ports to be scanned", "docstring_tokens": ["AddPorts", "appends", "a", "list", "of", "ports", "to", "the", "list", "of", "ports", "to", "be", "scanned"], "sha": "96d772f8fd992d13500a7fa0261b7b97ed9ac310", "url": "https://github.com/t94j0/nmap/blob/96d772f8fd992d13500a7fa0261b7b97ed9ac310/scan.go#L72-L75", "partition": "valid"} +{"repo": "t94j0/nmap", "path": "scan.go", "func_name": "SetPorts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetPorts sets the ports that wil be used", "docstring_tokens": ["SetPorts", "sets", "the", "ports", "that", "wil", "be", "used"], "sha": "96d772f8fd992d13500a7fa0261b7b97ed9ac310", "url": "https://github.com/t94j0/nmap/blob/96d772f8fd992d13500a7fa0261b7b97ed9ac310/scan.go#L91-L94", "partition": "valid"} +{"repo": "t94j0/nmap", "path": "scan.go", "func_name": "SetTCPPorts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetTCPPorts sets which TCP-only ports are used to scan", "docstring_tokens": ["SetTCPPorts", "sets", "which", "TCP", "-", "only", "ports", "are", "used", "to", "scan"], "sha": "96d772f8fd992d13500a7fa0261b7b97ed9ac310", "url": "https://github.com/t94j0/nmap/blob/96d772f8fd992d13500a7fa0261b7b97ed9ac310/scan.go#L103-L106", "partition": "valid"} +{"repo": "t94j0/nmap", "path": "scan.go", "func_name": "SetUDPPorts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetUDPPort sets which TCP-only ports are used to scan", "docstring_tokens": ["SetUDPPort", "sets", "which", "TCP", "-", "only", "ports", "are", "used", "to", "scan"], "sha": "96d772f8fd992d13500a7fa0261b7b97ed9ac310", "url": "https://github.com/t94j0/nmap/blob/96d772f8fd992d13500a7fa0261b7b97ed9ac310/scan.go#L115-L118", "partition": "valid"} +{"repo": "t94j0/nmap", "path": "scan.go", "func_name": "AddFlags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddFlags adds a list of flags to be used by nmap. Seperate flags by new\n// arguments. The order of the flag is kept, so when using flags that require\n// file names, seperate it by using multiple arguments.\n//\n// Use the DisallowedFlags variable to guide you on which flags are not allowed\n// to be used.", "docstring_tokens": ["AddFlags", "adds", "a", "list", "of", "flags", "to", "be", "used", "by", "nmap", ".", "Seperate", "flags", "by", "new", "arguments", ".", "The", "order", "of", "the", "flag", "is", "kept", "so", "when", "using", "flags", "that", "require", "file", "names", "seperate", "it", "by", "using", "multiple", "arguments", ".", "Use", "the", "DisallowedFlags", "variable", "to", "guide", "you", "on", "which", "flags", "are", "not", "allowed", "to", "be", "used", "."], "sha": "96d772f8fd992d13500a7fa0261b7b97ed9ac310", "url": "https://github.com/t94j0/nmap/blob/96d772f8fd992d13500a7fa0261b7b97ed9ac310/scan.go#L126-L142", "partition": "valid"} +{"repo": "t94j0/nmap", "path": "scan.go", "func_name": "IntenseAllTCPPorts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IntenseAllTCPPorts does an intense scan, but adds all TCP ports", "docstring_tokens": ["IntenseAllTCPPorts", "does", "an", "intense", "scan", "but", "adds", "all", "TCP", "ports"], "sha": "96d772f8fd992d13500a7fa0261b7b97ed9ac310", "url": "https://github.com/t94j0/nmap/blob/96d772f8fd992d13500a7fa0261b7b97ed9ac310/scan.go#L156-L162", "partition": "valid"} +{"repo": "t94j0/nmap", "path": "scan.go", "func_name": "ToString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToString returns the list of hosts into a pretty-printed format", "docstring_tokens": ["ToString", "returns", "the", "list", "of", "hosts", "into", "a", "pretty", "-", "printed", "format"], "sha": "96d772f8fd992d13500a7fa0261b7b97ed9ac310", "url": "https://github.com/t94j0/nmap/blob/96d772f8fd992d13500a7fa0261b7b97ed9ac310/scan.go#L241-L246", "partition": "valid"} +{"repo": "t94j0/nmap", "path": "create_args.go", "func_name": "CreateNmapArgs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateNmapArgs takes a Scan object and returns a list of strings that map to\n// arguments for an nmap scan.", "docstring_tokens": ["CreateNmapArgs", "takes", "a", "Scan", "object", "and", "returns", "a", "list", "of", "strings", "that", "map", "to", "arguments", "for", "an", "nmap", "scan", "."], "sha": "96d772f8fd992d13500a7fa0261b7b97ed9ac310", "url": "https://github.com/t94j0/nmap/blob/96d772f8fd992d13500a7fa0261b7b97ed9ac310/create_args.go#L14-L65", "partition": "valid"} +{"repo": "t94j0/nmap", "path": "create_args.go", "func_name": "uint16ListToStringList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// uint16ListToStringList is used to reduce lines for joining strings in\n// the CreateNmapArgs function", "docstring_tokens": ["uint16ListToStringList", "is", "used", "to", "reduce", "lines", "for", "joining", "strings", "in", "the", "CreateNmapArgs", "function"], "sha": "96d772f8fd992d13500a7fa0261b7b97ed9ac310", "url": "https://github.com/t94j0/nmap/blob/96d772f8fd992d13500a7fa0261b7b97ed9ac310/create_args.go#L69-L74", "partition": "valid"} +{"repo": "t94j0/nmap", "path": "port.go", "func_name": "ToString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToString returns port information in a pretty-printed format", "docstring_tokens": ["ToString", "returns", "port", "information", "in", "a", "pretty", "-", "printed", "format"], "sha": "96d772f8fd992d13500a7fa0261b7b97ed9ac310", "url": "https://github.com/t94j0/nmap/blob/96d772f8fd992d13500a7fa0261b7b97ed9ac310/port.go#L50-L60", "partition": "valid"} +{"repo": "gokyle/hotp", "path": "hotp.go", "func_name": "Counter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Counter returns the HOTP's 8-byte counter as an unsigned 64-bit\n// integer.", "docstring_tokens": ["Counter", "returns", "the", "HOTP", "s", "8", "-", "byte", "counter", "as", "an", "unsigned", "64", "-", "bit", "integer", "."], "sha": "c180d57d286b385101c999a60087a40d7f48fc77", "url": "https://github.com/gokyle/hotp/blob/c180d57d286b385101c999a60087a40d7f48fc77/hotp.go#L46-L49", "partition": "valid"} +{"repo": "gokyle/hotp", "path": "hotp.go", "func_name": "Increment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Increment will increment an HOTP source's counter. This is useful\n// for providers like the Google Authenticator app, which immediately\n// increments the counter and uses the 0 counter value as an integrity\n// check.", "docstring_tokens": ["Increment", "will", "increment", "an", "HOTP", "source", "s", "counter", ".", "This", "is", "useful", "for", "providers", "like", "the", "Google", "Authenticator", "app", "which", "immediately", "increments", "the", "counter", "and", "uses", "the", "0", "counter", "value", "as", "an", "integrity", "check", "."], "sha": "c180d57d286b385101c999a60087a40d7f48fc77", "url": "https://github.com/gokyle/hotp/blob/c180d57d286b385101c999a60087a40d7f48fc77/hotp.go#L55-L61", "partition": "valid"} +{"repo": "gokyle/hotp", "path": "hotp.go", "func_name": "NewHOTP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewHOTP intialises a new HOTP instance with the key and counter\n// values. No check is done on the digits, but typical values are 6\n// and 8.", "docstring_tokens": ["NewHOTP", "intialises", "a", "new", "HOTP", "instance", "with", "the", "key", "and", "counter", "values", ".", "No", "check", "is", "done", "on", "the", "digits", "but", "typical", "values", "are", "6", "and", "8", "."], "sha": "c180d57d286b385101c999a60087a40d7f48fc77", "url": "https://github.com/gokyle/hotp/blob/c180d57d286b385101c999a60087a40d7f48fc77/hotp.go#L88-L97", "partition": "valid"} +{"repo": "gokyle/hotp", "path": "hotp.go", "func_name": "URL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// URL returns a suitable URL, such as for the Google Authenticator\n// app. The label is used by these apps to identify the service to\n// which this OTP belongs. The digits value is ignored by the Google\n// authenticator app, and is therefore elided in the resulting URL.", "docstring_tokens": ["URL", "returns", "a", "suitable", "URL", "such", "as", "for", "the", "Google", "Authenticator", "app", ".", "The", "label", "is", "used", "by", "these", "apps", "to", "identify", "the", "service", "to", "which", "this", "OTP", "belongs", ".", "The", "digits", "value", "is", "ignored", "by", "the", "Google", "authenticator", "app", "and", "is", "therefore", "elided", "in", "the", "resulting", "URL", "."], "sha": "c180d57d286b385101c999a60087a40d7f48fc77", "url": "https://github.com/gokyle/hotp/blob/c180d57d286b385101c999a60087a40d7f48fc77/hotp.go#L103-L114", "partition": "valid"} +{"repo": "gokyle/hotp", "path": "hotp.go", "func_name": "QR", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// QR generates a byte slice containing the a QR code encoded as a\n// PNG with level Q error correction.", "docstring_tokens": ["QR", "generates", "a", "byte", "slice", "containing", "the", "a", "QR", "code", "encoded", "as", "a", "PNG", "with", "level", "Q", "error", "correction", "."], "sha": "c180d57d286b385101c999a60087a40d7f48fc77", "url": "https://github.com/gokyle/hotp/blob/c180d57d286b385101c999a60087a40d7f48fc77/hotp.go#L118-L125", "partition": "valid"} +{"repo": "gokyle/hotp", "path": "hotp.go", "func_name": "truncate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// truncate contains the DT function from the RFC; this is used to\n// deterministically select a sequence of 4 bytes from the HMAC\n// counter hash.", "docstring_tokens": ["truncate", "contains", "the", "DT", "function", "from", "the", "RFC", ";", "this", "is", "used", "to", "deterministically", "select", "a", "sequence", "of", "4", "bytes", "from", "the", "HMAC", "counter", "hash", "."], "sha": "c180d57d286b385101c999a60087a40d7f48fc77", "url": "https://github.com/gokyle/hotp/blob/c180d57d286b385101c999a60087a40d7f48fc77/hotp.go#L130-L139", "partition": "valid"} +{"repo": "gokyle/hotp", "path": "hotp.go", "func_name": "FromURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FromURL parses a new HOTP from a URL string. It returns the OTP,\n// the label associated with the OTP, and any errors that occurred.", "docstring_tokens": ["FromURL", "parses", "a", "new", "HOTP", "from", "a", "URL", "string", ".", "It", "returns", "the", "OTP", "the", "label", "associated", "with", "the", "OTP", "and", "any", "errors", "that", "occurred", "."], "sha": "c180d57d286b385101c999a60087a40d7f48fc77", "url": "https://github.com/gokyle/hotp/blob/c180d57d286b385101c999a60087a40d7f48fc77/hotp.go#L143-L193", "partition": "valid"} +{"repo": "gokyle/hotp", "path": "hotp.go", "func_name": "GenerateHOTP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GenerateHOTP will generate a randomised HOTP source; if the\n// randCounter parameter is true, the counter will be randomised.", "docstring_tokens": ["GenerateHOTP", "will", "generate", "a", "randomised", "HOTP", "source", ";", "if", "the", "randCounter", "parameter", "is", "true", "the", "counter", "will", "be", "randomised", "."], "sha": "c180d57d286b385101c999a60087a40d7f48fc77", "url": "https://github.com/gokyle/hotp/blob/c180d57d286b385101c999a60087a40d7f48fc77/hotp.go#L197-L214", "partition": "valid"} +{"repo": "gokyle/hotp", "path": "hotp.go", "func_name": "YubiKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// YubiKey reads an OATH-HOTP string as returned by a YubiKey, and\n// returns three values. The first value contains the actual OTP, the\n// second value contains the YubiKey's token identifier, and the final\n// value indicates whether the input string was a valid YubiKey\n// OTP. This does not check whether the code is correct or not, it\n// only ensures that it is well-formed output from a token and\n// splits the output into the code and the public identity.", "docstring_tokens": ["YubiKey", "reads", "an", "OATH", "-", "HOTP", "string", "as", "returned", "by", "a", "YubiKey", "and", "returns", "three", "values", ".", "The", "first", "value", "contains", "the", "actual", "OTP", "the", "second", "value", "contains", "the", "YubiKey", "s", "token", "identifier", "and", "the", "final", "value", "indicates", "whether", "the", "input", "string", "was", "a", "valid", "YubiKey", "OTP", ".", "This", "does", "not", "check", "whether", "the", "code", "is", "correct", "or", "not", "it", "only", "ensures", "that", "it", "is", "well", "-", "formed", "output", "from", "a", "token", "and", "splits", "the", "output", "into", "the", "code", "and", "the", "public", "identity", "."], "sha": "c180d57d286b385101c999a60087a40d7f48fc77", "url": "https://github.com/gokyle/hotp/blob/c180d57d286b385101c999a60087a40d7f48fc77/hotp.go#L223-L232", "partition": "valid"} +{"repo": "gokyle/hotp", "path": "hotp.go", "func_name": "IntegrityCheck", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IntegrityCheck returns two values, the base OTP and the current\n// counter. This is used, for example, with the Google Authenticator\n// app's \"Check key value\" function and can be used to verify that\n// the application and the provider are in sync.", "docstring_tokens": ["IntegrityCheck", "returns", "two", "values", "the", "base", "OTP", "and", "the", "current", "counter", ".", "This", "is", "used", "for", "example", "with", "the", "Google", "Authenticator", "app", "s", "Check", "key", "value", "function", "and", "can", "be", "used", "to", "verify", "that", "the", "application", "and", "the", "provider", "are", "in", "sync", "."], "sha": "c180d57d286b385101c999a60087a40d7f48fc77", "url": "https://github.com/gokyle/hotp/blob/c180d57d286b385101c999a60087a40d7f48fc77/hotp.go#L238-L249", "partition": "valid"} +{"repo": "gokyle/hotp", "path": "hotp.go", "func_name": "Check", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Check takes an input code and verifies it against the OTP. If\n// successful, the counter is incremented.", "docstring_tokens": ["Check", "takes", "an", "input", "code", "and", "verifies", "it", "against", "the", "OTP", ".", "If", "successful", "the", "counter", "is", "incremented", "."], "sha": "c180d57d286b385101c999a60087a40d7f48fc77", "url": "https://github.com/gokyle/hotp/blob/c180d57d286b385101c999a60087a40d7f48fc77/hotp.go#L275-L283", "partition": "valid"} +{"repo": "gokyle/hotp", "path": "hotp.go", "func_name": "Marshal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Marshal serialises an HOTP key value as a DER-encoded byte slice.", "docstring_tokens": ["Marshal", "serialises", "an", "HOTP", "key", "value", "as", "a", "DER", "-", "encoded", "byte", "slice", "."], "sha": "c180d57d286b385101c999a60087a40d7f48fc77", "url": "https://github.com/gokyle/hotp/blob/c180d57d286b385101c999a60087a40d7f48fc77/hotp.go#L286-L296", "partition": "valid"} +{"repo": "gokyle/hotp", "path": "hotp.go", "func_name": "Unmarshal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Unmarshal parses a DER-encoded serialised HOTP key value.", "docstring_tokens": ["Unmarshal", "parses", "a", "DER", "-", "encoded", "serialised", "HOTP", "key", "value", "."], "sha": "c180d57d286b385101c999a60087a40d7f48fc77", "url": "https://github.com/gokyle/hotp/blob/c180d57d286b385101c999a60087a40d7f48fc77/hotp.go#L299-L316", "partition": "valid"} +{"repo": "aybabtme/iocontrol", "path": "pool.go", "func_name": "NewWriterPool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewWriterPool creates a pool that ensures the writers it wraps will\n// respect an overall maxRate, with maxBurst resolution. The semantics\n// of the wrapped writers are the same as those of using a plain\n// ThrottledWriter.", "docstring_tokens": ["NewWriterPool", "creates", "a", "pool", "that", "ensures", "the", "writers", "it", "wraps", "will", "respect", "an", "overall", "maxRate", "with", "maxBurst", "resolution", ".", "The", "semantics", "of", "the", "wrapped", "writers", "are", "the", "same", "as", "those", "of", "using", "a", "plain", "ThrottledWriter", "."], "sha": "ad15bcfc95a08d0b9d072012fb7618512aafb99b", "url": "https://github.com/aybabtme/iocontrol/blob/ad15bcfc95a08d0b9d072012fb7618512aafb99b/pool.go#L26-L32", "partition": "valid"} +{"repo": "aybabtme/iocontrol", "path": "pool.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get a throttled writer that wraps w.", "docstring_tokens": ["Get", "a", "throttled", "writer", "that", "wraps", "w", "."], "sha": "ad15bcfc95a08d0b9d072012fb7618512aafb99b", "url": "https://github.com/aybabtme/iocontrol/blob/ad15bcfc95a08d0b9d072012fb7618512aafb99b/pool.go#L35-L55", "partition": "valid"} +{"repo": "aybabtme/iocontrol", "path": "pool.go", "func_name": "Len", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Len is the number of currently given out throttled writers.", "docstring_tokens": ["Len", "is", "the", "number", "of", "currently", "given", "out", "throttled", "writers", "."], "sha": "ad15bcfc95a08d0b9d072012fb7618512aafb99b", "url": "https://github.com/aybabtme/iocontrol/blob/ad15bcfc95a08d0b9d072012fb7618512aafb99b/pool.go#L69-L74", "partition": "valid"} +{"repo": "aybabtme/iocontrol", "path": "pool.go", "func_name": "NewReaderPool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewReaderPool creates a pool that ensures the writers it wraps will\n// respect an overall maxRate, with maxBurst resolution. The semantics\n// of the wrapped writers are the same as those of using a plain\n// ThrottledReader.", "docstring_tokens": ["NewReaderPool", "creates", "a", "pool", "that", "ensures", "the", "writers", "it", "wraps", "will", "respect", "an", "overall", "maxRate", "with", "maxBurst", "resolution", ".", "The", "semantics", "of", "the", "wrapped", "writers", "are", "the", "same", "as", "those", "of", "using", "a", "plain", "ThrottledReader", "."], "sha": "ad15bcfc95a08d0b9d072012fb7618512aafb99b", "url": "https://github.com/aybabtme/iocontrol/blob/ad15bcfc95a08d0b9d072012fb7618512aafb99b/pool.go#L104-L110", "partition": "valid"} +{"repo": "aybabtme/iocontrol", "path": "pool.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get a throttled reader that wraps r.", "docstring_tokens": ["Get", "a", "throttled", "reader", "that", "wraps", "r", "."], "sha": "ad15bcfc95a08d0b9d072012fb7618512aafb99b", "url": "https://github.com/aybabtme/iocontrol/blob/ad15bcfc95a08d0b9d072012fb7618512aafb99b/pool.go#L113-L133", "partition": "valid"} +{"repo": "aybabtme/iocontrol", "path": "pool.go", "func_name": "SetRate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetRate of the pool, updating each given out reader to respect the\n// newly set rate. Returns the old rate.", "docstring_tokens": ["SetRate", "of", "the", "pool", "updating", "each", "given", "out", "reader", "to", "respect", "the", "newly", "set", "rate", ".", "Returns", "the", "old", "rate", "."], "sha": "ad15bcfc95a08d0b9d072012fb7618512aafb99b", "url": "https://github.com/aybabtme/iocontrol/blob/ad15bcfc95a08d0b9d072012fb7618512aafb99b/pool.go#L137-L144", "partition": "valid"} +{"repo": "aybabtme/iocontrol", "path": "pool.go", "func_name": "Len", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Len is the number of currently given out throttled readers.", "docstring_tokens": ["Len", "is", "the", "number", "of", "currently", "given", "out", "throttled", "readers", "."], "sha": "ad15bcfc95a08d0b9d072012fb7618512aafb99b", "url": "https://github.com/aybabtme/iocontrol/blob/ad15bcfc95a08d0b9d072012fb7618512aafb99b/pool.go#L147-L151", "partition": "valid"} +{"repo": "aybabtme/iocontrol", "path": "measure.go", "func_name": "NewMeasuredWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMeasuredWriter wraps a writer.", "docstring_tokens": ["NewMeasuredWriter", "wraps", "a", "writer", "."], "sha": "ad15bcfc95a08d0b9d072012fb7618512aafb99b", "url": "https://github.com/aybabtme/iocontrol/blob/ad15bcfc95a08d0b9d072012fb7618512aafb99b/measure.go#L15-L17", "partition": "valid"} +{"repo": "aybabtme/iocontrol", "path": "measure.go", "func_name": "BytesPerSec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BytesPerSec tells the rate per second at which bytes were written since last\n// measurement.", "docstring_tokens": ["BytesPerSec", "tells", "the", "rate", "per", "second", "at", "which", "bytes", "were", "written", "since", "last", "measurement", "."], "sha": "ad15bcfc95a08d0b9d072012fb7618512aafb99b", "url": "https://github.com/aybabtme/iocontrol/blob/ad15bcfc95a08d0b9d072012fb7618512aafb99b/measure.go#L27-L29", "partition": "valid"} +{"repo": "aybabtme/iocontrol", "path": "measure.go", "func_name": "NewMeasuredReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMeasuredReader wraps a reader.", "docstring_tokens": ["NewMeasuredReader", "wraps", "a", "reader", "."], "sha": "ad15bcfc95a08d0b9d072012fb7618512aafb99b", "url": "https://github.com/aybabtme/iocontrol/blob/ad15bcfc95a08d0b9d072012fb7618512aafb99b/measure.go#L49-L51", "partition": "valid"} +{"repo": "aybabtme/iocontrol", "path": "measure.go", "func_name": "BytesPer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BytesPer tells the rate per period at which bytes were read since last\n// measurement.", "docstring_tokens": ["BytesPer", "tells", "the", "rate", "per", "period", "at", "which", "bytes", "were", "read", "since", "last", "measurement", "."], "sha": "ad15bcfc95a08d0b9d072012fb7618512aafb99b", "url": "https://github.com/aybabtme/iocontrol/blob/ad15bcfc95a08d0b9d072012fb7618512aafb99b/measure.go#L55-L57", "partition": "valid"} +{"repo": "aybabtme/iocontrol", "path": "measure.go", "func_name": "BytesPerSec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BytesPerSec tells the rate per second at which bytes were read since last\n// measurement.", "docstring_tokens": ["BytesPerSec", "tells", "the", "rate", "per", "second", "at", "which", "bytes", "were", "read", "since", "last", "measurement", "."], "sha": "ad15bcfc95a08d0b9d072012fb7618512aafb99b", "url": "https://github.com/aybabtme/iocontrol/blob/ad15bcfc95a08d0b9d072012fb7618512aafb99b/measure.go#L61-L63", "partition": "valid"} +{"repo": "aybabtme/iocontrol", "path": "throttle.go", "func_name": "ThrottledReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ThrottledReader ensures that reads to `r` never exceeds a specified rate of\n// bytes per second. The `maxBurst` duration changes how often the verification is\n// done. The smaller the value, the less bursty, but also the more overhead there\n// is to the throttling.", "docstring_tokens": ["ThrottledReader", "ensures", "that", "reads", "to", "r", "never", "exceeds", "a", "specified", "rate", "of", "bytes", "per", "second", ".", "The", "maxBurst", "duration", "changes", "how", "often", "the", "verification", "is", "done", ".", "The", "smaller", "the", "value", "the", "less", "bursty", "but", "also", "the", "more", "overhead", "there", "is", "to", "the", "throttling", "."], "sha": "ad15bcfc95a08d0b9d072012fb7618512aafb99b", "url": "https://github.com/aybabtme/iocontrol/blob/ad15bcfc95a08d0b9d072012fb7618512aafb99b/throttle.go#L29-L34", "partition": "valid"} +{"repo": "aybabtme/iocontrol", "path": "throttle.go", "func_name": "ThrottledWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ThrottledWriter ensures that writes to `w` never exceeds a specified rate of\n// bytes per second. The `maxBurst` duration changes how often the verification is\n// done. The smaller the value, the less bursty, but also the more overhead there\n// is to the throttling.", "docstring_tokens": ["ThrottledWriter", "ensures", "that", "writes", "to", "w", "never", "exceeds", "a", "specified", "rate", "of", "bytes", "per", "second", ".", "The", "maxBurst", "duration", "changes", "how", "often", "the", "verification", "is", "done", ".", "The", "smaller", "the", "value", "the", "less", "bursty", "but", "also", "the", "more", "overhead", "there", "is", "to", "the", "throttling", "."], "sha": "ad15bcfc95a08d0b9d072012fb7618512aafb99b", "url": "https://github.com/aybabtme/iocontrol/blob/ad15bcfc95a08d0b9d072012fb7618512aafb99b/throttle.go#L70-L75", "partition": "valid"} +{"repo": "docker/dnsserver", "path": "dnsserver.go", "func_name": "NewDNSServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create a new DNS server. Domain is an unqualified domain that will be used\n// as the TLD.", "docstring_tokens": ["Create", "a", "new", "DNS", "server", ".", "Domain", "is", "an", "unqualified", "domain", "that", "will", "be", "used", "as", "the", "TLD", "."], "sha": "5d11eac172440e52d5f18e5a1dc5e57f136ee06b", "url": "https://github.com/docker/dnsserver/blob/5d11eac172440e52d5f18e5a1dc5e57f136ee06b/dnsserver.go#L33-L41", "partition": "valid"} +{"repo": "docker/dnsserver", "path": "dnsserver.go", "func_name": "qualifySrv", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Convenience function to ensure that SRV names are well-formed.", "docstring_tokens": ["Convenience", "function", "to", "ensure", "that", "SRV", "names", "are", "well", "-", "formed", "."], "sha": "5d11eac172440e52d5f18e5a1dc5e57f136ee06b", "url": "https://github.com/docker/dnsserver/blob/5d11eac172440e52d5f18e5a1dc5e57f136ee06b/dnsserver.go#L57-L59", "partition": "valid"} +{"repo": "docker/dnsserver", "path": "dnsserver.go", "func_name": "qualifySrvHosts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// rewrites supplied host entries to use the domain this dns server manages", "docstring_tokens": ["rewrites", "supplied", "host", "entries", "to", "use", "the", "domain", "this", "dns", "server", "manages"], "sha": "5d11eac172440e52d5f18e5a1dc5e57f136ee06b", "url": "https://github.com/docker/dnsserver/blob/5d11eac172440e52d5f18e5a1dc5e57f136ee06b/dnsserver.go#L62-L73", "partition": "valid"} +{"repo": "docker/dnsserver", "path": "dnsserver.go", "func_name": "GetA", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Receives a FQDN; looks up and supplies the A record.", "docstring_tokens": ["Receives", "a", "FQDN", ";", "looks", "up", "and", "supplies", "the", "A", "record", "."], "sha": "5d11eac172440e52d5f18e5a1dc5e57f136ee06b", "url": "https://github.com/docker/dnsserver/blob/5d11eac172440e52d5f18e5a1dc5e57f136ee06b/dnsserver.go#L76-L95", "partition": "valid"} +{"repo": "docker/dnsserver", "path": "dnsserver.go", "func_name": "SetA", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sets a host to an IP. Note that this is not the FQDN, but a hostname.", "docstring_tokens": ["Sets", "a", "host", "to", "an", "IP", ".", "Note", "that", "this", "is", "not", "the", "FQDN", "but", "a", "hostname", "."], "sha": "5d11eac172440e52d5f18e5a1dc5e57f136ee06b", "url": "https://github.com/docker/dnsserver/blob/5d11eac172440e52d5f18e5a1dc5e57f136ee06b/dnsserver.go#L98-L102", "partition": "valid"} +{"repo": "docker/dnsserver", "path": "dnsserver.go", "func_name": "DeleteA", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Deletes a host. Note that this is not the FQDN, but a hostname.", "docstring_tokens": ["Deletes", "a", "host", ".", "Note", "that", "this", "is", "not", "the", "FQDN", "but", "a", "hostname", "."], "sha": "5d11eac172440e52d5f18e5a1dc5e57f136ee06b", "url": "https://github.com/docker/dnsserver/blob/5d11eac172440e52d5f18e5a1dc5e57f136ee06b/dnsserver.go#L105-L109", "partition": "valid"} +{"repo": "docker/dnsserver", "path": "dnsserver.go", "func_name": "SetSRV", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sets a SRV with a service and protocol. See SRVRecord for more information\n// on what that requires.", "docstring_tokens": ["Sets", "a", "SRV", "with", "a", "service", "and", "protocol", ".", "See", "SRVRecord", "for", "more", "information", "on", "what", "that", "requires", "."], "sha": "5d11eac172440e52d5f18e5a1dc5e57f136ee06b", "url": "https://github.com/docker/dnsserver/blob/5d11eac172440e52d5f18e5a1dc5e57f136ee06b/dnsserver.go#L147-L151", "partition": "valid"} +{"repo": "docker/dnsserver", "path": "dnsserver.go", "func_name": "DeleteSRV", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Deletes a SRV record based on the service and protocol.", "docstring_tokens": ["Deletes", "a", "SRV", "record", "based", "on", "the", "service", "and", "protocol", "."], "sha": "5d11eac172440e52d5f18e5a1dc5e57f136ee06b", "url": "https://github.com/docker/dnsserver/blob/5d11eac172440e52d5f18e5a1dc5e57f136ee06b/dnsserver.go#L154-L158", "partition": "valid"} +{"repo": "karlseguin/typed", "path": "typed.go", "func_name": "Json", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create a Typed helper from the given JSON bytes", "docstring_tokens": ["Create", "a", "Typed", "helper", "from", "the", "given", "JSON", "bytes"], "sha": "2f542a6ff2d9962d9af4becdddf2e1a724a7d776", "url": "https://github.com/karlseguin/typed/blob/2f542a6ff2d9962d9af4becdddf2e1a724a7d776/typed.go#L28-L32", "partition": "valid"} +{"repo": "karlseguin/typed", "path": "typed.go", "func_name": "Must", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create a Typed helper from the given JSON bytes, panics on error", "docstring_tokens": ["Create", "a", "Typed", "helper", "from", "the", "given", "JSON", "bytes", "panics", "on", "error"], "sha": "2f542a6ff2d9962d9af4becdddf2e1a724a7d776", "url": "https://github.com/karlseguin/typed/blob/2f542a6ff2d9962d9af4becdddf2e1a724a7d776/typed.go#L35-L41", "partition": "valid"} +{"repo": "karlseguin/typed", "path": "typed.go", "func_name": "JsonReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create a Typed helper from the given JSON stream", "docstring_tokens": ["Create", "a", "Typed", "helper", "from", "the", "given", "JSON", "stream"], "sha": "2f542a6ff2d9962d9af4becdddf2e1a724a7d776", "url": "https://github.com/karlseguin/typed/blob/2f542a6ff2d9962d9af4becdddf2e1a724a7d776/typed.go#L44-L50", "partition": "valid"} +{"repo": "karlseguin/typed", "path": "typed.go", "func_name": "JsonFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create a Typed helper from the JSON within a file", "docstring_tokens": ["Create", "a", "Typed", "helper", "from", "the", "JSON", "within", "a", "file"], "sha": "2f542a6ff2d9962d9af4becdddf2e1a724a7d776", "url": "https://github.com/karlseguin/typed/blob/2f542a6ff2d9962d9af4becdddf2e1a724a7d776/typed.go#L58-L64", "partition": "valid"} +{"repo": "karlseguin/typed", "path": "typed.go", "func_name": "JsonArray", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create an array of Typed helpers\n// Used for when the root is an array which contains objects", "docstring_tokens": ["Create", "an", "array", "of", "Typed", "helpers", "Used", "for", "when", "the", "root", "is", "an", "array", "which", "contains", "objects"], "sha": "2f542a6ff2d9962d9af4becdddf2e1a724a7d776", "url": "https://github.com/karlseguin/typed/blob/2f542a6ff2d9962d9af4becdddf2e1a724a7d776/typed.go#L68-L88", "partition": "valid"} +{"repo": "karlseguin/typed", "path": "typed.go", "func_name": "JsonFileArray", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create an array of Typed helpers from a file\n// Used for when the root is an array which contains objects", "docstring_tokens": ["Create", "an", "array", "of", "Typed", "helpers", "from", "a", "file", "Used", "for", "when", "the", "root", "is", "an", "array", "which", "contains", "objects"], "sha": "2f542a6ff2d9962d9af4becdddf2e1a724a7d776", "url": "https://github.com/karlseguin/typed/blob/2f542a6ff2d9962d9af4becdddf2e1a724a7d776/typed.go#L98-L104", "partition": "valid"} +{"repo": "karlseguin/typed", "path": "typed.go", "func_name": "Bool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns a boolean at the key, or false if it\n// doesn't exist, or if it isn't a bool", "docstring_tokens": ["Returns", "a", "boolean", "at", "the", "key", "or", "false", "if", "it", "doesn", "t", "exist", "or", "if", "it", "isn", "t", "a", "bool"], "sha": "2f542a6ff2d9962d9af4becdddf2e1a724a7d776", "url": "https://github.com/karlseguin/typed/blob/2f542a6ff2d9962d9af4becdddf2e1a724a7d776/typed.go#L118-L120", "partition": "valid"} +{"repo": "karlseguin/typed", "path": "typed.go", "func_name": "BoolOr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns a boolean at the key, or the specified\n// value if it doesn't exist or isn't a bool", "docstring_tokens": ["Returns", "a", "boolean", "at", "the", "key", "or", "the", "specified", "value", "if", "it", "doesn", "t", "exist", "or", "isn", "t", "a", "bool"], "sha": "2f542a6ff2d9962d9af4becdddf2e1a724a7d776", "url": "https://github.com/karlseguin/typed/blob/2f542a6ff2d9962d9af4becdddf2e1a724a7d776/typed.go#L124-L129", "partition": "valid"} +{"repo": "karlseguin/typed", "path": "typed.go", "func_name": "BoolMust", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns a bool or panics", "docstring_tokens": ["Returns", "a", "bool", "or", "panics"], "sha": "2f542a6ff2d9962d9af4becdddf2e1a724a7d776", "url": "https://github.com/karlseguin/typed/blob/2f542a6ff2d9962d9af4becdddf2e1a724a7d776/typed.go#L132-L138", "partition": "valid"} +{"repo": "karlseguin/typed", "path": "typed.go", "func_name": "BoolIf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns a boolean at the key and whether\n// or not the key existed and the value was a bolean", "docstring_tokens": ["Returns", "a", "boolean", "at", "the", "key", "and", "whether", "or", "not", "the", "key", "existed", "and", "the", "value", "was", "a", "bolean"], "sha": "2f542a6ff2d9962d9af4becdddf2e1a724a7d776", "url": "https://github.com/karlseguin/typed/blob/2f542a6ff2d9962d9af4becdddf2e1a724a7d776/typed.go#L142-L151", "partition": "valid"} +{"repo": "karlseguin/typed", "path": "typed.go", "func_name": "IntOr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns a int at the key, or the specified\n// value if it doesn't exist or isn't a int", "docstring_tokens": ["Returns", "a", "int", "at", "the", "key", "or", "the", "specified", "value", "if", "it", "doesn", "t", "exist", "or", "isn", "t", "a", "int"], "sha": "2f542a6ff2d9962d9af4becdddf2e1a724a7d776", "url": "https://github.com/karlseguin/typed/blob/2f542a6ff2d9962d9af4becdddf2e1a724a7d776/typed.go#L159-L164", "partition": "valid"} +{"repo": "karlseguin/typed", "path": "typed.go", "func_name": "IntMust", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns an int or panics", "docstring_tokens": ["Returns", "an", "int", "or", "panics"], "sha": "2f542a6ff2d9962d9af4becdddf2e1a724a7d776", "url": "https://github.com/karlseguin/typed/blob/2f542a6ff2d9962d9af4becdddf2e1a724a7d776/typed.go#L167-L173", "partition": "valid"} +{"repo": "karlseguin/typed", "path": "typed.go", "func_name": "IntIf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns an int at the key and whether\n// or not the key existed and the value was an int", "docstring_tokens": ["Returns", "an", "int", "at", "the", "key", "and", "whether", "or", "not", "the", "key", "existed", "and", "the", "value", "was", "an", "int"], "sha": "2f542a6ff2d9962d9af4becdddf2e1a724a7d776", "url": "https://github.com/karlseguin/typed/blob/2f542a6ff2d9962d9af4becdddf2e1a724a7d776/typed.go#L177-L199", "partition": "valid"} +{"repo": "karlseguin/typed", "path": "typed.go", "func_name": "FloatOr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns a float at the key, or the specified\n// value if it doesn't exist or isn't a float", "docstring_tokens": ["Returns", "a", "float", "at", "the", "key", "or", "the", "specified", "value", "if", "it", "doesn", "t", "exist", "or", "isn", "t", "a", "float"], "sha": "2f542a6ff2d9962d9af4becdddf2e1a724a7d776", "url": "https://github.com/karlseguin/typed/blob/2f542a6ff2d9962d9af4becdddf2e1a724a7d776/typed.go#L207-L212", "partition": "valid"} +{"repo": "karlseguin/typed", "path": "typed.go", "func_name": "FloatMust", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns an float or panics", "docstring_tokens": ["Returns", "an", "float", "or", "panics"], "sha": "2f542a6ff2d9962d9af4becdddf2e1a724a7d776", "url": "https://github.com/karlseguin/typed/blob/2f542a6ff2d9962d9af4becdddf2e1a724a7d776/typed.go#L215-L221", "partition": "valid"} +{"repo": "karlseguin/typed", "path": "typed.go", "func_name": "FloatIf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns an float at the key and whether\n// or not the key existed and the value was an float", "docstring_tokens": ["Returns", "an", "float", "at", "the", "key", "and", "whether", "or", "not", "the", "key", "existed", "and", "the", "value", "was", "an", "float"], "sha": "2f542a6ff2d9962d9af4becdddf2e1a724a7d776", "url": "https://github.com/karlseguin/typed/blob/2f542a6ff2d9962d9af4becdddf2e1a724a7d776/typed.go#L225-L238", "partition": "valid"} +{"repo": "karlseguin/typed", "path": "typed.go", "func_name": "StringOr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns a string at the key, or the specified\n// value if it doesn't exist or isn't a string", "docstring_tokens": ["Returns", "a", "string", "at", "the", "key", "or", "the", "specified", "value", "if", "it", "doesn", "t", "exist", "or", "isn", "t", "a", "string"], "sha": "2f542a6ff2d9962d9af4becdddf2e1a724a7d776", "url": "https://github.com/karlseguin/typed/blob/2f542a6ff2d9962d9af4becdddf2e1a724a7d776/typed.go#L246-L251", "partition": "valid"} +{"repo": "karlseguin/typed", "path": "typed.go", "func_name": "StringMust", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns an string or panics", "docstring_tokens": ["Returns", "an", "string", "or", "panics"], "sha": "2f542a6ff2d9962d9af4becdddf2e1a724a7d776", "url": "https://github.com/karlseguin/typed/blob/2f542a6ff2d9962d9af4becdddf2e1a724a7d776/typed.go#L254-L260", "partition": "valid"} +{"repo": "karlseguin/typed", "path": "typed.go", "func_name": "TimeOr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns a time at the key, or the specified\n// value if it doesn't exist or isn't a time", "docstring_tokens": ["Returns", "a", "time", "at", "the", "key", "or", "the", "specified", "value", "if", "it", "doesn", "t", "exist", "or", "isn", "t", "a", "time"], "sha": "2f542a6ff2d9962d9af4becdddf2e1a724a7d776", "url": "https://github.com/karlseguin/typed/blob/2f542a6ff2d9962d9af4becdddf2e1a724a7d776/typed.go#L281-L286", "partition": "valid"} +{"repo": "karlseguin/typed", "path": "typed.go", "func_name": "TimeMust", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns a time.Time or panics", "docstring_tokens": ["Returns", "a", "time", ".", "Time", "or", "panics"], "sha": "2f542a6ff2d9962d9af4becdddf2e1a724a7d776", "url": "https://github.com/karlseguin/typed/blob/2f542a6ff2d9962d9af4becdddf2e1a724a7d776/typed.go#L289-L295", "partition": "valid"} +{"repo": "karlseguin/typed", "path": "typed.go", "func_name": "TimeIf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns an time.time at the key and whether\n// or not the key existed and the value was a time.Time", "docstring_tokens": ["Returns", "an", "time", ".", "time", "at", "the", "key", "and", "whether", "or", "not", "the", "key", "existed", "and", "the", "value", "was", "a", "time", ".", "Time"], "sha": "2f542a6ff2d9962d9af4becdddf2e1a724a7d776", "url": "https://github.com/karlseguin/typed/blob/2f542a6ff2d9962d9af4becdddf2e1a724a7d776/typed.go#L299-L308", "partition": "valid"} +{"repo": "karlseguin/typed", "path": "typed.go", "func_name": "ObjectMust", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns an typed object or panics", "docstring_tokens": ["Returns", "an", "typed", "object", "or", "panics"], "sha": "2f542a6ff2d9962d9af4becdddf2e1a724a7d776", "url": "https://github.com/karlseguin/typed/blob/2f542a6ff2d9962d9af4becdddf2e1a724a7d776/typed.go#L333-L339", "partition": "valid"} +{"repo": "karlseguin/typed", "path": "typed.go", "func_name": "InterfaceOr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns a string at the key, or the specified\n// value if it doesn't exist or isn't a strin", "docstring_tokens": ["Returns", "a", "string", "at", "the", "key", "or", "the", "specified", "value", "if", "it", "doesn", "t", "exist", "or", "isn", "t", "a", "strin"], "sha": "2f542a6ff2d9962d9af4becdddf2e1a724a7d776", "url": "https://github.com/karlseguin/typed/blob/2f542a6ff2d9962d9af4becdddf2e1a724a7d776/typed.go#L363-L368", "partition": "valid"} +{"repo": "karlseguin/typed", "path": "typed.go", "func_name": "InterfaceMust", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns an interface or panics", "docstring_tokens": ["Returns", "an", "interface", "or", "panics"], "sha": "2f542a6ff2d9962d9af4becdddf2e1a724a7d776", "url": "https://github.com/karlseguin/typed/blob/2f542a6ff2d9962d9af4becdddf2e1a724a7d776/typed.go#L371-L377", "partition": "valid"} +{"repo": "karlseguin/typed", "path": "typed.go", "func_name": "InterfaceIf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns an string at the key and whether\n// or not the key existed and the value was an string", "docstring_tokens": ["Returns", "an", "string", "at", "the", "key", "and", "whether", "or", "not", "the", "key", "existed", "and", "the", "value", "was", "an", "string"], "sha": "2f542a6ff2d9962d9af4becdddf2e1a724a7d776", "url": "https://github.com/karlseguin/typed/blob/2f542a6ff2d9962d9af4becdddf2e1a724a7d776/typed.go#L381-L387", "partition": "valid"} +{"repo": "karlseguin/typed", "path": "typed.go", "func_name": "Bools", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns an slice of boolean, or an nil slice", "docstring_tokens": ["Returns", "an", "slice", "of", "boolean", "or", "an", "nil", "slice"], "sha": "2f542a6ff2d9962d9af4becdddf2e1a724a7d776", "url": "https://github.com/karlseguin/typed/blob/2f542a6ff2d9962d9af4becdddf2e1a724a7d776/typed.go#L420-L422", "partition": "valid"} +{"repo": "karlseguin/typed", "path": "typed.go", "func_name": "BoolsOr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns an slice of boolean, or the specified slice", "docstring_tokens": ["Returns", "an", "slice", "of", "boolean", "or", "the", "specified", "slice"], "sha": "2f542a6ff2d9962d9af4becdddf2e1a724a7d776", "url": "https://github.com/karlseguin/typed/blob/2f542a6ff2d9962d9af4becdddf2e1a724a7d776/typed.go#L425-L431", "partition": "valid"} +{"repo": "karlseguin/typed", "path": "typed.go", "func_name": "Ints", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns an slice of ints, or the specified slice\n// Some conversion is done to handle the fact that JSON ints\n// are represented as floats.", "docstring_tokens": ["Returns", "an", "slice", "of", "ints", "or", "the", "specified", "slice", "Some", "conversion", "is", "done", "to", "handle", "the", "fact", "that", "JSON", "ints", "are", "represented", "as", "floats", "."], "sha": "2f542a6ff2d9962d9af4becdddf2e1a724a7d776", "url": "https://github.com/karlseguin/typed/blob/2f542a6ff2d9962d9af4becdddf2e1a724a7d776/typed.go#L461-L463", "partition": "valid"} +{"repo": "karlseguin/typed", "path": "typed.go", "func_name": "Ints64", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns an slice of ints64, or the specified slice\n// Some conversion is done to handle the fact that JSON ints\n// are represented as floats.", "docstring_tokens": ["Returns", "an", "slice", "of", "ints64", "or", "the", "specified", "slice", "Some", "conversion", "is", "done", "to", "handle", "the", "fact", "that", "JSON", "ints", "are", "represented", "as", "floats", "."], "sha": "2f542a6ff2d9962d9af4becdddf2e1a724a7d776", "url": "https://github.com/karlseguin/typed/blob/2f542a6ff2d9962d9af4becdddf2e1a724a7d776/typed.go#L519-L521", "partition": "valid"} +{"repo": "karlseguin/typed", "path": "typed.go", "func_name": "Floats", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns an slice of floats, or a nil slice", "docstring_tokens": ["Returns", "an", "slice", "of", "floats", "or", "a", "nil", "slice"], "sha": "2f542a6ff2d9962d9af4becdddf2e1a724a7d776", "url": "https://github.com/karlseguin/typed/blob/2f542a6ff2d9962d9af4becdddf2e1a724a7d776/typed.go#L577-L579", "partition": "valid"} +{"repo": "karlseguin/typed", "path": "typed.go", "func_name": "Strings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns an slice of strings, or a nil slice", "docstring_tokens": ["Returns", "an", "slice", "of", "strings", "or", "a", "nil", "slice"], "sha": "2f542a6ff2d9962d9af4becdddf2e1a724a7d776", "url": "https://github.com/karlseguin/typed/blob/2f542a6ff2d9962d9af4becdddf2e1a724a7d776/typed.go#L625-L627", "partition": "valid"} +{"repo": "karlseguin/typed", "path": "typed.go", "func_name": "Objects", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns an slice of Typed helpers, or a nil slice", "docstring_tokens": ["Returns", "an", "slice", "of", "Typed", "helpers", "or", "a", "nil", "slice"], "sha": "2f542a6ff2d9962d9af4becdddf2e1a724a7d776", "url": "https://github.com/karlseguin/typed/blob/2f542a6ff2d9962d9af4becdddf2e1a724a7d776/typed.go#L665-L668", "partition": "valid"} +{"repo": "karlseguin/typed", "path": "typed.go", "func_name": "ObjectsIf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns a slice of Typed helpers and true if exists, otherwise; nil and false.", "docstring_tokens": ["Returns", "a", "slice", "of", "Typed", "helpers", "and", "true", "if", "exists", "otherwise", ";", "nil", "and", "false", "."], "sha": "2f542a6ff2d9962d9af4becdddf2e1a724a7d776", "url": "https://github.com/karlseguin/typed/blob/2f542a6ff2d9962d9af4becdddf2e1a724a7d776/typed.go#L671-L699", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/session.go", "func_name": "GetSessions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSessions returns sessions.", "docstring_tokens": ["GetSessions", "returns", "sessions", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/session.go#L26-L48", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/subscribe.go", "func_name": "ObjectChange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ObjectChange subscribes to changes for objects of a given type.", "docstring_tokens": ["ObjectChange", "subscribes", "to", "changes", "for", "objects", "of", "a", "given", "type", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/subscribe.go#L29-L94", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/looper/offering.go", "func_name": "AutoOfferingPopUp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AutoOfferingPopUp creates AgentPreOfferingPopUp jobs for active offerings.\n// Taken into account a current balance of agent ETH. If ETH is not enough to\n// pop up all offerings, then no one of them is popped up. Function calculates\n// the pop up time.", "docstring_tokens": ["AutoOfferingPopUp", "creates", "AgentPreOfferingPopUp", "jobs", "for", "active", "offerings", ".", "Taken", "into", "account", "a", "current", "balance", "of", "agent", "ETH", ".", "If", "ETH", "is", "not", "enough", "to", "pop", "up", "all", "offerings", "then", "no", "one", "of", "them", "is", "popped", "up", ".", "Function", "calculates", "the", "pop", "up", "time", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/looper/offering.go#L25-L46", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "data/types.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON marshals itself.", "docstring_tokens": ["MarshalJSON", "marshals", "itself", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/data/types.go#L22-L30", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "data/types.go", "func_name": "Scan", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Scan deserializes the log topics.", "docstring_tokens": ["Scan", "deserializes", "the", "log", "topics", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/data/types.go#L41-L51", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/worker.go", "func_name": "NewWorker", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewWorker returns new instance of worker.", "docstring_tokens": ["NewWorker", "returns", "new", "instance", "of", "worker", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/worker.go#L65-L98", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "util/log/logger.go", "func_name": "NewLoggerBase", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLoggerBase creates a new LoggerBase.", "docstring_tokens": ["NewLoggerBase", "creates", "a", "new", "LoggerBase", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/util/log/logger.go#L60-L72", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "util/log/logger.go", "func_name": "Log", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Log adds a new log message with a given severity level.", "docstring_tokens": ["Log", "adds", "a", "new", "log", "message", "with", "a", "given", "severity", "level", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/util/log/logger.go#L101-L124", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/account.go", "func_name": "PreAccountAddBalanceApprove", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PreAccountAddBalanceApprove approve balance if amount exists.", "docstring_tokens": ["PreAccountAddBalanceApprove", "approve", "balance", "if", "amount", "exists", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/account.go#L14-L74", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/account.go", "func_name": "PreAccountAddBalance", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PreAccountAddBalance adds balance to psc.", "docstring_tokens": ["PreAccountAddBalance", "adds", "balance", "to", "psc", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/account.go#L77-L106", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/account.go", "func_name": "AfterAccountAddBalance", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AfterAccountAddBalance updates psc and ptc balance of an account.", "docstring_tokens": ["AfterAccountAddBalance", "updates", "psc", "and", "ptc", "balance", "of", "an", "account", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/account.go#L133-L135", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/account.go", "func_name": "AfterAccountReturnBalance", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AfterAccountReturnBalance updates psc and ptc balance of an account.", "docstring_tokens": ["AfterAccountReturnBalance", "updates", "psc", "and", "ptc", "balance", "of", "an", "account", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/account.go#L138-L140", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/account.go", "func_name": "AccountUpdateBalances", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AccountUpdateBalances updates ptc, psc and eth balance values.", "docstring_tokens": ["AccountUpdateBalances", "updates", "ptc", "psc", "and", "eth", "balance", "values", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/account.go#L143-L145", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/account.go", "func_name": "PreAccountReturnBalance", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PreAccountReturnBalance returns from psc to ptc.", "docstring_tokens": ["PreAccountReturnBalance", "returns", "from", "psc", "to", "ptc", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/account.go#L148-L200", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/usage.go", "func_name": "GetOfferingUsage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetOfferingUsage returns total units used for all channels\n// with a given offering.", "docstring_tokens": ["GetOfferingUsage", "returns", "total", "units", "used", "for", "all", "channels", "with", "a", "given", "offering", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/usage.go#L5-L16", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/usage.go", "func_name": "GetProductUsage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetProductUsage returns total units used in all channel\n// of all offerings with given product.", "docstring_tokens": ["GetProductUsage", "returns", "total", "units", "used", "in", "all", "channel", "of", "all", "offerings", "with", "given", "product", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/usage.go#L20-L32", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "nat/upnp.go", "func_name": "AddMapping", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddMapping maps an external port to a local port for a specific\n// service to UPnP interface.", "docstring_tokens": ["AddMapping", "maps", "an", "external", "port", "to", "a", "local", "port", "for", "a", "specific", "service", "to", "UPnP", "interface", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/nat/upnp.go#L30-L41", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "nat/upnp.go", "func_name": "DeleteMapping", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteMapping removes the port mapping to UPnP interface.", "docstring_tokens": ["DeleteMapping", "removes", "the", "port", "mapping", "to", "UPnP", "interface", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/nat/upnp.go#L76-L79", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "pay/client.go", "func_name": "PostCheque", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PostCheque sends a payment cheque to a payment server.", "docstring_tokens": ["PostCheque", "sends", "a", "payment", "cheque", "to", "a", "payment", "server", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/pay/client.go#L117-L125", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "util/tor/client.go", "func_name": "NewHTTPClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewHTTPClient returns a client that speaks to tor open sock.", "docstring_tokens": ["NewHTTPClient", "returns", "a", "client", "that", "speaks", "to", "tor", "open", "sock", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/util/tor/client.go#L11-L23", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "util/rpcsrv/server.go", "func_name": "NewServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewServer creates a new UI server.", "docstring_tokens": ["NewServer", "creates", "a", "new", "UI", "server", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/util/rpcsrv/server.go#L45-L62", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "util/rpcsrv/server.go", "func_name": "AddHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddHandler registers a new RPC handler in a given namespace.", "docstring_tokens": ["AddHandler", "registers", "a", "new", "RPC", "handler", "in", "a", "given", "namespace", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/util/rpcsrv/server.go#L65-L67", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "util/rpcsrv/server.go", "func_name": "ListenAndServe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListenAndServe starts to listen and to serve requests.", "docstring_tokens": ["ListenAndServe", "starts", "to", "listen", "and", "to", "serve", "requests", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/util/rpcsrv/server.go#L70-L77", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "data/recover.go", "func_name": "Recover", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Recover ensures data consistency after unexpected controller's exit.", "docstring_tokens": ["Recover", "ensures", "data", "consistency", "after", "unexpected", "controller", "s", "exit", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/data/recover.go#L10-L16", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "data/db.go", "func_name": "ConnStr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ConnStr composes a data connection string.", "docstring_tokens": ["ConnStr", "composes", "a", "data", "connection", "string", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/data/db.go#L21-L27", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "data/db.go", "func_name": "NewDBFromConnStr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDBFromConnStr connects to db and returns db instance.", "docstring_tokens": ["NewDBFromConnStr", "connects", "to", "db", "and", "returns", "db", "instance", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/data/db.go#L55-L62", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "data/db.go", "func_name": "NewDB", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDB creates a new data connection handle.", "docstring_tokens": ["NewDB", "creates", "a", "new", "data", "connection", "handle", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/data/db.go#L65-L73", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "country/country.go", "func_name": "GetCountry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCountry returns country code by ip.\n// Parses response in JSON format and returns a value of the field.", "docstring_tokens": ["GetCountry", "returns", "country", "code", "by", "ip", ".", "Parses", "response", "in", "JSON", "format", "and", "returns", "a", "value", "of", "the", "field", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/country/country.go#L46-L77", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "agent/somcsrv/endpoint.go", "func_name": "Endpoint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Endpoint returns endpoint msg for a channel with given key.", "docstring_tokens": ["Endpoint", "returns", "endpoint", "msg", "for", "a", "channel", "with", "given", "key", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/agent/somcsrv/endpoint.go#L9-L35", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "pay/server.go", "func_name": "NewServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewServer creates a new pay server.", "docstring_tokens": ["NewServer", "creates", "a", "new", "pay", "server", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/pay/server.go#L35-L46", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "monitor/monitor.go", "func_name": "NewMonitor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMonitor creates new blockchain monitor.", "docstring_tokens": ["NewMonitor", "creates", "new", "blockchain", "monitor", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/monitor/monitor.go#L68-L109", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "monitor/monitor.go", "func_name": "initLastProcessedBlock", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// initLastProcessedBlock calculates last processed block. If user role is\n// client and value of \"eth.event.lastProcessedBlock\" setting is 0, then value\n// of \"eth.event.lastProcessedBlock\" setting is equal the difference between\n// the last Ethereum block and a InitialBlocks value. If InitialBlocks\n// value is 0, then this parameter is ignored.", "docstring_tokens": ["initLastProcessedBlock", "calculates", "last", "processed", "block", ".", "If", "user", "role", "is", "client", "and", "value", "of", "eth", ".", "event", ".", "lastProcessedBlock", "setting", "is", "0", "then", "value", "of", "eth", ".", "event", ".", "lastProcessedBlock", "setting", "is", "equal", "the", "difference", "between", "the", "last", "Ethereum", "block", "and", "a", "InitialBlocks", "value", ".", "If", "InitialBlocks", "value", "is", "0", "then", "this", "parameter", "is", "ignored", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/monitor/monitor.go#L116-L153", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "monitor/monitor.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start starts scanning blockchain for events.", "docstring_tokens": ["Start", "starts", "scanning", "blockchain", "for", "events", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/monitor/monitor.go#L156-L178", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "eth/client.go", "func_name": "newClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newClient creates client for connection to the Ethereum.", "docstring_tokens": ["newClient", "creates", "client", "for", "connection", "to", "the", "Ethereum", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/eth/client.go#L35-L74", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/looper/loop.go", "func_name": "Loop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Loop performs a function that creates new jobs with a certain frequency.\n// If at the moment there is already a similar active job, then such job is\n// ignored. The function works correctly only with jobs for which duplicates\n// are allowed.", "docstring_tokens": ["Loop", "performs", "a", "function", "that", "creates", "new", "jobs", "with", "a", "certain", "frequency", ".", "If", "at", "the", "moment", "there", "is", "already", "a", "similar", "active", "job", "then", "such", "job", "is", "ignored", ".", "The", "function", "works", "correctly", "only", "with", "jobs", "for", "which", "duplicates", "are", "allowed", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/looper/loop.go#L33-L39", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "agent/somcsrv/client.go", "func_name": "Offering", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Offering gets offering message through tor net.", "docstring_tokens": ["Offering", "gets", "offering", "message", "through", "tor", "net", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/agent/somcsrv/client.go#L26-L28", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "agent/somcsrv/client.go", "func_name": "Endpoint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Endpoint gets endpoint message through tor net.", "docstring_tokens": ["Endpoint", "gets", "endpoint", "message", "through", "tor", "net", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/agent/somcsrv/client.go#L31-L33", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "agent/somcsrv/client.go", "func_name": "Ping", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Ping returns an error if remote enpoint cannot be reached.", "docstring_tokens": ["Ping", "returns", "an", "error", "if", "remote", "enpoint", "cannot", "be", "reached", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/agent/somcsrv/client.go#L36-L39", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/eth_tx.go", "func_name": "GetEthTransactions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetEthTransactions returns transactions by related object.", "docstring_tokens": ["GetEthTransactions", "returns", "transactions", "by", "related", "object", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/eth_tx.go#L21-L87", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "messages/crypto.go", "func_name": "AgentSeal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AgentSeal encrypts message using client's public key and packs with\n// agent signature.", "docstring_tokens": ["AgentSeal", "encrypts", "message", "using", "client", "s", "public", "key", "and", "packs", "with", "agent", "signature", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/messages/crypto.go#L15-L28", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "messages/crypto.go", "func_name": "ClientOpen", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ClientOpen decrypts message using client's key and verifies using agent's key.", "docstring_tokens": ["ClientOpen", "decrypts", "message", "using", "client", "s", "key", "and", "verifies", "using", "agent", "s", "key", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/messages/crypto.go#L31-L47", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "messages/crypto.go", "func_name": "PackWithSignature", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PackWithSignature packs message with signature.", "docstring_tokens": ["PackWithSignature", "packs", "message", "with", "signature", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/messages/crypto.go#L50-L57", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "messages/crypto.go", "func_name": "UnpackSignature", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnpackSignature unpacks msg from signature.", "docstring_tokens": ["UnpackSignature", "unpacks", "msg", "from", "signature", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/messages/crypto.go#L60-L64", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "messages/crypto.go", "func_name": "VerifySignature", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// VerifySignature returns true if signature is correct.", "docstring_tokens": ["VerifySignature", "returns", "true", "if", "signature", "is", "correct", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/messages/crypto.go#L67-L69", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "messages/crypto.go", "func_name": "signature", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// signature computes and returns signature.", "docstring_tokens": ["signature", "computes", "and", "returns", "signature", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/messages/crypto.go#L72-L80", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/object.go", "func_name": "GetObject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetObject finds object in a database by id,\n// then returns an object on raw JSON format.", "docstring_tokens": ["GetObject", "finds", "object", "in", "a", "database", "by", "id", "then", "returns", "an", "object", "on", "raw", "JSON", "format", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/object.go#L49-L78", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/object.go", "func_name": "GetObjectByHash", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetObjectByHash finds object in a database by hash,\n// then returns an object on raw JSON format.", "docstring_tokens": ["GetObjectByHash", "finds", "object", "in", "a", "database", "by", "hash", "then", "returns", "an", "object", "on", "raw", "JSON", "format", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/object.go#L92-L121", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "util/rpcsrv/misc.go", "func_name": "ToError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToError converts error into Error pointer.", "docstring_tokens": ["ToError", "converts", "error", "into", "Error", "pointer", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/util/rpcsrv/misc.go#L16-L26", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/auth.go", "func_name": "SetPassword", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetPassword sets the password only on the first call.\n// Returns error if password already exists.", "docstring_tokens": ["SetPassword", "sets", "the", "password", "only", "on", "the", "first", "call", ".", "Returns", "error", "if", "password", "already", "exists", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/auth.go#L13-L46", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/auth.go", "func_name": "UpdatePassword", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdatePassword updates the password.", "docstring_tokens": ["UpdatePassword", "updates", "the", "password", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/auth.go#L49-L93", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/auth.go", "func_name": "GetToken", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetToken returns token if password is correct.", "docstring_tokens": ["GetToken", "returns", "token", "if", "password", "is", "correct", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/auth.go#L169-L185", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/processor.go", "func_name": "NewProcessor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewProcessor creates a new processor.", "docstring_tokens": ["NewProcessor", "creates", "a", "new", "processor", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/processor.go#L28-L35", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "job/queue.go", "func_name": "NewConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewConfig creates a default job queue configuration.", "docstring_tokens": ["NewConfig", "creates", "a", "default", "job", "queue", "configuration", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/job/queue.go#L44-L57", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "job/queue.go", "func_name": "NewQueue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewQueue creates a new job queue.", "docstring_tokens": ["NewQueue", "creates", "a", "new", "job", "queue", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/job/queue.go#L92-L102", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "job/queue.go", "func_name": "AddWithDataAndDelay", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddWithDataAndDelay is convenience method to add a job with given data\n// and delay.", "docstring_tokens": ["AddWithDataAndDelay", "is", "convenience", "method", "to", "add", "a", "job", "with", "given", "data", "and", "delay", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/job/queue.go#L432-L448", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "job/queue.go", "func_name": "AddWithData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddWithData is convenience method to add a job with given data.", "docstring_tokens": ["AddWithData", "is", "convenience", "method", "to", "add", "a", "job", "with", "given", "data", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/job/queue.go#L451-L456", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "job/queue.go", "func_name": "AddSimple", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddSimple is convenience method to add a job.", "docstring_tokens": ["AddSimple", "is", "convenience", "method", "to", "add", "a", "job", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/job/queue.go#L459-L463", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "job/queue.go", "func_name": "AddWithDelay", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddWithDelay is convenience method to add a job with given data delay.", "docstring_tokens": ["AddWithDelay", "is", "convenience", "method", "to", "add", "a", "job", "with", "given", "data", "delay", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/job/queue.go#L466-L471", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "job/queue.go", "func_name": "Subscribe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Subscribe adds a subscription to job result notifications for given keys.\n// Each subscription key can be be a job type or a job related id. SubID is\n// used to distinguish between different subscriptions.", "docstring_tokens": ["Subscribe", "adds", "a", "subscription", "to", "job", "result", "notifications", "for", "given", "keys", ".", "Each", "subscription", "key", "can", "be", "be", "a", "job", "type", "or", "a", "job", "related", "id", ".", "SubID", "is", "used", "to", "distinguish", "between", "different", "subscriptions", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/job/queue.go#L493-L508", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "job/queue.go", "func_name": "Unsubscribe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Unsubscribe removes a subscription from job result notifications for given\n// ids of related objects. SubID is used to distinguish between different\n// subscriptions to a same related object.", "docstring_tokens": ["Unsubscribe", "removes", "a", "subscription", "from", "job", "result", "notifications", "for", "given", "ids", "of", "related", "objects", ".", "SubID", "is", "used", "to", "distinguish", "between", "different", "subscriptions", "to", "a", "same", "related", "object", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/job/queue.go#L534-L546", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/channel.go", "func_name": "TopUpChannel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TopUpChannel initiates JobClientPreChannelTopUp job.", "docstring_tokens": ["TopUpChannel", "initiates", "JobClientPreChannelTopUp", "job", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/channel.go#L78-L101", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/channel.go", "func_name": "ChangeChannelStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ChangeChannelStatus updates channel state.", "docstring_tokens": ["ChangeChannelStatus", "updates", "channel", "state", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/channel.go#L120-L180", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/channel.go", "func_name": "GetAgentChannels", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAgentChannels gets channels for agent.", "docstring_tokens": ["GetAgentChannels", "gets", "channels", "for", "agent", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/channel.go#L183-L202", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/channel.go", "func_name": "GetChannelsUsage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetChannelsUsage returns detailed usage on channels.", "docstring_tokens": ["GetChannelsUsage", "returns", "detailed", "usage", "on", "channels", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/channel.go#L205-L214", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/channel.go", "func_name": "GetClientChannels", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetClientChannels gets client channel information.", "docstring_tokens": ["GetClientChannels", "gets", "client", "channel", "information", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/channel.go#L311-L339", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "data/settings.go", "func_name": "ReadSetting", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadSetting reads value of a given setting.", "docstring_tokens": ["ReadSetting", "reads", "value", "of", "a", "given", "setting", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/data/settings.go#L28-L35", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "data/settings.go", "func_name": "ReadUintSetting", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadUintSetting reads value of a given uint setting.", "docstring_tokens": ["ReadUintSetting", "reads", "value", "of", "a", "given", "uint", "setting", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/data/settings.go#L42-L54", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "data/settings.go", "func_name": "ReadBoolSetting", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadBoolSetting reads value of a given bool setting.", "docstring_tokens": ["ReadBoolSetting", "reads", "value", "of", "a", "given", "bool", "setting", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/data/settings.go#L57-L69", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/channel.go", "func_name": "SuspendChannel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SuspendChannel tries to suspend a given channel.", "docstring_tokens": ["SuspendChannel", "tries", "to", "suspend", "a", "given", "channel", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/channel.go#L108-L119", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/channel.go", "func_name": "ActivateChannel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ActivateChannel tries to activate a given channel.", "docstring_tokens": ["ActivateChannel", "tries", "to", "activate", "a", "given", "channel", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/channel.go#L122-L133", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/channel.go", "func_name": "TerminateChannel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TerminateChannel tries to terminate a given channel.", "docstring_tokens": ["TerminateChannel", "tries", "to", "terminate", "a", "given", "channel", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/channel.go#L136-L147", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/account.go", "func_name": "ExportPrivateKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ExportPrivateKey returns a private key in base64 encoding by account id.", "docstring_tokens": ["ExportPrivateKey", "returns", "a", "private", "key", "in", "base64", "encoding", "by", "account", "id", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/account.go#L42-L66", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/account.go", "func_name": "GetAccounts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAccounts returns accounts.", "docstring_tokens": ["GetAccounts", "returns", "accounts", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/account.go#L69-L89", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/account.go", "func_name": "GenerateAccount", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GenerateAccount generates new private key and creates new account.", "docstring_tokens": ["GenerateAccount", "generates", "new", "private", "key", "and", "creates", "new", "account", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/account.go#L172-L190", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/account.go", "func_name": "ImportAccountFromHex", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ImportAccountFromHex imports private key from hex, creates account\n// and initiates JobAccountUpdateBalances job.", "docstring_tokens": ["ImportAccountFromHex", "imports", "private", "key", "from", "hex", "creates", "account", "and", "initiates", "JobAccountUpdateBalances", "job", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/account.go#L194-L213", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/account.go", "func_name": "ImportAccountFromJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ImportAccountFromJSON imports private key from JSON blob with password,\n// creates account and initiates JobAccountUpdateBalances job.", "docstring_tokens": ["ImportAccountFromJSON", "imports", "private", "key", "from", "JSON", "blob", "with", "password", "creates", "account", "and", "initiates", "JobAccountUpdateBalances", "job", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/account.go#L217-L239", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/account.go", "func_name": "TransferTokens", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TransferTokens initiates JobPreAccountAddBalanceApprove\n// or JobPreAccountReturnBalance job depending on the direction of the transfer.", "docstring_tokens": ["TransferTokens", "initiates", "JobPreAccountAddBalanceApprove", "or", "JobPreAccountReturnBalance", "job", "depending", "on", "the", "direction", "of", "the", "transfer", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/account.go#L243-L287", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/account.go", "func_name": "UpdateBalance", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateBalance initiates JobAccountUpdateBalances job.", "docstring_tokens": ["UpdateBalance", "initiates", "JobAccountUpdateBalances", "job", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/account.go#L290-L313", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/account.go", "func_name": "UpdateAccount", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateAccount updates an account.", "docstring_tokens": ["UpdateAccount", "updates", "an", "account", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/account.go#L316-L341", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/eth_log.go", "func_name": "GetLastBlockNumber", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLastBlockNumber returns last known block number.", "docstring_tokens": ["GetLastBlockNumber", "returns", "last", "known", "block", "number", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/eth_log.go#L9-L32", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "sess/product.go", "func_name": "GetEndpoint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetEndpoint returns an endpoint for a given client key.", "docstring_tokens": ["GetEndpoint", "returns", "an", "endpoint", "for", "a", "given", "client", "key", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/sess/product.go#L14-L38", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "sess/product.go", "func_name": "SetProductConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetProductConfig sets product configuration.", "docstring_tokens": ["SetProductConfig", "sets", "product", "configuration", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/sess/product.go#L77-L116", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "util/log/file_logger.go", "func_name": "NewWriterLogger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewWriterLogger creates a new io.Writer based logger.", "docstring_tokens": ["NewWriterLogger", "creates", "a", "new", "io", ".", "Writer", "based", "logger", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/util/log/file_logger.go#L35-L52", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "util/log/file_logger.go", "func_name": "NewFileLogger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewFileLogger creates a new file logger.", "docstring_tokens": ["NewFileLogger", "creates", "a", "new", "file", "logger", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/util/log/file_logger.go#L76-L96", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "client/somc/client.go", "func_name": "NewClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClient returns new client instance based given somc type and data.", "docstring_tokens": ["NewClient", "returns", "new", "client", "instance", "based", "given", "somc", "type", "and", "data", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/client/somc/client.go#L35-L46", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "nat/nat.go", "func_name": "Parse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Parse parses a NAT interface description.", "docstring_tokens": ["Parse", "parses", "a", "NAT", "interface", "description", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/nat/nat.go#L40-L51", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "nat/nat.go", "func_name": "Map", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Map adds a port mapping on NAT interface and keeps it alive until interface\n// is closed.", "docstring_tokens": ["Map", "adds", "a", "port", "mapping", "on", "NAT", "interface", "and", "keeps", "it", "alive", "until", "interface", "is", "closed", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/nat/nat.go#L55-L99", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "nat/nat.go", "func_name": "AddMapping", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddMapping maps an external port to a local port for a specific\n// service.", "docstring_tokens": ["AddMapping", "maps", "an", "external", "port", "to", "a", "local", "port", "for", "a", "specific", "service", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/nat/nat.go#L139-L145", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "nat/nat.go", "func_name": "DeleteMapping", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteMapping removes the port mapping.", "docstring_tokens": ["DeleteMapping", "removes", "the", "port", "mapping", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/nat/nat.go#L148-L153", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "statik/misc.go", "func_name": "ReadFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadFile reads a file content from the embedded filesystem.", "docstring_tokens": ["ReadFile", "reads", "a", "file", "content", "from", "the", "embedded", "filesystem", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/statik/misc.go#L10-L28", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/userrole.go", "func_name": "GetUserRole", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetUserRole returns user role.", "docstring_tokens": ["GetUserRole", "returns", "user", "role", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/userrole.go#L4-L13", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/handler.go", "func_name": "NewHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewHandler creates a new handler.", "docstring_tokens": ["NewHandler", "creates", "a", "new", "handler", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/handler.go#L28-L48", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "eth/backend.go", "func_name": "NewBackend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewBackend returns eth back implementation.", "docstring_tokens": ["NewBackend", "returns", "eth", "back", "implementation", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/eth/backend.go#L102-L115", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "eth/backend.go", "func_name": "addTimeout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// addTimeout adds timeout to context.", "docstring_tokens": ["addTimeout", "adds", "timeout", "to", "context", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/eth/backend.go#L150-L157", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "eth/backend.go", "func_name": "PendingNonceAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PendingNonceAt returns the account nonce of the given account in the pending state.\n// This is the nonce that should be used for the next transaction.", "docstring_tokens": ["PendingNonceAt", "returns", "the", "account", "nonce", "of", "the", "given", "account", "in", "the", "pending", "state", ".", "This", "is", "the", "nonce", "that", "should", "be", "used", "for", "the", "next", "transaction", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/eth/backend.go#L201-L205", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "eth/backend.go", "func_name": "SuggestGasPrice", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SuggestGasPrice retrieves the currently suggested gas price to allow a timely\n// execution of a transaction.", "docstring_tokens": ["SuggestGasPrice", "retrieves", "the", "currently", "suggested", "gas", "price", "to", "allow", "a", "timely", "execution", "of", "a", "transaction", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/eth/backend.go#L223-L234", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "eth/backend.go", "func_name": "EstimateGas", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EstimateGas tries to estimate the gas needed to execute a specific\n// transaction based on the current pending state of the backend blockchain.", "docstring_tokens": ["EstimateGas", "tries", "to", "estimate", "the", "gas", "needed", "to", "execute", "a", "specific", "transaction", "based", "on", "the", "current", "pending", "state", "of", "the", "backend", "blockchain", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/eth/backend.go#L238-L248", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "eth/backend.go", "func_name": "CooperativeClose", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CooperativeClose calls cooperativeClose method of Privatix service contract.", "docstring_tokens": ["CooperativeClose", "calls", "cooperativeClose", "method", "of", "Privatix", "service", "contract", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/eth/backend.go#L251-L265", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "eth/backend.go", "func_name": "GetTransactionByHash", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TransactionByHash returns the transaction with the given hash.", "docstring_tokens": ["TransactionByHash", "returns", "the", "transaction", "with", "the", "given", "hash", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/eth/backend.go#L268-L278", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "eth/backend.go", "func_name": "RegisterServiceOffering", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterServiceOffering calls registerServiceOffering method of Privatix\n// service contract.", "docstring_tokens": ["RegisterServiceOffering", "calls", "registerServiceOffering", "method", "of", "Privatix", "service", "contract", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/eth/backend.go#L282-L298", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "eth/backend.go", "func_name": "PTCBalanceOf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PTCBalanceOf calls balanceOf method of Privatix token contract.", "docstring_tokens": ["PTCBalanceOf", "calls", "balanceOf", "method", "of", "Privatix", "token", "contract", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/eth/backend.go#L301-L313", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "eth/backend.go", "func_name": "PTCIncreaseApproval", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PTCIncreaseApproval calls increaseApproval method of Privatix token contract.", "docstring_tokens": ["PTCIncreaseApproval", "calls", "increaseApproval", "method", "of", "Privatix", "token", "contract", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/eth/backend.go#L316-L328", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "eth/backend.go", "func_name": "PSCBalanceOf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PSCBalanceOf calls balanceOf method of Privatix service contract.", "docstring_tokens": ["PSCBalanceOf", "calls", "balanceOf", "method", "of", "Privatix", "service", "contract", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/eth/backend.go#L331-L343", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "eth/backend.go", "func_name": "PSCAddBalanceERC20", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PSCAddBalanceERC20 calls addBalanceERC20 of Privatix service contract.", "docstring_tokens": ["PSCAddBalanceERC20", "calls", "addBalanceERC20", "of", "Privatix", "service", "contract", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/eth/backend.go#L346-L358", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "eth/backend.go", "func_name": "PSCGetOfferingInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PSCGetOfferingInfo calls getOfferingInfo of Privatix service contract.", "docstring_tokens": ["PSCGetOfferingInfo", "calls", "getOfferingInfo", "of", "Privatix", "service", "contract", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/eth/backend.go#L361-L378", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "eth/backend.go", "func_name": "PSCGetChannelInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PSCGetChannelInfo calls getChannelInfo method of Privatix service contract.", "docstring_tokens": ["PSCGetChannelInfo", "calls", "getChannelInfo", "method", "of", "Privatix", "service", "contract", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/eth/backend.go#L381-L390", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "eth/backend.go", "func_name": "EthBalanceAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EthBalanceAt returns the wei balance of the given account.", "docstring_tokens": ["EthBalanceAt", "returns", "the", "wei", "balance", "of", "the", "given", "account", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/eth/backend.go#L460-L466", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "eth/backend.go", "func_name": "PSCSettle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PSCSettle calls settle method of Privatix service contract.", "docstring_tokens": ["PSCSettle", "calls", "settle", "method", "of", "Privatix", "service", "contract", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/eth/backend.go#L469-L483", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "eth/backend.go", "func_name": "PSCRemoveServiceOffering", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PSCRemoveServiceOffering calls removeServiceOffering method of Privatix\n// service contract.", "docstring_tokens": ["PSCRemoveServiceOffering", "calls", "removeServiceOffering", "method", "of", "Privatix", "service", "contract", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/eth/backend.go#L487-L500", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "eth/backend.go", "func_name": "PSCPopupServiceOffering", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PSCPopupServiceOffering calls popupServiceOffering method of Privatix\n// service contract.", "docstring_tokens": ["PSCPopupServiceOffering", "calls", "popupServiceOffering", "method", "of", "Privatix", "service", "contract", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/eth/backend.go#L504-L517", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "eth/backend.go", "func_name": "FilterLogs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FilterLogs executes a Ethereum filter query.", "docstring_tokens": ["FilterLogs", "executes", "a", "Ethereum", "filter", "query", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/eth/backend.go#L520-L523", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "eth/backend.go", "func_name": "HeaderByNumber", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HeaderByNumber returns a Ethereum block header from the current canonical\n// chain. If number is nil, the latest known header is returned.", "docstring_tokens": ["HeaderByNumber", "returns", "a", "Ethereum", "block", "header", "from", "the", "current", "canonical", "chain", ".", "If", "number", "is", "nil", "the", "latest", "known", "header", "is", "returned", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/eth/backend.go#L527-L530", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "eth/backend.go", "func_name": "PTCAddress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PTCAddress returns Privatix token contract address.", "docstring_tokens": ["PTCAddress", "returns", "Privatix", "token", "contract", "address", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/eth/backend.go#L533-L535", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "eth/backend.go", "func_name": "PSCAddress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PSCAddress returns Privatix service contract address.", "docstring_tokens": ["PSCAddress", "returns", "Privatix", "service", "contract", "address", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/eth/backend.go#L538-L540", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "agent/somcsrv/handler.go", "func_name": "NewHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewHandler creates a new RPC handler.", "docstring_tokens": ["NewHandler", "creates", "a", "new", "RPC", "handler", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/agent/somcsrv/handler.go#L16-L18", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/misc.go", "func_name": "keyFromChannelData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// keyFromChannelData returns the unique channel identifier\n// used in a Privatix Service Contract.", "docstring_tokens": ["keyFromChannelData", "returns", "the", "unique", "channel", "identifier", "used", "in", "a", "Privatix", "Service", "Contract", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/misc.go#L239-L259", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/agent.go", "func_name": "AgentAfterChannelCreate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AgentAfterChannelCreate registers client and creates pre service create job.", "docstring_tokens": ["AgentAfterChannelCreate", "registers", "client", "and", "creates", "pre", "service", "create", "job", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/agent.go#L25-L106", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/agent.go", "func_name": "AgentAfterChannelTopUp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AgentAfterChannelTopUp updates deposit of a channel.", "docstring_tokens": ["AgentAfterChannelTopUp", "updates", "deposit", "of", "a", "channel", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/agent.go#L109-L111", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/agent.go", "func_name": "AgentAfterUncooperativeCloseRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AgentAfterUncooperativeCloseRequest sets channel's status to challenge period.", "docstring_tokens": ["AgentAfterUncooperativeCloseRequest", "sets", "channel", "s", "status", "to", "challenge", "period", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/agent.go#L114-L141", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/agent.go", "func_name": "AgentAfterUncooperativeClose", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AgentAfterUncooperativeClose marks channel closed uncoop.", "docstring_tokens": ["AgentAfterUncooperativeClose", "marks", "channel", "closed", "uncoop", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/agent.go#L161-L198", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/agent.go", "func_name": "AgentAfterCooperativeClose", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AgentAfterCooperativeClose marks channel as closed coop.", "docstring_tokens": ["AgentAfterCooperativeClose", "marks", "channel", "as", "closed", "coop", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/agent.go#L201-L230", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/agent.go", "func_name": "AgentPreServiceSuspend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AgentPreServiceSuspend marks service as suspended.", "docstring_tokens": ["AgentPreServiceSuspend", "marks", "service", "as", "suspended", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/agent.go#L233-L238", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/agent.go", "func_name": "AgentPreServiceUnsuspend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AgentPreServiceUnsuspend marks service as active.", "docstring_tokens": ["AgentPreServiceUnsuspend", "marks", "service", "as", "active", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/agent.go#L241-L246", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/agent.go", "func_name": "AgentPreServiceTerminate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AgentPreServiceTerminate terminates the service.", "docstring_tokens": ["AgentPreServiceTerminate", "terminates", "the", "service", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/agent.go#L249-L262", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/agent.go", "func_name": "AgentAfterOfferingMsgBCPublish", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AgentAfterOfferingMsgBCPublish updates offering status and creates\n// somc publish job.", "docstring_tokens": ["AgentAfterOfferingMsgBCPublish", "updates", "offering", "status", "and", "creates", "somc", "publish", "job", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/agent.go#L606-L636", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/agent.go", "func_name": "AgentAfterOfferingDelete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AgentAfterOfferingDelete set offering status to `remove`", "docstring_tokens": ["AgentAfterOfferingDelete", "set", "offering", "status", "to", "remove"], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/agent.go#L639-L661", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/agent.go", "func_name": "AgentPreOfferingDelete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AgentPreOfferingDelete calls psc remove an offering.", "docstring_tokens": ["AgentPreOfferingDelete", "calls", "psc", "remove", "an", "offering", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/agent.go#L664-L720", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/agent.go", "func_name": "checkInPeriod", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// checkInPeriod checks an offering being in period specified by periodKey.", "docstring_tokens": ["checkInPeriod", "checks", "an", "offering", "being", "in", "period", "specified", "by", "periodKey", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/agent.go#L749-L772", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/agent.go", "func_name": "AgentPreOfferingPopUp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AgentPreOfferingPopUp pop ups an offering.", "docstring_tokens": ["AgentPreOfferingPopUp", "pop", "ups", "an", "offering", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/agent.go#L792-L854", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/agent.go", "func_name": "AgentAfterOfferingPopUp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AgentAfterOfferingPopUp updates the block number\n// when the offering was updated.", "docstring_tokens": ["AgentAfterOfferingPopUp", "updates", "the", "block", "number", "when", "the", "offering", "was", "updated", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/agent.go#L858-L885", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "version/version.go", "func_name": "Print", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Print prints version and completes the program.", "docstring_tokens": ["Print", "prints", "version", "and", "completes", "the", "program", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/version/version.go#L13-L18", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "util/errors/error.go", "func_name": "Error", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Error returns an error message of a given error.", "docstring_tokens": ["Error", "returns", "an", "error", "message", "of", "a", "given", "error", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/util/errors/error.go#L11-L16", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "util/errors/error.go", "func_name": "Message", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Message returns an error message from a given error code.", "docstring_tokens": ["Message", "returns", "an", "error", "message", "from", "a", "given", "error", "code", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/util/errors/error.go#L41-L44", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "util/srv/response.go", "func_name": "RespondResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RespondResult sends a response with a given result.", "docstring_tokens": ["RespondResult", "sends", "a", "response", "with", "a", "given", "result", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/util/srv/response.go#L31-L42", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "util/srv/response.go", "func_name": "RespondError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RespondError sends a response with a given error.", "docstring_tokens": ["RespondError", "sends", "a", "response", "with", "a", "given", "error", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/util/srv/response.go#L45-L47", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "pay/pay.go", "func_name": "handlePay", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handlePay handles clients balance proof informations.", "docstring_tokens": ["handlePay", "handles", "clients", "balance", "proof", "informations", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/pay/pay.go#L22-L50", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "monitor/producer.go", "func_name": "getOpenBlockNumber", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getOpenBlockNumber extracts the Open_block_number field of a given\n// channel-related EthLog. Returns false in case it failed, i.e.\n// the event has no such field.", "docstring_tokens": ["getOpenBlockNumber", "extracts", "the", "Open_block_number", "field", "of", "a", "given", "channel", "-", "related", "EthLog", ".", "Returns", "false", "in", "case", "it", "failed", "i", ".", "e", ".", "the", "event", "has", "no", "such", "field", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/monitor/producer.go#L329-L351", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "agent/somcsrv/offering.go", "func_name": "Offering", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Offering returns offerings raw msg with given hash.", "docstring_tokens": ["Offering", "returns", "offerings", "raw", "msg", "with", "given", "hash", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/agent/somcsrv/offering.go#L6-L18", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/handlers/job.go", "func_name": "HandlersMap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HandlersMap returns handlers map needed to construct job queue.", "docstring_tokens": ["HandlersMap", "returns", "handlers", "map", "needed", "to", "construct", "job", "queue", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/handlers/job.go#L10-L58", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "data/migration/migration.go", "func_name": "Version", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Version returns the version of the database schema.", "docstring_tokens": ["Version", "returns", "the", "version", "of", "the", "database", "schema", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/data/migration/migration.go#L18-L25", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "data/migration/migration.go", "func_name": "Migrate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Migrate executes migration scripts.", "docstring_tokens": ["Migrate", "executes", "migration", "scripts", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/data/migration/migration.go#L28-L49", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "agent/bill/monitor.go", "func_name": "NewMonitor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMonitor creates new instance of billing monitor.\n// 'interval' specifies how often channels checks must be performed.", "docstring_tokens": ["NewMonitor", "creates", "new", "instance", "of", "billing", "monitor", ".", "interval", "specifies", "how", "often", "channels", "checks", "must", "be", "performed", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/agent/bill/monitor.go#L44-L56", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "agent/bill/monitor.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run begins monitoring of channels.\n// In case of error - doesn't restarts automatically.", "docstring_tokens": ["Run", "begins", "monitoring", "of", "channels", ".", "In", "case", "of", "error", "-", "doesn", "t", "restarts", "automatically", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/agent/bill/monitor.go#L60-L70", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "agent/bill/monitor.go", "func_name": "VerifyBillingLags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// VerifyBillingLags checks all active channels for billing lags,\n// and schedules suspending of those, who are suffering from billing lags.", "docstring_tokens": ["VerifyBillingLags", "checks", "all", "active", "channels", "for", "billing", "lags", "and", "schedules", "suspending", "of", "those", "who", "are", "suffering", "from", "billing", "lags", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/agent/bill/monitor.go#L133-L159", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "agent/bill/monitor.go", "func_name": "VerifySuspendedChannelsAndTryToUnsuspend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// VerifySuspendedChannelsAndTryToUnsuspend scans all supsended channels,\n// and checks if all conditions are met to unsuspend them.\n// Is so - schedules task for appropriate channel unsuspending.", "docstring_tokens": ["VerifySuspendedChannelsAndTryToUnsuspend", "scans", "all", "supsended", "channels", "and", "checks", "if", "all", "conditions", "are", "met", "to", "unsuspend", "them", ".", "Is", "so", "-", "schedules", "task", "for", "appropriate", "channel", "unsuspending", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/agent/bill/monitor.go#L164-L189", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "agent/bill/monitor.go", "func_name": "VerifyChannelsForInactivity", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// VerifyChannelsForInactivity scans all channels, that are not terminated,\n// and terminates those of them, who are staying inactive too long.", "docstring_tokens": ["VerifyChannelsForInactivity", "scans", "all", "channels", "that", "are", "not", "terminated", "and", "terminates", "those", "of", "them", "who", "are", "staying", "inactive", "too", "long", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/agent/bill/monitor.go#L193-L211", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "agent/bill/monitor.go", "func_name": "VerifySuspendedChannelsAndTryToTerminate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// VerifySuspendedChannelsAndTryToTerminate scans all suspended channels,\n// and terminates those of them, who are staying suspended too long.", "docstring_tokens": ["VerifySuspendedChannelsAndTryToTerminate", "scans", "all", "suspended", "channels", "and", "terminates", "those", "of", "them", "who", "are", "staying", "suspended", "too", "long", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/agent/bill/monitor.go#L215-L230", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "data/log/logger.go", "func_name": "NewLogger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLogger creates a new database logger.", "docstring_tokens": ["NewLogger", "creates", "a", "new", "database", "logger", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/data/log/logger.go#L31-L41", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "eth/common.go", "func_name": "BalanceClosingHash", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BalanceClosingHash computes balance message hash.", "docstring_tokens": ["BalanceClosingHash", "computes", "balance", "message", "hash", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/eth/common.go#L11-L26", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "nat/run.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run matches and opens external network ports.", "docstring_tokens": ["Run", "matches", "and", "opens", "external", "network", "ports", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/nat/run.go#L15-L67", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "eth/util/util.go", "func_name": "RecoverPubKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RecoverPubKey recover public key from signature values.", "docstring_tokens": ["RecoverPubKey", "recover", "public", "key", "from", "signature", "values", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/eth/util/util.go#L11-L25", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/template.go", "func_name": "GetTemplates", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTemplates returns templates.", "docstring_tokens": ["GetTemplates", "returns", "templates", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/template.go#L15-L47", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/template.go", "func_name": "CreateTemplate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateTemplate creates template.", "docstring_tokens": ["CreateTemplate", "creates", "template", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/template.go#L64-L87", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/product.go", "func_name": "CreateProduct", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateProduct creates new product.", "docstring_tokens": ["CreateProduct", "creates", "new", "product", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/product.go#L9-L29", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/product.go", "func_name": "UpdateProduct", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateProduct updates a product.", "docstring_tokens": ["UpdateProduct", "updates", "a", "product", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/product.go#L32-L65", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/product.go", "func_name": "GetProducts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetProducts returns all products available to the agent.", "docstring_tokens": ["GetProducts", "returns", "all", "products", "available", "to", "the", "agent", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/product.go#L75-L96", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "sess/handler.go", "func_name": "NewHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewHandler creates a new session handler.", "docstring_tokens": ["NewHandler", "creates", "a", "new", "session", "handler", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/sess/handler.go#L20-L29", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "data/account.go", "func_name": "EncryptedKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EncryptedKey returns encrypted keystore.Key in base64.", "docstring_tokens": ["EncryptedKey", "returns", "encrypted", "keystore", ".", "Key", "in", "base64", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/data/account.go#L15-L26", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "data/command.go", "func_name": "ExecuteCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ExecuteCommand executes commands to manage database\n// db-create - command to create database\n// db-migrate - command to execute migration scripts\n// db-init-data - command to initialize database by default values\n// db-version - command to print the version of the database schema.", "docstring_tokens": ["ExecuteCommand", "executes", "commands", "to", "manage", "database", "db", "-", "create", "-", "command", "to", "create", "database", "db", "-", "migrate", "-", "command", "to", "execute", "migration", "scripts", "db", "-", "init", "-", "data", "-", "command", "to", "initialize", "database", "by", "default", "values", "db", "-", "version", "-", "command", "to", "print", "the", "version", "of", "the", "database", "schema", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/data/command.go#L26-L62", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "nat/pmp.go", "func_name": "AddMapping", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddMapping maps an external port to a local port for a specific\n// service to NAT-PMP interface.", "docstring_tokens": ["AddMapping", "maps", "an", "external", "port", "to", "a", "local", "port", "for", "a", "specific", "service", "to", "NAT", "-", "PMP", "interface", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/nat/pmp.go#L24-L32", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "nat/pmp.go", "func_name": "DeleteMapping", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteMapping removes the port mapping to NAT-PMP interface.", "docstring_tokens": ["DeleteMapping", "removes", "the", "port", "mapping", "to", "NAT", "-", "PMP", "interface", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/nat/pmp.go#L35-L38", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "client/bill/monitor.go", "func_name": "NewMonitor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMonitor creates a new client billing monitor.", "docstring_tokens": ["NewMonitor", "creates", "a", "new", "client", "billing", "monitor", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/client/bill/monitor.go#L60-L71", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/income.go", "func_name": "GetOfferingIncome", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetOfferingIncome returns total receipt balance from all channels of\n// offering with given id.", "docstring_tokens": ["GetOfferingIncome", "returns", "total", "receipt", "balance", "from", "all", "channels", "of", "offering", "with", "given", "id", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/income.go#L5-L14", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/income.go", "func_name": "GetProductIncome", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetProductIncome returns total receipt balance from all channels of all\n// offerings with given product id.", "docstring_tokens": ["GetProductIncome", "returns", "total", "receipt", "balance", "from", "all", "channels", "of", "all", "offerings", "with", "given", "product", "id", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/income.go#L18-L29", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/income.go", "func_name": "GetTotalIncome", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTotalIncome returns total receipt balance from all channels.", "docstring_tokens": ["GetTotalIncome", "returns", "total", "receipt", "balance", "from", "all", "channels", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/income.go#L32-L38", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "data/migration/00001_create_schema.go", "func_name": "Up00001", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Up00001 will be executed as part of a forward migration.", "docstring_tokens": ["Up00001", "will", "be", "executed", "as", "part", "of", "a", "forward", "migration", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/data/migration/00001_create_schema.go#L15-L21", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/setting.go", "func_name": "GetSettings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSettings returns settings.", "docstring_tokens": ["GetSettings", "returns", "settings", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/setting.go#L25-L48", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/setting.go", "func_name": "UpdateSettings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateSettings updates settings.", "docstring_tokens": ["UpdateSettings", "updates", "settings", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/setting.go#L51-L101", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "util/validation.go", "func_name": "IsIPv4", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsIPv4 checks if this is a valid IPv4", "docstring_tokens": ["IsIPv4", "checks", "if", "this", "is", "a", "valid", "IPv4"], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/util/validation.go#L15-L18", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "util/validation.go", "func_name": "IsHostname", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsHostname checks if this is a hostname", "docstring_tokens": ["IsHostname", "checks", "if", "this", "is", "a", "hostname"], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/util/validation.go#L21-L27", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "util/validation.go", "func_name": "IsNetPort", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsNetPort checks if this is a valid net port", "docstring_tokens": ["IsNetPort", "checks", "if", "this", "is", "a", "valid", "net", "port"], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/util/validation.go#L30-L36", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "util/validation.go", "func_name": "IsTLSCert", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsTLSCert if block is one or more\n// TLS certificates then function returns true", "docstring_tokens": ["IsTLSCert", "if", "block", "is", "one", "or", "more", "TLS", "certificates", "then", "function", "returns", "true"], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/util/validation.go#L40-L63", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "util/validation.go", "func_name": "ValidateJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidateJSON validates a given JSON against a given schema.", "docstring_tokens": ["ValidateJSON", "validates", "a", "given", "JSON", "against", "a", "given", "schema", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/util/validation.go#L66-L71", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "eth/config.go", "func_name": "NewConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewConfig creates a default Ethereum client configuration.", "docstring_tokens": ["NewConfig", "creates", "a", "default", "Ethereum", "client", "configuration", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/eth/config.go#L25-L38", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "util/misc.go", "func_name": "ReadJSONFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadJSONFile reads and parses a JSON file filling a given data instance.", "docstring_tokens": ["ReadJSONFile", "reads", "and", "parses", "a", "JSON", "file", "filling", "a", "given", "data", "instance", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/util/misc.go#L19-L27", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "util/misc.go", "func_name": "WriteJSONFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteJSONFile converts a given data instance to JSON and writes it to file.", "docstring_tokens": ["WriteJSONFile", "converts", "a", "given", "data", "instance", "to", "JSON", "and", "writes", "it", "to", "file", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/util/misc.go#L30-L40", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "util/misc.go", "func_name": "IsUUID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsUUID checks if a given string is a UUID.", "docstring_tokens": ["IsUUID", "checks", "if", "a", "given", "string", "is", "a", "UUID", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/util/misc.go#L48-L51", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "util/misc.go", "func_name": "ExeDirJoin", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ExeDirJoin composes a file name relative to a running executable.", "docstring_tokens": ["ExeDirJoin", "composes", "a", "file", "name", "relative", "to", "a", "running", "executable", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/util/misc.go#L54-L61", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "util/misc.go", "func_name": "RootPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RootPath returns a path of the root package.", "docstring_tokens": ["RootPath", "returns", "a", "path", "of", "the", "root", "package", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/util/misc.go#L64-L70", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "util/misc.go", "func_name": "Caller", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Caller returns a caller's call location. If F1 calls F2 which in its turn\n// calls Caller, then this function will return a location within F1 where it\n// calls F2.", "docstring_tokens": ["Caller", "returns", "a", "caller", "s", "call", "location", ".", "If", "F1", "calls", "F2", "which", "in", "its", "turn", "calls", "Caller", "then", "this", "function", "will", "return", "a", "location", "within", "F1", "where", "it", "calls", "F2", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/util/misc.go#L75-L87", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "util/misc.go", "func_name": "CheckConnection", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CheckConnection connects to the specified host on the specified port.\n// If the connection is successful then return true.", "docstring_tokens": ["CheckConnection", "connects", "to", "the", "specified", "host", "on", "the", "specified", "port", ".", "If", "the", "connection", "is", "successful", "then", "return", "true", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/util/misc.go#L96-L104", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/client.go", "func_name": "ClientAfterChannelCreate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ClientAfterChannelCreate activates channel and triggers endpoint retrieval.", "docstring_tokens": ["ClientAfterChannelCreate", "activates", "channel", "and", "triggers", "endpoint", "retrieval", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/client.go#L245-L311", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/client.go", "func_name": "ClientEndpointCreate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ClientEndpointCreate decodes endpoint message, saves it in the DB and\n// triggers product configuration.", "docstring_tokens": ["ClientEndpointCreate", "decodes", "endpoint", "message", "saves", "it", "in", "the", "DB", "and", "triggers", "product", "configuration", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/client.go#L363-L439", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/client.go", "func_name": "ClientAfterUncooperativeClose", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ClientAfterUncooperativeClose changed channel status\n// to closed uncooperative.", "docstring_tokens": ["ClientAfterUncooperativeClose", "changed", "channel", "status", "to", "closed", "uncooperative", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/client.go#L443-L465", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/client.go", "func_name": "ClientAfterCooperativeClose", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ClientAfterCooperativeClose changed channel status\n// to closed cooperative and launches of terminate service procedure.", "docstring_tokens": ["ClientAfterCooperativeClose", "changed", "channel", "status", "to", "closed", "cooperative", "and", "launches", "of", "terminate", "service", "procedure", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/client.go#L469-L501", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/client.go", "func_name": "ClientPreServiceTerminate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ClientPreServiceTerminate terminates service.", "docstring_tokens": ["ClientPreServiceTerminate", "terminates", "service", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/client.go#L504-L528", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/client.go", "func_name": "ClientPreServiceSuspend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ClientPreServiceSuspend suspends service.", "docstring_tokens": ["ClientPreServiceSuspend", "suspends", "service", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/client.go#L531-L549", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/client.go", "func_name": "ClientPreServiceUnsuspend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ClientPreServiceUnsuspend activates service.", "docstring_tokens": ["ClientPreServiceUnsuspend", "activates", "service", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/client.go#L552-L567", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/client.go", "func_name": "ClientPreUncooperativeClose", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ClientPreUncooperativeClose waiting for until the challenge\n// period is over. Then deletes the channel and settles\n// by transferring the balance to the Agent and the rest\n// of the deposit back to the Client.", "docstring_tokens": ["ClientPreUncooperativeClose", "waiting", "for", "until", "the", "challenge", "period", "is", "over", ".", "Then", "deletes", "the", "channel", "and", "settles", "by", "transferring", "the", "balance", "to", "the", "Agent", "and", "the", "rest", "of", "the", "deposit", "back", "to", "the", "Client", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/client.go#L632-L713", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/client.go", "func_name": "ClientPreChannelTopUp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ClientPreChannelTopUp checks client balance and creates transaction\n// for increase the channel deposit.", "docstring_tokens": ["ClientPreChannelTopUp", "checks", "client", "balance", "and", "creates", "transaction", "for", "increase", "the", "channel", "deposit", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/client.go#L768-L799", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/client.go", "func_name": "ClientAfterChannelTopUp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ClientAfterChannelTopUp updates deposit of a channel.", "docstring_tokens": ["ClientAfterChannelTopUp", "updates", "deposit", "of", "a", "channel", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/client.go#L802-L804", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/client.go", "func_name": "ClientPreUncooperativeCloseRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ClientPreUncooperativeCloseRequest requests the closing of the channel\n// and starts the challenge period.", "docstring_tokens": ["ClientPreUncooperativeCloseRequest", "requests", "the", "closing", "of", "the", "channel", "and", "starts", "the", "challenge", "period", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/client.go#L859-L890", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/client.go", "func_name": "ClientAfterUncooperativeCloseRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ClientAfterUncooperativeCloseRequest waits for the channel\n// to uncooperative close, starts the service termination process.", "docstring_tokens": ["ClientAfterUncooperativeCloseRequest", "waits", "for", "the", "channel", "to", "uncooperative", "close", "starts", "the", "service", "termination", "process", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/client.go#L894-L919", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/client.go", "func_name": "ClientAfterOfferingMsgBCPublish", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ClientAfterOfferingMsgBCPublish creates offering.", "docstring_tokens": ["ClientAfterOfferingMsgBCPublish", "creates", "offering", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/client.go#L922-L940", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/client.go", "func_name": "ClientAfterOfferingPopUp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ClientAfterOfferingPopUp updates offering in db or retrieves from somc\n// if new.", "docstring_tokens": ["ClientAfterOfferingPopUp", "updates", "offering", "in", "db", "or", "retrieves", "from", "somc", "if", "new", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/client.go#L944-L979", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/client.go", "func_name": "ClientAfterOfferingDelete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ClientAfterOfferingDelete sets offer status to `remove`;", "docstring_tokens": ["ClientAfterOfferingDelete", "sets", "offer", "status", "to", "remove", ";"], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/client.go#L1138-L1141", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "proc/worker/client.go", "func_name": "DecrementCurrentSupply", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DecrementCurrentSupply finds offering and decrements its current supply.", "docstring_tokens": ["DecrementCurrentSupply", "finds", "offering", "and", "decrements", "its", "current", "supply", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/proc/worker/client.go#L1144-L1160", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/endpoint.go", "func_name": "GetEndpoints", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetEndpoints returns endpoints.", "docstring_tokens": ["GetEndpoints", "returns", "endpoints", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/endpoint.go#L33-L57", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/gui.go", "func_name": "GetGUISettings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetGUISettings returns gui settings.", "docstring_tokens": ["GetGUISettings", "returns", "gui", "settings", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/gui.go#L11-L34", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/gui.go", "func_name": "SetGUISettings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetGUISettings sets gui settings.", "docstring_tokens": ["SetGUISettings", "sets", "gui", "settings", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/gui.go#L37-L61", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "util/srv/misc.go", "func_name": "HandleFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HandleFunc registers a handler function for a given pattern.", "docstring_tokens": ["HandleFunc", "registers", "a", "handler", "function", "for", "a", "given", "pattern", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/util/srv/misc.go#L19-L24", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "util/srv/misc.go", "func_name": "RequireHTTPMethods", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RequireHTTPMethods wraps a given handler function inside an HTTP method\n// validating handler.", "docstring_tokens": ["RequireHTTPMethods", "wraps", "a", "given", "handler", "function", "inside", "an", "HTTP", "method", "validating", "handler", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/util/srv/misc.go#L28-L42", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "util/srv/misc.go", "func_name": "RequireBasicAuth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RequireBasicAuth wraps a given handler function inside a handler with basic\n// access authentication.", "docstring_tokens": ["RequireBasicAuth", "wraps", "a", "given", "handler", "function", "inside", "a", "handler", "with", "basic", "access", "authentication", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/util/srv/misc.go#L49-L63", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "messages/ept/service.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New function for initialize the service for generating\n// the Endpoint Message.", "docstring_tokens": ["New", "function", "for", "initialize", "the", "service", "for", "generating", "the", "Endpoint", "Message", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/messages/ept/service.go#L66-L75", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "messages/ept/service.go", "func_name": "EndpointMessage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EndpointMessage returns the endpoint message object.", "docstring_tokens": ["EndpointMessage", "returns", "the", "endpoint", "message", "object", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/messages/ept/service.go#L78-L93", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "sess/subscribe.go", "func_name": "ConnChange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ConnChange subscribes to changes for adapter connection changes.", "docstring_tokens": ["ConnChange", "subscribes", "to", "changes", "for", "adapter", "connection", "changes", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/sess/subscribe.go#L60-L110", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "data/misc.go", "func_name": "FromBase64ToHex", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FromBase64ToHex return hex of base 64 encoded.", "docstring_tokens": ["FromBase64ToHex", "return", "hex", "of", "base", "64", "encoded", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/data/misc.go#L20-L26", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "data/misc.go", "func_name": "HexToBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HexToBytes reutrns the bytes represented by the hex of string s.", "docstring_tokens": ["HexToBytes", "reutrns", "the", "bytes", "represented", "by", "the", "hex", "of", "string", "s", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/data/misc.go#L29-L35", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "data/misc.go", "func_name": "ToBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToBytes returns the bytes represented by the base64 string s.", "docstring_tokens": ["ToBytes", "returns", "the", "bytes", "represented", "by", "the", "base64", "string", "s", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/data/misc.go#L43-L45", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "data/misc.go", "func_name": "ToHash", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToHash returns the ethereum's hash represented by the base64 string s.", "docstring_tokens": ["ToHash", "returns", "the", "ethereum", "s", "hash", "represented", "by", "the", "base64", "string", "s", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/data/misc.go#L53-L59", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "data/misc.go", "func_name": "HexToHash", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HexToHash returns the ethereum's hash represented by the hex of string s.", "docstring_tokens": ["HexToHash", "returns", "the", "ethereum", "s", "hash", "represented", "by", "the", "hex", "of", "string", "s", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/data/misc.go#L62-L68", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "data/misc.go", "func_name": "HexToAddress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HexToAddress returns ethereum's address from base 64 encoded string.", "docstring_tokens": ["HexToAddress", "returns", "ethereum", "s", "address", "from", "base", "64", "encoded", "string", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/data/misc.go#L71-L77", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "data/misc.go", "func_name": "BytesToUint32", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BytesToUint32 using big endian.", "docstring_tokens": ["BytesToUint32", "using", "big", "endian", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/data/misc.go#L80-L85", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "data/misc.go", "func_name": "Uint32ToBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Uint32ToBytes using big endian.", "docstring_tokens": ["Uint32ToBytes", "using", "big", "endian", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/data/misc.go#L88-L92", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "data/misc.go", "func_name": "Uint64ToBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Uint64ToBytes using big endian.", "docstring_tokens": ["Uint64ToBytes", "using", "big", "endian", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/data/misc.go#L95-L99", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "data/misc.go", "func_name": "Uint192ToBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Uint192ToBytes using big endian with leading zeros.", "docstring_tokens": ["Uint192ToBytes", "using", "big", "endian", "with", "leading", "zeros", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/data/misc.go#L102-L109", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "data/misc.go", "func_name": "HashPassword", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HashPassword computes encoded hash of the password.", "docstring_tokens": ["HashPassword", "computes", "encoded", "hash", "of", "the", "password", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/data/misc.go#L112-L119", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "data/misc.go", "func_name": "ValidatePassword", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidatePassword checks if a given password, hash and salt are matching.", "docstring_tokens": ["ValidatePassword", "checks", "if", "a", "given", "password", "hash", "and", "salt", "are", "matching", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/data/misc.go#L122-L129", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "data/misc.go", "func_name": "GetUint64Setting", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetUint64Setting finds the key value in table Setting.\n// Checks that the value in the format of uint64", "docstring_tokens": ["GetUint64Setting", "finds", "the", "key", "value", "in", "table", "Setting", ".", "Checks", "that", "the", "value", "in", "the", "format", "of", "uint64"], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/data/misc.go#L133-L152", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "data/misc.go", "func_name": "ChannelKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ChannelKey returns the unique channel identifier\n// used in a Privatix Service Contract.", "docstring_tokens": ["ChannelKey", "returns", "the", "unique", "channel", "identifier", "used", "in", "a", "Privatix", "Service", "Contract", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/data/misc.go#L193-L216", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "data/misc.go", "func_name": "MinDeposit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MinDeposit calculates minimal deposit required to accept the offering.", "docstring_tokens": ["MinDeposit", "calculates", "minimal", "deposit", "required", "to", "accept", "the", "offering", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/data/misc.go#L219-L221", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/offering.go", "func_name": "AcceptOffering", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AcceptOffering initiates JobClientPreChannelCreate job.", "docstring_tokens": ["AcceptOffering", "initiates", "JobClientPreChannelCreate", "job", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/offering.go#L60-L105", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/offering.go", "func_name": "ChangeOfferingStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ChangeOfferingStatus initiates JobAgentPreOfferingMsgBCPublish,\n// JobAgentPreOfferingPopUp or JobAgentPreOfferingDelete job,\n// depending on a selected action.", "docstring_tokens": ["ChangeOfferingStatus", "initiates", "JobAgentPreOfferingMsgBCPublish", "JobAgentPreOfferingPopUp", "or", "JobAgentPreOfferingDelete", "job", "depending", "on", "a", "selected", "action", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/offering.go#L110-L140", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/offering.go", "func_name": "GetClientOfferings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetClientOfferings returns active offerings available for a client.", "docstring_tokens": ["GetClientOfferings", "returns", "active", "offerings", "available", "for", "a", "client", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/offering.go#L205-L251", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/offering.go", "func_name": "GetAgentOfferings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAgentOfferings returns active offerings available for a agent.", "docstring_tokens": ["GetAgentOfferings", "returns", "active", "offerings", "available", "for", "a", "agent", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/offering.go#L299-L336", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/offering.go", "func_name": "setOfferingHash", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setOfferingHash computes and sets values for raw msg and hash fields.", "docstring_tokens": ["setOfferingHash", "computes", "and", "sets", "values", "for", "raw", "msg", "and", "hash", "fields", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/offering.go#L339-L369", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/offering.go", "func_name": "fillOffering", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// fillOffering fills offerings nonce, status, hash and signature.", "docstring_tokens": ["fillOffering", "fills", "offerings", "nonce", "status", "hash", "and", "signature", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/offering.go#L372-L397", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/offering.go", "func_name": "UpdateOffering", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateOffering updates an offering.", "docstring_tokens": ["UpdateOffering", "updates", "an", "offering", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/offering.go#L416-L437", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/offering.go", "func_name": "CreateOffering", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateOffering creates an offering.", "docstring_tokens": ["CreateOffering", "creates", "an", "offering", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/offering.go#L440-L461", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/offering.go", "func_name": "GetClientOfferingsFilterParams", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetClientOfferingsFilterParams returns offerings filter parameters for client.", "docstring_tokens": ["GetClientOfferingsFilterParams", "returns", "offerings", "filter", "parameters", "for", "client", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/offering.go#L513-L533", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/offering.go", "func_name": "PingOfferings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PingOfferings given offerings ids pings each of them and returns result of the test.", "docstring_tokens": ["PingOfferings", "given", "offerings", "ids", "pings", "each", "of", "them", "and", "returns", "result", "of", "the", "test", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/offering.go#L536-L572", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "util/srv/server.go", "func_name": "NewServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewServer creates a new HTTP server.", "docstring_tokens": ["NewServer", "creates", "a", "new", "HTTP", "server", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/util/srv/server.go#L34-L43", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "util/srv/server.go", "func_name": "Mux", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Mux is an associated http.ServeMux instance.", "docstring_tokens": ["Mux", "is", "an", "associated", "http", ".", "ServeMux", "instance", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/util/srv/server.go#L46-L48", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "report/log/logger.go", "func_name": "NewLogger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLogger creates a new reporter logger.", "docstring_tokens": ["NewLogger", "creates", "a", "new", "reporter", "logger", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/report/log/logger.go#L29-L39", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "report/log/logger.go", "func_name": "Printf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Printf logs internal messages from a reporter.", "docstring_tokens": ["Printf", "logs", "internal", "messages", "from", "a", "reporter", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/report/log/logger.go#L68-L72", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "util/srv/client.go", "func_name": "GetURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetURL returns a server URL for a given path.", "docstring_tokens": ["GetURL", "returns", "a", "server", "URL", "for", "a", "given", "path", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/util/srv/client.go#L10-L17", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "util/srv/client.go", "func_name": "NewHTTPRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewHTTPRequest creates a new HTTP request from a given server request.", "docstring_tokens": ["NewHTTPRequest", "creates", "a", "new", "HTTP", "request", "from", "a", "given", "server", "request", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/util/srv/client.go#L20-L23", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "util/srv/client.go", "func_name": "NewHTTPRequestWithURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewHTTPRequestWithURL creates a new HTTP request for a given url.", "docstring_tokens": ["NewHTTPRequestWithURL", "creates", "a", "new", "HTTP", "request", "for", "a", "given", "url", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/util/srv/client.go#L26-L34", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "util/srv/client.go", "func_name": "Send", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Send sends an HTTP request and returns a server response.", "docstring_tokens": ["Send", "sends", "an", "HTTP", "request", "and", "returns", "a", "server", "response", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/util/srv/client.go#L37-L52", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/token.go", "func_name": "Check", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Check returns true if given string matches stored.", "docstring_tokens": ["Check", "returns", "true", "if", "given", "string", "matches", "stored", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/token.go#L28-L32", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/token.go", "func_name": "Make", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Make makes new random token.", "docstring_tokens": ["Make", "makes", "new", "random", "token", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/token.go#L35-L45", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "ui/logs.go", "func_name": "GetLogs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLogs returns back end log, paginated.", "docstring_tokens": ["GetLogs", "returns", "back", "end", "log", "paginated", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/ui/logs.go#L135-L165", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "sess/session.go", "func_name": "AuthClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AuthClient verifies password for a given client key.", "docstring_tokens": ["AuthClient", "verifies", "password", "for", "a", "given", "client", "key", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/sess/session.go#L15-L41", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "sess/session.go", "func_name": "StartSession", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StartSession creates a new client session.", "docstring_tokens": ["StartSession", "creates", "a", "new", "client", "session", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/sess/session.go#L44-L110", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "sess/session.go", "func_name": "UpdateSession", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateSession updates and optionally stops the current client session.", "docstring_tokens": ["UpdateSession", "updates", "and", "optionally", "stops", "the", "current", "client", "session", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/sess/session.go#L113-L202", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "messages/offer/offering.go", "func_name": "OfferingMessage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OfferingMessage returns new Offering message", "docstring_tokens": ["OfferingMessage", "returns", "new", "Offering", "message"], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/messages/offer/offering.go#L12-L35", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "messages/offer/offering.go", "func_name": "ValidMsg", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidMsg if is true then offering message corresponds\n// to an offer template scheme.", "docstring_tokens": ["ValidMsg", "if", "is", "true", "then", "offering", "message", "corresponds", "to", "an", "offer", "template", "scheme", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/messages/offer/offering.go#L39-L48", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "report/bugsnag/bugsnag.go", "func_name": "NewClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClient initializing Bugsnag client.\n// Bugsnag client that automatic error sender to remote server.\n// We use this service to collect anonymous information\n// about the error and panic.\n// Service is activated if exist entry key = \"error.sendremote\"\n// and value = true in the database settings table.", "docstring_tokens": ["NewClient", "initializing", "Bugsnag", "client", ".", "Bugsnag", "client", "that", "automatic", "error", "sender", "to", "remote", "server", ".", "We", "use", "this", "service", "to", "collect", "anonymous", "information", "about", "the", "error", "and", "panic", ".", "Service", "is", "activated", "if", "exist", "entry", "key", "=", "error", ".", "sendremote", "and", "value", "=", "true", "in", "the", "database", "settings", "table", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/report/bugsnag/bugsnag.go#L74-L112", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "report/bugsnag/bugsnag.go", "func_name": "PanicHunter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PanicHunter catches panic, in case of an enabled reporter.", "docstring_tokens": ["PanicHunter", "catches", "panic", "in", "case", "of", "an", "enabled", "reporter", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/report/bugsnag/bugsnag.go#L213-L226", "partition": "valid"} +{"repo": "Privatix/dappctrl", "path": "util/srv/request.go", "func_name": "ParseRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseRequest parses request handling possible errors.", "docstring_tokens": ["ParseRequest", "parses", "request", "handling", "possible", "errors", "."], "sha": "2cc873fade31c6133f39fcd53a8bf3c31ff79b28", "url": "https://github.com/Privatix/dappctrl/blob/2cc873fade31c6133f39fcd53a8bf3c31ff79b28/util/srv/request.go#L16-L34", "partition": "valid"} +{"repo": "nanobox-io/golang-lvs", "path": "ipvs.go", "func_name": "Save", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// save reads the applied ipvsadm rules from the host and saves them as i.Services", "docstring_tokens": ["save", "reads", "the", "applied", "ipvsadm", "rules", "from", "the", "host", "and", "saves", "them", "as", "i", ".", "Services"], "sha": "1a8938ec44b35c0bb89ed29857b0551d756e3cb2", "url": "https://github.com/nanobox-io/golang-lvs/blob/1a8938ec44b35c0bb89ed29857b0551d756e3cb2/ipvs.go#L122-L147", "partition": "valid"} +{"repo": "peppage/foursquarego", "path": "foursquare.go", "func_name": "NewClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClient returns a new Client.", "docstring_tokens": ["NewClient", "returns", "a", "new", "Client", "."], "sha": "d7f91e8b2dd2c1fd82da8c8c659f06938c00c631", "url": "https://github.com/peppage/foursquarego/blob/d7f91e8b2dd2c1fd82da8c8c659f06938c00c631/foursquare.go#L28-L48", "partition": "valid"} +{"repo": "peppage/foursquarego", "path": "foursquare.go", "func_name": "ParseRate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseRate is a helper function to get all the Rate info", "docstring_tokens": ["ParseRate", "is", "a", "helper", "function", "to", "get", "all", "the", "Rate", "info"], "sha": "d7f91e8b2dd2c1fd82da8c8c659f06938c00c631", "url": "https://github.com/peppage/foursquarego/blob/d7f91e8b2dd2c1fd82da8c8c659f06938c00c631/foursquare.go#L122-L135", "partition": "valid"} +{"repo": "backtrace-labs/go-bcd", "path": "tracer_darwin_stub.go", "func_name": "SetOutputPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sets the output path for generated snapshots.", "docstring_tokens": ["Sets", "the", "output", "path", "for", "generated", "snapshots", "."], "sha": "5d8e01b2f0438922289238fd3ba043761daf1102", "url": "https://github.com/backtrace-labs/go-bcd/blob/5d8e01b2f0438922289238fd3ba043761daf1102/tracer_darwin_stub.go#L133-L135", "partition": "valid"} +{"repo": "backtrace-labs/go-bcd", "path": "bcd.go", "func_name": "UpdateConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Update global Tracer configuration.", "docstring_tokens": ["Update", "global", "Tracer", "configuration", "."], "sha": "5d8e01b2f0438922289238fd3ba043761daf1102", "url": "https://github.com/backtrace-labs/go-bcd/blob/5d8e01b2f0438922289238fd3ba043761daf1102/bcd.go#L84-L89", "partition": "valid"} +{"repo": "backtrace-labs/go-bcd", "path": "tracer.go", "func_name": "SetTracerPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sets the executable path for the tracer.", "docstring_tokens": ["Sets", "the", "executable", "path", "for", "the", "tracer", "."], "sha": "5d8e01b2f0438922289238fd3ba043761daf1102", "url": "https://github.com/backtrace-labs/go-bcd/blob/5d8e01b2f0438922289238fd3ba043761daf1102/tracer.go#L333-L338", "partition": "valid"} +{"repo": "backtrace-labs/go-bcd", "path": "tracer.go", "func_name": "SetOutputPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sets the output path for generated snapshots. The directory will be\n// created with the specified permission bits if it does not already\n// exist.\n//\n// If perm is 0, a default of 0755 will be used.", "docstring_tokens": ["Sets", "the", "output", "path", "for", "generated", "snapshots", ".", "The", "directory", "will", "be", "created", "with", "the", "specified", "permission", "bits", "if", "it", "does", "not", "already", "exist", ".", "If", "perm", "is", "0", "a", "default", "of", "0755", "will", "be", "used", "."], "sha": "5d8e01b2f0438922289238fd3ba043761daf1102", "url": "https://github.com/backtrace-labs/go-bcd/blob/5d8e01b2f0438922289238fd3ba043761daf1102/tracer.go#L345-L361", "partition": "valid"} +{"repo": "backtrace-labs/go-bcd", "path": "tracer.go", "func_name": "SetPipes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sets the input and output pipes for the tracer.\n// Stdout is not redirected; it is instead passed to the\n// tracer's Put command.", "docstring_tokens": ["Sets", "the", "input", "and", "output", "pipes", "for", "the", "tracer", ".", "Stdout", "is", "not", "redirected", ";", "it", "is", "instead", "passed", "to", "the", "tracer", "s", "Put", "command", "."], "sha": "5d8e01b2f0438922289238fd3ba043761daf1102", "url": "https://github.com/backtrace-labs/go-bcd/blob/5d8e01b2f0438922289238fd3ba043761daf1102/tracer.go#L366-L372", "partition": "valid"} +{"repo": "backtrace-labs/go-bcd", "path": "tracer.go", "func_name": "AppendOptionWithPrefix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Append to an option with given prefix", "docstring_tokens": ["Append", "to", "an", "option", "with", "given", "prefix"], "sha": "5d8e01b2f0438922289238fd3ba043761daf1102", "url": "https://github.com/backtrace-labs/go-bcd/blob/5d8e01b2f0438922289238fd3ba043761daf1102/tracer.go#L393-L402", "partition": "valid"} +{"repo": "calmh/xdr", "path": "marshaller.go", "func_name": "MarshalRaw", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalRaw copies the raw bytes to the buffer, without a size prefix or\n// padding. This is suitable for appending data already in XDR format from\n// another source.", "docstring_tokens": ["MarshalRaw", "copies", "the", "raw", "bytes", "to", "the", "buffer", "without", "a", "size", "prefix", "or", "padding", ".", "This", "is", "suitable", "for", "appending", "data", "already", "in", "XDR", "format", "from", "another", "source", "."], "sha": "08e072f9cb164f943a92eb59f90f3abc64ac6e8f", "url": "https://github.com/calmh/xdr/blob/08e072f9cb164f943a92eb59f90f3abc64ac6e8f/marshaller.go#L24-L34", "partition": "valid"} +{"repo": "calmh/xdr", "path": "marshaller.go", "func_name": "MarshalString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalString appends the string to the buffer, with a size prefix and\n// correct padding.", "docstring_tokens": ["MarshalString", "appends", "the", "string", "to", "the", "buffer", "with", "a", "size", "prefix", "and", "correct", "padding", "."], "sha": "08e072f9cb164f943a92eb59f90f3abc64ac6e8f", "url": "https://github.com/calmh/xdr/blob/08e072f9cb164f943a92eb59f90f3abc64ac6e8f/marshaller.go#L38-L50", "partition": "valid"} +{"repo": "calmh/xdr", "path": "marshaller.go", "func_name": "MarshalBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalString appends the bytes to the buffer, with a size prefix and\n// correct padding.", "docstring_tokens": ["MarshalString", "appends", "the", "bytes", "to", "the", "buffer", "with", "a", "size", "prefix", "and", "correct", "padding", "."], "sha": "08e072f9cb164f943a92eb59f90f3abc64ac6e8f", "url": "https://github.com/calmh/xdr/blob/08e072f9cb164f943a92eb59f90f3abc64ac6e8f/marshaller.go#L54-L66", "partition": "valid"} +{"repo": "calmh/xdr", "path": "marshaller.go", "func_name": "MarshalBool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalString appends the bool to the buffer, as an uint32.", "docstring_tokens": ["MarshalString", "appends", "the", "bool", "to", "the", "buffer", "as", "an", "uint32", "."], "sha": "08e072f9cb164f943a92eb59f90f3abc64ac6e8f", "url": "https://github.com/calmh/xdr/blob/08e072f9cb164f943a92eb59f90f3abc64ac6e8f/marshaller.go#L69-L75", "partition": "valid"} +{"repo": "calmh/xdr", "path": "marshaller.go", "func_name": "MarshalUint32", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalString appends the uint32 to the buffer.", "docstring_tokens": ["MarshalString", "appends", "the", "uint32", "to", "the", "buffer", "."], "sha": "08e072f9cb164f943a92eb59f90f3abc64ac6e8f", "url": "https://github.com/calmh/xdr/blob/08e072f9cb164f943a92eb59f90f3abc64ac6e8f/marshaller.go#L88-L102", "partition": "valid"} +{"repo": "calmh/xdr", "path": "marshaller.go", "func_name": "MarshalUint64", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalString appends the uint64 to the buffer.", "docstring_tokens": ["MarshalString", "appends", "the", "uint64", "to", "the", "buffer", "."], "sha": "08e072f9cb164f943a92eb59f90f3abc64ac6e8f", "url": "https://github.com/calmh/xdr/blob/08e072f9cb164f943a92eb59f90f3abc64ac6e8f/marshaller.go#L105-L123", "partition": "valid"} +{"repo": "calmh/xdr", "path": "common.go", "func_name": "ElementSizeExceeded", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ElementSizeExceeded returns an error describing the violated size\n// constraint. This function is used by the generated marshalling code.", "docstring_tokens": ["ElementSizeExceeded", "returns", "an", "error", "describing", "the", "violated", "size", "constraint", ".", "This", "function", "is", "used", "by", "the", "generated", "marshalling", "code", "."], "sha": "08e072f9cb164f943a92eb59f90f3abc64ac6e8f", "url": "https://github.com/calmh/xdr/blob/08e072f9cb164f943a92eb59f90f3abc64ac6e8f/common.go#L26-L28", "partition": "valid"} +{"repo": "sloonz/go-qprintable", "path": "qprintable.go", "func_name": "nextSpecialChar", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return first character position where the character has to be escaped", "docstring_tokens": ["Return", "first", "character", "position", "where", "the", "character", "has", "to", "be", "escaped"], "sha": "775b3a4592d5bfc47b0ba398ec0d4dba018e5926", "url": "https://github.com/sloonz/go-qprintable/blob/775b3a4592d5bfc47b0ba398ec0d4dba018e5926/qprintable.go#L83-L91", "partition": "valid"} +{"repo": "sloonz/go-qprintable", "path": "qprintable.go", "func_name": "nextSpecialChar", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return first character position where the character has to be decoded", "docstring_tokens": ["Return", "first", "character", "position", "where", "the", "character", "has", "to", "be", "decoded"], "sha": "775b3a4592d5bfc47b0ba398ec0d4dba018e5926", "url": "https://github.com/sloonz/go-qprintable/blob/775b3a4592d5bfc47b0ba398ec0d4dba018e5926/qprintable.go#L268-L275", "partition": "valid"} +{"repo": "sloonz/go-qprintable", "path": "qprintable.go", "func_name": "NewDecoder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns a new decoder. Data will be read from r, and decoded\n// according to enc.", "docstring_tokens": ["Returns", "a", "new", "decoder", ".", "Data", "will", "be", "read", "from", "r", "and", "decoded", "according", "to", "enc", "."], "sha": "775b3a4592d5bfc47b0ba398ec0d4dba018e5926", "url": "https://github.com/sloonz/go-qprintable/blob/775b3a4592d5bfc47b0ba398ec0d4dba018e5926/qprintable.go#L430-L434", "partition": "valid"} +{"repo": "99designs/goodies", "path": "depinject/depinject.go", "func_name": "Register", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Register registers a constructor function\n// with the DI container", "docstring_tokens": ["Register", "registers", "a", "constructor", "function", "with", "the", "DI", "container"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/depinject/depinject.go#L43-L63", "partition": "valid"} +{"repo": "99designs/goodies", "path": "depinject/depinject.go", "func_name": "MustRegister", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustRegister is a helper that calls Register and panics if it returns an error", "docstring_tokens": ["MustRegister", "is", "a", "helper", "that", "calls", "Register", "and", "panics", "if", "it", "returns", "an", "error"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/depinject/depinject.go#L66-L71", "partition": "valid"} +{"repo": "99designs/goodies", "path": "depinject/depinject.go", "func_name": "Create", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create creates an instance of the type of the given parameter", "docstring_tokens": ["Create", "creates", "an", "instance", "of", "the", "type", "of", "the", "given", "parameter"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/depinject/depinject.go#L74-L82", "partition": "valid"} +{"repo": "99designs/goodies", "path": "depinject/depinject.go", "func_name": "cachedCreateFromType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// cachedCreateFromType creates an instance of the given type", "docstring_tokens": ["cachedCreateFromType", "creates", "an", "instance", "of", "the", "given", "type"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/depinject/depinject.go#L106-L114", "partition": "valid"} +{"repo": "99designs/goodies", "path": "depinject/depinject.go", "func_name": "NewDependencyInjector", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDependencyInjector returns a new DependencyInjector", "docstring_tokens": ["NewDependencyInjector", "returns", "a", "new", "DependencyInjector"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/depinject/depinject.go#L126-L131", "partition": "valid"} +{"repo": "99designs/goodies", "path": "depinject/depinject.go", "func_name": "NewServiceContainer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewServiceContainer returns a new ServiceContainer", "docstring_tokens": ["NewServiceContainer", "returns", "a", "new", "ServiceContainer"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/depinject/depinject.go#L139-L145", "partition": "valid"} +{"repo": "99designs/goodies", "path": "assets/assets.go", "func_name": "AssetUrl", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// add the prefix when providing urls", "docstring_tokens": ["add", "the", "prefix", "when", "providing", "urls"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/assets/assets.go#L17-L24", "partition": "valid"} +{"repo": "99designs/goodies", "path": "assets/assets.go", "func_name": "Prefix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Prefix returns an AssetPipeline that prefixes URLs with the\n// given string", "docstring_tokens": ["Prefix", "returns", "an", "AssetPipeline", "that", "prefixes", "URLs", "with", "the", "given", "string"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/assets/assets.go#L28-L37", "partition": "valid"} +{"repo": "99designs/goodies", "path": "goanna/handler.go", "func_name": "ServeHTTP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServeHTTP handles a http request", "docstring_tokens": ["ServeHTTP", "handles", "a", "http", "request"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/goanna/handler.go#L21-L23", "partition": "valid"} +{"repo": "99designs/goodies", "path": "goanna/handler.go", "func_name": "getResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getResponse executes the specified controller's method using reflection\n// and returns the response object", "docstring_tokens": ["getResponse", "executes", "the", "specified", "controller", "s", "method", "using", "reflection", "and", "returns", "the", "response", "object"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/goanna/handler.go#L27-L59", "partition": "valid"} +{"repo": "99designs/goodies", "path": "goanna/handler.go", "func_name": "isValid", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isValid checks that the controller and method specifies\n// will sucessfully execute if getResponse is called on it", "docstring_tokens": ["isValid", "checks", "that", "the", "controller", "and", "method", "specifies", "will", "sucessfully", "execute", "if", "getResponse", "is", "called", "on", "it"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/goanna/handler.go#L63-L80", "partition": "valid"} +{"repo": "99designs/goodies", "path": "goanna/handler.go", "func_name": "NewHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewHandler creates a ControllerHandler from the factory and methodName", "docstring_tokens": ["NewHandler", "creates", "a", "ControllerHandler", "from", "the", "factory", "and", "methodName"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/goanna/handler.go#L83-L89", "partition": "valid"} +{"repo": "99designs/goodies", "path": "goanna/handler.go", "func_name": "Handler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Handler handles functions of type GoannaHandlerFunc", "docstring_tokens": ["Handler", "handles", "functions", "of", "type", "GoannaHandlerFunc"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/goanna/handler.go#L96-L101", "partition": "valid"} +{"repo": "99designs/goodies", "path": "goanna/controller.go", "func_name": "SetRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetRequest injects a request into the controller", "docstring_tokens": ["SetRequest", "injects", "a", "request", "into", "the", "controller"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/goanna/controller.go#L25-L27", "partition": "valid"} +{"repo": "99designs/goodies", "path": "goanna/controller.go", "func_name": "Session", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Session returns the session for the current request", "docstring_tokens": ["Session", "returns", "the", "session", "for", "the", "current", "request"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/goanna/controller.go#L30-L35", "partition": "valid"} +{"repo": "99designs/goodies", "path": "goanna/controller.go", "func_name": "RenderView", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RenderView renders a template string using the provided template and vars struct\n// and returns the rendered tamplate", "docstring_tokens": ["RenderView", "renders", "a", "template", "string", "using", "the", "provided", "template", "and", "vars", "struct", "and", "returns", "the", "rendered", "tamplate"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/goanna/controller.go#L51-L57", "partition": "valid"} +{"repo": "99designs/goodies", "path": "goanna/controller.go", "func_name": "RenderTemplate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RenderView renders a template using the provided template and vars struct\n// and returns the rendered tamplate", "docstring_tokens": ["RenderView", "renders", "a", "template", "using", "the", "provided", "template", "and", "vars", "struct", "and", "returns", "the", "rendered", "tamplate"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/goanna/controller.go#L61-L68", "partition": "valid"} +{"repo": "99designs/goodies", "path": "goanna/controller.go", "func_name": "RedirectRoute", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RedirectRoute returns a RedirectResponse to the route", "docstring_tokens": ["RedirectRoute", "returns", "a", "RedirectResponse", "to", "the", "route"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/goanna/controller.go#L101-L103", "partition": "valid"} +{"repo": "99designs/goodies", "path": "goanna/controller.go", "func_name": "UrlFor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UrlFor is helper function for controllers", "docstring_tokens": ["UrlFor", "is", "helper", "function", "for", "controllers"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/goanna/controller.go#L114-L116", "partition": "valid"} +{"repo": "99designs/goodies", "path": "goanna/request.go", "func_name": "CookieValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CookieValue returns the value of the named cookie", "docstring_tokens": ["CookieValue", "returns", "the", "value", "of", "the", "named", "cookie"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/goanna/request.go#L21-L27", "partition": "valid"} +{"repo": "99designs/goodies", "path": "goanna/request.go", "func_name": "BodyData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BodyData returns the full request body", "docstring_tokens": ["BodyData", "returns", "the", "full", "request", "body"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/goanna/request.go#L30-L49", "partition": "valid"} +{"repo": "99designs/goodies", "path": "goanna/request.go", "func_name": "QueryValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// QueryValue returns the value in the GET query string", "docstring_tokens": ["QueryValue", "returns", "the", "value", "in", "the", "GET", "query", "string"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/goanna/request.go#L52-L54", "partition": "valid"} +{"repo": "99designs/goodies", "path": "goanna/request.go", "func_name": "FormValueOrDefault", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FormValueOrDefault returns the result of Request.FormValue,\n// and if the result is empty returns the default string", "docstring_tokens": ["FormValueOrDefault", "returns", "the", "result", "of", "Request", ".", "FormValue", "and", "if", "the", "result", "is", "empty", "returns", "the", "default", "string"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/goanna/request.go#L67-L74", "partition": "valid"} +{"repo": "99designs/goodies", "path": "goanna/request.go", "func_name": "UrlValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UrlValue returns whether the request is PATCH", "docstring_tokens": ["UrlValue", "returns", "whether", "the", "request", "is", "PATCH"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/goanna/request.go#L106-L108", "partition": "valid"} +{"repo": "99designs/goodies", "path": "stringslice/stringslice.go", "func_name": "Contains", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Contains returns true if any string in substrs is within s", "docstring_tokens": ["Contains", "returns", "true", "if", "any", "string", "in", "substrs", "is", "within", "s"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/stringslice/stringslice.go#L10-L18", "partition": "valid"} +{"repo": "99designs/goodies", "path": "stringslice/stringslice.go", "func_name": "RemoveStringsFromString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveStringsFromString removes any string in substrs from s", "docstring_tokens": ["RemoveStringsFromString", "removes", "any", "string", "in", "substrs", "from", "s"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/stringslice/stringslice.go#L21-L35", "partition": "valid"} +{"repo": "99designs/goodies", "path": "stringslice/stringslice.go", "func_name": "Map", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Map returns a slice containing all the elements of ss\n// after applying the callback function to each one", "docstring_tokens": ["Map", "returns", "a", "slice", "containing", "all", "the", "elements", "of", "ss", "after", "applying", "the", "callback", "function", "to", "each", "one"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/stringslice/stringslice.go#L39-L46", "partition": "valid"} +{"repo": "99designs/goodies", "path": "stringslice/stringslice.go", "func_name": "Equal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Equal returns a boolean reporting whether a == b", "docstring_tokens": ["Equal", "returns", "a", "boolean", "reporting", "whether", "a", "==", "b"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/stringslice/stringslice.go#L49-L59", "partition": "valid"} +{"repo": "99designs/goodies", "path": "stringslice/stringslice.go", "func_name": "Uniq", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Uniq returns a slice containing the unique strings\n// found in items", "docstring_tokens": ["Uniq", "returns", "a", "slice", "containing", "the", "unique", "strings", "found", "in", "items"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/stringslice/stringslice.go#L63-L75", "partition": "valid"} +{"repo": "99designs/goodies", "path": "goanna/cookie_signer.go", "func_name": "NewCookieSigner", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCookieSigner returns a new CookieSigner using the given key", "docstring_tokens": ["NewCookieSigner", "returns", "a", "new", "CookieSigner", "using", "the", "given", "key"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/goanna/cookie_signer.go#L21-L23", "partition": "valid"} +{"repo": "99designs/goodies", "path": "goanna/cookie_signer.go", "func_name": "EncodeCookie", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EncodeCookie signs and encodes the cookie", "docstring_tokens": ["EncodeCookie", "signs", "and", "encodes", "the", "cookie"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/goanna/cookie_signer.go#L26-L28", "partition": "valid"} +{"repo": "99designs/goodies", "path": "goanna/cookie_signer.go", "func_name": "DecodeCookie", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DecodeCookie verifies the signature and decodes the value into the cookie", "docstring_tokens": ["DecodeCookie", "verifies", "the", "signature", "and", "decodes", "the", "value", "into", "the", "cookie"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/goanna/cookie_signer.go#L31-L39", "partition": "valid"} +{"repo": "99designs/goodies", "path": "goanna/cookie_signer.go", "func_name": "DecodeValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DecodeValue validates and decodes a cookie value", "docstring_tokens": ["DecodeValue", "validates", "and", "decodes", "a", "cookie", "value"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/goanna/cookie_signer.go#L42-L58", "partition": "valid"} +{"repo": "99designs/goodies", "path": "goanna/cookie_signer.go", "func_name": "EncodeValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EncodeValue signs and encodes a cookie value", "docstring_tokens": ["EncodeValue", "signs", "and", "encodes", "a", "cookie", "value"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/goanna/cookie_signer.go#L61-L65", "partition": "valid"} +{"repo": "99designs/goodies", "path": "http/statsd/http.go", "func_name": "ServeHTTP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServeHTTP records the time for a request and sends the result to statsd", "docstring_tokens": ["ServeHTTP", "records", "the", "time", "for", "a", "request", "and", "sends", "the", "result", "to", "statsd"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/http/statsd/http.go#L20-L30", "partition": "valid"} +{"repo": "99designs/goodies", "path": "assets/sprockets/sprockets.go", "func_name": "NewSprocketsServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSprocketsServer creates a Sprockets asset pipeline", "docstring_tokens": ["NewSprocketsServer", "creates", "a", "Sprockets", "asset", "pipeline"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/assets/sprockets/sprockets.go#L20-L27", "partition": "valid"} +{"repo": "99designs/goodies", "path": "ratelimiter/memcache.go", "func_name": "normaliseKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Keys must be at maximum 250 bytes long, ASCII, and not\n// contain whitespace or control characters.", "docstring_tokens": ["Keys", "must", "be", "at", "maximum", "250", "bytes", "long", "ASCII", "and", "not", "contain", "whitespace", "or", "control", "characters", "."], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/ratelimiter/memcache.go#L71-L78", "partition": "valid"} +{"repo": "99designs/goodies", "path": "monitor/monitor.go", "func_name": "StopAndLog", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// stop the stopwatch", "docstring_tokens": ["stop", "the", "stopwatch"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/monitor/monitor.go#L32-L39", "partition": "valid"} +{"repo": "99designs/goodies", "path": "monitor/monitor.go", "func_name": "MonitorFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Function decorator to monitor the execution of an anonymous function\n// returns an array of the returned Values", "docstring_tokens": ["Function", "decorator", "to", "monitor", "the", "execution", "of", "an", "anonymous", "function", "returns", "an", "array", "of", "the", "returned", "Values"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/monitor/monitor.go#L48-L50", "partition": "valid"} +{"repo": "99designs/goodies", "path": "monitor/monitor.go", "func_name": "MonitorReflectedFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Function decorator\n// to monitor a reflected function", "docstring_tokens": ["Function", "decorator", "to", "monitor", "a", "reflected", "function"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/monitor/monitor.go#L58-L63", "partition": "valid"} +{"repo": "99designs/goodies", "path": "goanna/requestlogger.go", "func_name": "LogRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LogRequest logs a goanna request", "docstring_tokens": ["LogRequest", "logs", "a", "goanna", "request"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/goanna/requestlogger.go#L34-L53", "partition": "valid"} +{"repo": "99designs/goodies", "path": "http/log/log.go", "func_name": "CommonLogHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CommonLogHandler returns a handler that serves HTTP requests\n// If a logger is not provided, stdout will be used", "docstring_tokens": ["CommonLogHandler", "returns", "a", "handler", "that", "serves", "HTTP", "requests", "If", "a", "logger", "is", "not", "provided", "stdout", "will", "be", "used"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/http/log/log.go#L28-L41", "partition": "valid"} +{"repo": "99designs/goodies", "path": "http/log/log.go", "func_name": "ServeHTTP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServeHTTP logs the request and response data to Common Log Format", "docstring_tokens": ["ServeHTTP", "logs", "the", "request", "and", "response", "data", "to", "Common", "Log", "Format"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/http/log/log.go#L44-L63", "partition": "valid"} +{"repo": "99designs/goodies", "path": "http/log/log.go", "func_name": "UrlUsername", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Extract username from the request url", "docstring_tokens": ["Extract", "username", "from", "the", "request", "url"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/http/log/log.go#L78-L83", "partition": "valid"} +{"repo": "99designs/goodies", "path": "goanna/router.go", "func_name": "UrlFor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UrlFor returns the relative URL for the route name", "docstring_tokens": ["UrlFor", "returns", "the", "relative", "URL", "for", "the", "route", "name"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/goanna/router.go#L27-L37", "partition": "valid"} +{"repo": "99designs/goodies", "path": "goanna/router.go", "func_name": "AbsoluteUrlFor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UrlFor returns the avsolute URL for the route name.\n// UrlBase is used for the URL Host and Scheme", "docstring_tokens": ["UrlFor", "returns", "the", "avsolute", "URL", "for", "the", "route", "name", ".", "UrlBase", "is", "used", "for", "the", "URL", "Host", "and", "Scheme"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/goanna/router.go#L41-L46", "partition": "valid"} +{"repo": "99designs/goodies", "path": "config/config.go", "func_name": "Parse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Parse parses the JSON-encoded data and stores the result\n// into the value pointed at by c.\n// Panics if unsuccessful", "docstring_tokens": ["Parse", "parses", "the", "JSON", "-", "encoded", "data", "and", "stores", "the", "result", "into", "the", "value", "pointed", "at", "by", "c", ".", "Panics", "if", "unsuccessful"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/config/config.go#L34-L39", "partition": "valid"} +{"repo": "99designs/goodies", "path": "config/config.go", "func_name": "LoadFromEnv", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadFromEnv iterates through a\n// struct's fields and tries to find matching\n// environment variables.\n// Returns a map of environment key and values that were\n// successfully set into the struct", "docstring_tokens": ["LoadFromEnv", "iterates", "through", "a", "struct", "s", "fields", "and", "tries", "to", "find", "matching", "environment", "variables", ".", "Returns", "a", "map", "of", "environment", "key", "and", "values", "that", "were", "successfully", "set", "into", "the", "struct"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/config/config.go#L53-L82", "partition": "valid"} +{"repo": "99designs/goodies", "path": "http/http.go", "func_name": "RegexPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegexPath returns a handler that serves HTTP requests\n// with the first match of the the given regex from the request URL's Path\n// and invoking the handler h. RegexPath handles a\n// request for a path that doesn't match by\n// replying with an HTTP 404 not found error.", "docstring_tokens": ["RegexPath", "returns", "a", "handler", "that", "serves", "HTTP", "requests", "with", "the", "first", "match", "of", "the", "the", "given", "regex", "from", "the", "request", "URL", "s", "Path", "and", "invoking", "the", "handler", "h", ".", "RegexPath", "handles", "a", "request", "for", "a", "path", "that", "doesn", "t", "match", "by", "replying", "with", "an", "HTTP", "404", "not", "found", "error", "."], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/http/http.go#L13-L27", "partition": "valid"} +{"repo": "99designs/goodies", "path": "http/cachecontrol/cachecontrol.go", "func_name": "CacheControl", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CacheControl decorates a handler and adds Cache-Control headers", "docstring_tokens": ["CacheControl", "decorates", "a", "handler", "and", "adds", "Cache", "-", "Control", "headers"], "sha": "ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6", "url": "https://github.com/99designs/goodies/blob/ec7f410f2ff25f45499e3b4584d67fa2a2ee21e6/http/cachecontrol/cachecontrol.go#L15-L17", "partition": "valid"} +{"repo": "blablacar/dgr", "path": "bin-templater/merger/merger.go", "func_name": "transform", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// transform YAML to JSON", "docstring_tokens": ["transform", "YAML", "to", "JSON"], "sha": "ba0ba1bd814a792832d03868984a9b82d5cd0b39", "url": "https://github.com/blablacar/dgr/blob/ba0ba1bd814a792832d03868984a9b82d5cd0b39/bin-templater/merger/merger.go#L238-L274", "partition": "valid"} +{"repo": "blablacar/dgr", "path": "dgr/discovery/discovery.go", "func_name": "DiscoverWalk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DiscoverWalk will make HTTPS requests to find discovery meta tags and\n// optionally will use HTTP if insecure is set. Based on the response of the\n// discoverFn it will continue to recurse up the tree.", "docstring_tokens": ["DiscoverWalk", "will", "make", "HTTPS", "requests", "to", "find", "discovery", "meta", "tags", "and", "optionally", "will", "use", "HTTP", "if", "insecure", "is", "set", ".", "Based", "on", "the", "response", "of", "the", "discoverFn", "it", "will", "continue", "to", "recurse", "up", "the", "tree", "."], "sha": "ba0ba1bd814a792832d03868984a9b82d5cd0b39", "url": "https://github.com/blablacar/dgr/blob/ba0ba1bd814a792832d03868984a9b82d5cd0b39/dgr/discovery/discovery.go#L180-L197", "partition": "valid"} +{"repo": "blablacar/dgr", "path": "dgr/discovery/discovery.go", "func_name": "DiscoverEndpoints", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DiscoverEndpoints will make HTTPS requests to find the ac-discovery meta\n// tags and optionally will use HTTP if insecure is set. It will not give up\n// until it has exhausted the path or found an image discovery.", "docstring_tokens": ["DiscoverEndpoints", "will", "make", "HTTPS", "requests", "to", "find", "the", "ac", "-", "discovery", "meta", "tags", "and", "optionally", "will", "use", "HTTP", "if", "insecure", "is", "set", ".", "It", "will", "not", "give", "up", "until", "it", "has", "exhausted", "the", "path", "or", "found", "an", "image", "discovery", "."], "sha": "ba0ba1bd814a792832d03868984a9b82d5cd0b39", "url": "https://github.com/blablacar/dgr/blob/ba0ba1bd814a792832d03868984a9b82d5cd0b39/dgr/discovery/discovery.go#L226-L241", "partition": "valid"} +{"repo": "lestrrat-go/structinfo", "path": "structinfo.go", "func_name": "JSONFieldsFromStruct", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// JSONFieldsFromStruct returns the names of JSON fields associated\n// with the given struct. Returns nil if v is not a struct", "docstring_tokens": ["JSONFieldsFromStruct", "returns", "the", "names", "of", "JSON", "fields", "associated", "with", "the", "given", "struct", ".", "Returns", "nil", "if", "v", "is", "not", "a", "struct"], "sha": "acd51874663bf3297433cb1f1015075c3cbe6130", "url": "https://github.com/lestrrat-go/structinfo/blob/acd51874663bf3297433cb1f1015075c3cbe6130/structinfo.go#L20-L34", "partition": "valid"} +{"repo": "lestrrat-go/structinfo", "path": "structinfo.go", "func_name": "StructFieldFromJSONName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StructFieldFromJSONName returns the struct field name on the\n// given struct value. Empty value means the field is either not\n// public, or does not exist.\n//\n// This can be used to map JSON field names to actual struct fields.", "docstring_tokens": ["StructFieldFromJSONName", "returns", "the", "struct", "field", "name", "on", "the", "given", "struct", "value", ".", "Empty", "value", "means", "the", "field", "is", "either", "not", "public", "or", "does", "not", "exist", ".", "This", "can", "be", "used", "to", "map", "JSON", "field", "names", "to", "actual", "struct", "fields", "."], "sha": "acd51874663bf3297433cb1f1015075c3cbe6130", "url": "https://github.com/lestrrat-go/structinfo/blob/acd51874663bf3297433cb1f1015075c3cbe6130/structinfo.go#L41-L55", "partition": "valid"} +{"repo": "marstr/collection", "path": "dictionary.go", "func_name": "Enumerate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Enumerate lists each word in the Dictionary alphabetically.", "docstring_tokens": ["Enumerate", "lists", "each", "word", "in", "the", "Dictionary", "alphabetically", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/dictionary.go#L133-L138", "partition": "valid"} +{"repo": "jjeffery/kv", "path": "internal/parse/parse.go", "func_name": "Release", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Release returns the message to the pool for re-use.", "docstring_tokens": ["Release", "returns", "the", "message", "to", "the", "pool", "for", "re", "-", "use", "."], "sha": "86a724473171d9ea8f64c821ae04bf326f85d910", "url": "https://github.com/jjeffery/kv/blob/86a724473171d9ea8f64c821ae04bf326f85d910/internal/parse/parse.go#L32-L38", "partition": "valid"} +{"repo": "jjeffery/kv", "path": "error.go", "func_name": "Wrap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Wrap returns an error that wraps err, optionally annotating\n// with the message text.", "docstring_tokens": ["Wrap", "returns", "an", "error", "that", "wraps", "err", "optionally", "annotating", "with", "the", "message", "text", "."], "sha": "86a724473171d9ea8f64c821ae04bf326f85d910", "url": "https://github.com/jjeffery/kv/blob/86a724473171d9ea8f64c821ae04bf326f85d910/error.go#L36-L38", "partition": "valid"} +{"repo": "jjeffery/kv", "path": "error.go", "func_name": "causer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// causer detects whether e wraps another error, and if so\n// returns an Error that also implements the Causer interface.", "docstring_tokens": ["causer", "detects", "whether", "e", "wraps", "another", "error", "and", "if", "so", "returns", "an", "Error", "that", "also", "implements", "the", "Causer", "interface", "."], "sha": "86a724473171d9ea8f64c821ae04bf326f85d910", "url": "https://github.com/jjeffery/kv/blob/86a724473171d9ea8f64c821ae04bf326f85d910/error.go#L137-L144", "partition": "valid"} +{"repo": "jjeffery/kv", "path": "context.go", "func_name": "From", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// From creates a new context based on ctx. See the Context example.", "docstring_tokens": ["From", "creates", "a", "new", "context", "based", "on", "ctx", ".", "See", "the", "Context", "example", "."], "sha": "86a724473171d9ea8f64c821ae04bf326f85d910", "url": "https://github.com/jjeffery/kv/blob/86a724473171d9ea8f64c821ae04bf326f85d910/context.go#L44-L49", "partition": "valid"} +{"repo": "jjeffery/kv", "path": "context.go", "func_name": "With", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// With returns a context.Context with the keyvals attached.", "docstring_tokens": ["With", "returns", "a", "context", ".", "Context", "with", "the", "keyvals", "attached", "."], "sha": "86a724473171d9ea8f64c821ae04bf326f85d910", "url": "https://github.com/jjeffery/kv/blob/86a724473171d9ea8f64c821ae04bf326f85d910/context.go#L72-L74", "partition": "valid"} +{"repo": "jjeffery/kv", "path": "context.go", "func_name": "Format", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Format implements the fmt.Formatter interface. If\n// the context is printed with \"%+v\", then it prints\n// using the String method of the wrapped context.", "docstring_tokens": ["Format", "implements", "the", "fmt", ".", "Formatter", "interface", ".", "If", "the", "context", "is", "printed", "with", "%", "+", "v", "then", "it", "prints", "using", "the", "String", "method", "of", "the", "wrapped", "context", "."], "sha": "86a724473171d9ea8f64c821ae04bf326f85d910", "url": "https://github.com/jjeffery/kv/blob/86a724473171d9ea8f64c821ae04bf326f85d910/context.go#L114-L124", "partition": "valid"} +{"repo": "jjeffery/kv", "path": "kvlog/writer.go", "func_name": "NewWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewWriter creates writer that logs messages to out. If the output writer is a terminal\n// device, the output will be formatted for improved readability.", "docstring_tokens": ["NewWriter", "creates", "writer", "that", "logs", "messages", "to", "out", ".", "If", "the", "output", "writer", "is", "a", "terminal", "device", "the", "output", "will", "be", "formatted", "for", "improved", "readability", "."], "sha": "86a724473171d9ea8f64c821ae04bf326f85d910", "url": "https://github.com/jjeffery/kv/blob/86a724473171d9ea8f64c821ae04bf326f85d910/kvlog/writer.go#L103-L108", "partition": "valid"} +{"repo": "jjeffery/kv", "path": "kvlog/writer.go", "func_name": "Levels", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Levels returns a list of levels and their associated actions.", "docstring_tokens": ["Levels", "returns", "a", "list", "of", "levels", "and", "their", "associated", "actions", "."], "sha": "86a724473171d9ea8f64c821ae04bf326f85d910", "url": "https://github.com/jjeffery/kv/blob/86a724473171d9ea8f64c821ae04bf326f85d910/kvlog/writer.go#L128-L141", "partition": "valid"} +{"repo": "jjeffery/kv", "path": "kvlog/writer.go", "func_name": "SetLevel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetLevel sets an individual level and its associated display effect.", "docstring_tokens": ["SetLevel", "sets", "an", "individual", "level", "and", "its", "associated", "display", "effect", "."], "sha": "86a724473171d9ea8f64c821ae04bf326f85d910", "url": "https://github.com/jjeffery/kv/blob/86a724473171d9ea8f64c821ae04bf326f85d910/kvlog/writer.go#L153-L157", "partition": "valid"} +{"repo": "jjeffery/kv", "path": "kvlog/writer.go", "func_name": "Suppress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Suppress instructs the writer to suppress any message with the specified level.", "docstring_tokens": ["Suppress", "instructs", "the", "writer", "to", "suppress", "any", "message", "with", "the", "specified", "level", "."], "sha": "86a724473171d9ea8f64c821ae04bf326f85d910", "url": "https://github.com/jjeffery/kv/blob/86a724473171d9ea8f64c821ae04bf326f85d910/kvlog/writer.go#L187-L193", "partition": "valid"} +{"repo": "jjeffery/kv", "path": "kvlog/writer.go", "func_name": "IsSuppressed", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsSuppressed reports true if level should be suppressed.", "docstring_tokens": ["IsSuppressed", "reports", "true", "if", "level", "should", "be", "suppressed", "."], "sha": "86a724473171d9ea8f64c821ae04bf326f85d910", "url": "https://github.com/jjeffery/kv/blob/86a724473171d9ea8f64c821ae04bf326f85d910/kvlog/writer.go#L196-L199", "partition": "valid"} +{"repo": "jjeffery/kv", "path": "kvlog/writer.go", "func_name": "Handle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Handle registers a handler that will be called for every logging\n// event. The function receives a message, which is a structured\n// representation of the log message text.\n//\n// This function is useful for registering handlers that send log\n// information to external sources.", "docstring_tokens": ["Handle", "registers", "a", "handler", "that", "will", "be", "called", "for", "every", "logging", "event", ".", "The", "function", "receives", "a", "message", "which", "is", "a", "structured", "representation", "of", "the", "log", "message", "text", ".", "This", "function", "is", "useful", "for", "registering", "handlers", "that", "send", "log", "information", "to", "external", "sources", "."], "sha": "86a724473171d9ea8f64c821ae04bf326f85d910", "url": "https://github.com/jjeffery/kv/blob/86a724473171d9ea8f64c821ae04bf326f85d910/kvlog/writer.go#L207-L214", "partition": "valid"} +{"repo": "jjeffery/kv", "path": "kvlog/writer.go", "func_name": "SetOutput", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetOutput sets the output destination for log messages.", "docstring_tokens": ["SetOutput", "sets", "the", "output", "destination", "for", "log", "messages", "."], "sha": "86a724473171d9ea8f64c821ae04bf326f85d910", "url": "https://github.com/jjeffery/kv/blob/86a724473171d9ea8f64c821ae04bf326f85d910/kvlog/writer.go#L237-L241", "partition": "valid"} +{"repo": "marstr/collection", "path": "filesystem.go", "func_name": "Enumerate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Enumerate lists the items in a `Directory`", "docstring_tokens": ["Enumerate", "lists", "the", "items", "in", "a", "Directory"], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/filesystem.go#L43-L77", "partition": "valid"} +{"repo": "marstr/collection", "path": "query.go", "func_name": "All", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// All tests whether or not all items present in an Enumerable meet a criteria.", "docstring_tokens": ["All", "tests", "whether", "or", "not", "all", "items", "present", "in", "an", "Enumerable", "meet", "a", "criteria", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/query.go#L62-L67", "partition": "valid"} +{"repo": "marstr/collection", "path": "query.go", "func_name": "All", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// All tests whether or not all items present meet a criteria.", "docstring_tokens": ["All", "tests", "whether", "or", "not", "all", "items", "present", "meet", "a", "criteria", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/query.go#L70-L77", "partition": "valid"} +{"repo": "marstr/collection", "path": "query.go", "func_name": "Any", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Any tests an Enumerable to see if there are any elements present.", "docstring_tokens": ["Any", "tests", "an", "Enumerable", "to", "see", "if", "there", "are", "any", "elements", "present", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/query.go#L80-L88", "partition": "valid"} +{"repo": "marstr/collection", "path": "query.go", "func_name": "Anyp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Anyp tests an Enumerable to see if there are any elements present that meet a criteria.", "docstring_tokens": ["Anyp", "tests", "an", "Enumerable", "to", "see", "if", "there", "are", "any", "elements", "present", "that", "meet", "a", "criteria", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/query.go#L91-L101", "partition": "valid"} +{"repo": "marstr/collection", "path": "query.go", "func_name": "AsEnumerable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AsEnumerable allows for easy conversion of a slice to a re-usable Enumerable object.", "docstring_tokens": ["AsEnumerable", "allows", "for", "easy", "conversion", "of", "a", "slice", "to", "a", "re", "-", "usable", "Enumerable", "object", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/query.go#L149-L162", "partition": "valid"} +{"repo": "marstr/collection", "path": "query.go", "func_name": "First", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// First retrieves just the first item in the list, or returns an error if there are no elements in the array.", "docstring_tokens": ["First", "retrieves", "just", "the", "first", "item", "in", "the", "list", "or", "returns", "an", "error", "if", "there", "are", "no", "elements", "in", "the", "array", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/query.go#L225-L238", "partition": "valid"} +{"repo": "marstr/collection", "path": "query.go", "func_name": "Merge", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Merge takes the results of this Enumerator and others, and funnels them into\n// a single Enumerator. The order of in which they will be combined is non-deterministic.", "docstring_tokens": ["Merge", "takes", "the", "results", "of", "this", "Enumerator", "and", "others", "and", "funnels", "them", "into", "a", "single", "Enumerator", ".", "The", "order", "of", "in", "which", "they", "will", "be", "combined", "is", "non", "-", "deterministic", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/query.go#L288-L311", "partition": "valid"} +{"repo": "marstr/collection", "path": "query.go", "func_name": "ParallelSelect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParallelSelect creates an Enumerable which will use all logically available CPUs to\n// execute a Transform.", "docstring_tokens": ["ParallelSelect", "creates", "an", "Enumerable", "which", "will", "use", "all", "logically", "available", "CPUs", "to", "execute", "a", "Transform", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/query.go#L324-L329", "partition": "valid"} +{"repo": "marstr/collection", "path": "query.go", "func_name": "ParallelSelect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParallelSelect will execute a Transform across all logical CPUs available to the current process.", "docstring_tokens": ["ParallelSelect", "will", "execute", "a", "Transform", "across", "all", "logical", "CPUs", "available", "to", "the", "current", "process", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/query.go#L332-L338", "partition": "valid"} +{"repo": "marstr/collection", "path": "query.go", "func_name": "Reverse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reverse returns items in the opposite order it encountered them in.", "docstring_tokens": ["Reverse", "returns", "items", "in", "the", "opposite", "order", "it", "encountered", "them", "in", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/query.go#L356-L372", "partition": "valid"} +{"repo": "marstr/collection", "path": "query.go", "func_name": "Select", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Select creates a reusable stream of transformed values.", "docstring_tokens": ["Select", "creates", "a", "reusable", "stream", "of", "transformed", "values", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/query.go#L384-L389", "partition": "valid"} +{"repo": "marstr/collection", "path": "query.go", "func_name": "Select", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Select iterates over a list and returns a transformed item.", "docstring_tokens": ["Select", "iterates", "over", "a", "list", "and", "returns", "a", "transformed", "item", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/query.go#L392-L403", "partition": "valid"} +{"repo": "marstr/collection", "path": "query.go", "func_name": "SelectMany", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SelectMany allows for unfolding of values.", "docstring_tokens": ["SelectMany", "allows", "for", "unfolding", "of", "values", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/query.go#L415-L420", "partition": "valid"} +{"repo": "marstr/collection", "path": "query.go", "func_name": "SelectMany", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SelectMany allows for flattening of data structures.", "docstring_tokens": ["SelectMany", "allows", "for", "flattening", "of", "data", "structures", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/query.go#L423-L436", "partition": "valid"} +{"repo": "marstr/collection", "path": "query.go", "func_name": "Single", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Single retreives the only element from a list, or returns nil and an error.", "docstring_tokens": ["Single", "retreives", "the", "only", "element", "from", "a", "list", "or", "returns", "nil", "and", "an", "error", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/query.go#L439-L458", "partition": "valid"} +{"repo": "marstr/collection", "path": "query.go", "func_name": "Singlep", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Singlep retrieces the only element from a list that matches a criteria. If\n// no match is found, or two or more are found, `Singlep` returns nil and an\n// error.", "docstring_tokens": ["Singlep", "retrieces", "the", "only", "element", "from", "a", "list", "that", "matches", "a", "criteria", ".", "If", "no", "match", "is", "found", "or", "two", "or", "more", "are", "found", "Singlep", "returns", "nil", "and", "an", "error", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/query.go#L463-L466", "partition": "valid"} +{"repo": "marstr/collection", "path": "query.go", "func_name": "Skip", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Skip creates a reusable stream which will skip the first `n` elements before iterating\n// over the rest of the elements in an Enumerable.", "docstring_tokens": ["Skip", "creates", "a", "reusable", "stream", "which", "will", "skip", "the", "first", "n", "elements", "before", "iterating", "over", "the", "rest", "of", "the", "elements", "in", "an", "Enumerable", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/query.go#L479-L484", "partition": "valid"} +{"repo": "marstr/collection", "path": "query.go", "func_name": "splitN", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// splitN creates N Enumerators, each will be a subset of the original Enumerator and will have\n// distinct populations from one another.", "docstring_tokens": ["splitN", "creates", "N", "Enumerators", "each", "will", "be", "a", "subset", "of", "the", "original", "Enumerator", "and", "will", "have", "distinct", "populations", "from", "one", "another", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/query.go#L508-L532", "partition": "valid"} +{"repo": "marstr/collection", "path": "query.go", "func_name": "Take", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Take retreives just the first `n` elements from an Enumerable.", "docstring_tokens": ["Take", "retreives", "just", "the", "first", "n", "elements", "from", "an", "Enumerable", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/query.go#L544-L549", "partition": "valid"} +{"repo": "marstr/collection", "path": "query.go", "func_name": "Take", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Take retreives just the first 'n' elements from an Enumerator.", "docstring_tokens": ["Take", "retreives", "just", "the", "first", "n", "elements", "from", "an", "Enumerator", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/query.go#L552-L568", "partition": "valid"} +{"repo": "marstr/collection", "path": "query.go", "func_name": "TakeWhile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TakeWhile creates a reusable stream which will halt once some criteria is no longer met.", "docstring_tokens": ["TakeWhile", "creates", "a", "reusable", "stream", "which", "will", "halt", "once", "some", "criteria", "is", "no", "longer", "met", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/query.go#L580-L585", "partition": "valid"} +{"repo": "marstr/collection", "path": "query.go", "func_name": "TakeWhile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TakeWhile continues returning items as long as 'criteria' holds true.", "docstring_tokens": ["TakeWhile", "continues", "returning", "items", "as", "long", "as", "criteria", "holds", "true", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/query.go#L588-L604", "partition": "valid"} +{"repo": "marstr/collection", "path": "query.go", "func_name": "Tee", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Tee creates two Enumerators which will have identical contents as one another.", "docstring_tokens": ["Tee", "creates", "two", "Enumerators", "which", "will", "have", "identical", "contents", "as", "one", "another", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/query.go#L607-L620", "partition": "valid"} +{"repo": "marstr/collection", "path": "query.go", "func_name": "ToSlice", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToSlice places all iterated over values in a Slice for easy consumption.", "docstring_tokens": ["ToSlice", "places", "all", "iterated", "over", "values", "in", "a", "Slice", "for", "easy", "consumption", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/query.go#L628-L634", "partition": "valid"} +{"repo": "marstr/collection", "path": "query.go", "func_name": "Where", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Where creates a reusable means of filtering a stream.", "docstring_tokens": ["Where", "creates", "a", "reusable", "means", "of", "filtering", "a", "stream", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/query.go#L657-L662", "partition": "valid"} +{"repo": "marstr/collection", "path": "query.go", "func_name": "Where", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Where iterates over a list and returns only the elements that satisfy a\n// predicate.", "docstring_tokens": ["Where", "iterates", "over", "a", "list", "and", "returns", "only", "the", "elements", "that", "satisfy", "a", "predicate", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/query.go#L666-L678", "partition": "valid"} +{"repo": "jjeffery/kv", "path": "internal/pool/pool.go", "func_name": "ReleaseBuffer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReleaseBuffer returns a buffer to the pool to be re-used.", "docstring_tokens": ["ReleaseBuffer", "returns", "a", "buffer", "to", "the", "pool", "to", "be", "re", "-", "used", "."], "sha": "86a724473171d9ea8f64c821ae04bf326f85d910", "url": "https://github.com/jjeffery/kv/blob/86a724473171d9ea8f64c821ae04bf326f85d910/internal/pool/pool.go#L23-L28", "partition": "valid"} +{"repo": "marstr/collection", "path": "stack.go", "func_name": "NewStack", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewStack instantiates a new FILO structure.", "docstring_tokens": ["NewStack", "instantiates", "a", "new", "FILO", "structure", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/stack.go#L14-L22", "partition": "valid"} +{"repo": "marstr/collection", "path": "stack.go", "func_name": "Enumerate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Enumerate peeks at each element in the stack without mutating it.", "docstring_tokens": ["Enumerate", "peeks", "at", "each", "element", "in", "the", "stack", "without", "mutating", "it", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/stack.go#L25-L30", "partition": "valid"} +{"repo": "marstr/collection", "path": "stack.go", "func_name": "IsEmpty", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsEmpty tests the Stack to determine if it is populate or not.", "docstring_tokens": ["IsEmpty", "tests", "the", "Stack", "to", "determine", "if", "it", "is", "populate", "or", "not", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/stack.go#L33-L37", "partition": "valid"} +{"repo": "marstr/collection", "path": "stack.go", "func_name": "Push", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Push adds an entry to the top of the Stack.", "docstring_tokens": ["Push", "adds", "an", "entry", "to", "the", "top", "of", "the", "Stack", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/stack.go#L40-L48", "partition": "valid"} +{"repo": "marstr/collection", "path": "stack.go", "func_name": "Pop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Pop returns the entry at the top of the Stack then removes it.", "docstring_tokens": ["Pop", "returns", "the", "entry", "at", "the", "top", "of", "the", "Stack", "then", "removes", "it", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/stack.go#L51-L59", "partition": "valid"} +{"repo": "marstr/collection", "path": "stack.go", "func_name": "Peek", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Peek returns the entry at the top of the Stack without removing it.", "docstring_tokens": ["Peek", "returns", "the", "entry", "at", "the", "top", "of", "the", "Stack", "without", "removing", "it", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/stack.go#L62-L66", "partition": "valid"} +{"repo": "marstr/collection", "path": "stack.go", "func_name": "Size", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Size returns the number of entries populating the Stack.", "docstring_tokens": ["Size", "returns", "the", "number", "of", "entries", "populating", "the", "Stack", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/stack.go#L69-L76", "partition": "valid"} +{"repo": "marstr/collection", "path": "linkedlist.go", "func_name": "NewLinkedList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLinkedList instantiates a new LinkedList with the entries provided.", "docstring_tokens": ["NewLinkedList", "instantiates", "a", "new", "LinkedList", "with", "the", "entries", "provided", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/linkedlist.go#L36-L44", "partition": "valid"} +{"repo": "marstr/collection", "path": "linkedlist.go", "func_name": "AddBack", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddBack creates an entry in the LinkedList that is logically at the back of the list.", "docstring_tokens": ["AddBack", "creates", "an", "entry", "in", "the", "LinkedList", "that", "is", "logically", "at", "the", "back", "of", "the", "list", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/linkedlist.go#L47-L65", "partition": "valid"} +{"repo": "marstr/collection", "path": "linkedlist.go", "func_name": "Enumerate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Enumerate creates a new instance of Enumerable which can be executed on.", "docstring_tokens": ["Enumerate", "creates", "a", "new", "instance", "of", "Enumerable", "which", "can", "be", "executed", "on", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/linkedlist.go#L87-L108", "partition": "valid"} +{"repo": "marstr/collection", "path": "linkedlist.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get finds the value from the LinkedList.\n// pos is expressed as a zero-based index begining from the 'front' of the list.", "docstring_tokens": ["Get", "finds", "the", "value", "from", "the", "LinkedList", ".", "pos", "is", "expressed", "as", "a", "zero", "-", "based", "index", "begining", "from", "the", "front", "of", "the", "list", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/linkedlist.go#L112-L120", "partition": "valid"} +{"repo": "marstr/collection", "path": "linkedlist.go", "func_name": "IsEmpty", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsEmpty tests the list to determine if it is populate or not.", "docstring_tokens": ["IsEmpty", "tests", "the", "list", "to", "determine", "if", "it", "is", "populate", "or", "not", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/linkedlist.go#L123-L128", "partition": "valid"} +{"repo": "marstr/collection", "path": "linkedlist.go", "func_name": "Length", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Length returns the number of elements present in the LinkedList.", "docstring_tokens": ["Length", "returns", "the", "number", "of", "elements", "present", "in", "the", "LinkedList", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/linkedlist.go#L131-L136", "partition": "valid"} +{"repo": "marstr/collection", "path": "linkedlist.go", "func_name": "PeekBack", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PeekBack returns the entry logicall stored at the back of the list without removing it.", "docstring_tokens": ["PeekBack", "returns", "the", "entry", "logicall", "stored", "at", "the", "back", "of", "the", "list", "without", "removing", "it", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/linkedlist.go#L139-L147", "partition": "valid"} +{"repo": "marstr/collection", "path": "linkedlist.go", "func_name": "PeekFront", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PeekFront returns the entry logically stored at the front of this list without removing it.", "docstring_tokens": ["PeekFront", "returns", "the", "entry", "logically", "stored", "at", "the", "front", "of", "this", "list", "without", "removing", "it", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/linkedlist.go#L150-L158", "partition": "valid"} +{"repo": "marstr/collection", "path": "linkedlist.go", "func_name": "RemoveFront", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveFront returns the entry logically stored at the front of this list and removes it.", "docstring_tokens": ["RemoveFront", "returns", "the", "entry", "logically", "stored", "at", "the", "front", "of", "this", "list", "and", "removes", "it", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/linkedlist.go#L161-L179", "partition": "valid"} +{"repo": "marstr/collection", "path": "linkedlist.go", "func_name": "RemoveBack", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveBack returns the entry logically stored at the back of this list and removes it.", "docstring_tokens": ["RemoveBack", "returns", "the", "entry", "logically", "stored", "at", "the", "back", "of", "this", "list", "and", "removes", "it", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/linkedlist.go#L182-L200", "partition": "valid"} +{"repo": "marstr/collection", "path": "linkedlist.go", "func_name": "Sort", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sort rearranges the positions of the entries in this list so that they are\n// ascending.", "docstring_tokens": ["Sort", "rearranges", "the", "positions", "of", "the", "entries", "in", "this", "list", "so", "that", "they", "are", "ascending", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/linkedlist.go#L204-L214", "partition": "valid"} +{"repo": "marstr/collection", "path": "linkedlist.go", "func_name": "Sorta", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sorta rearranges the position of string entries in this list so that they\n// are ascending.", "docstring_tokens": ["Sorta", "rearranges", "the", "position", "of", "string", "entries", "in", "this", "list", "so", "that", "they", "are", "ascending", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/linkedlist.go#L218-L237", "partition": "valid"} +{"repo": "marstr/collection", "path": "linkedlist.go", "func_name": "Sorti", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sorti rearranges the position of integer entries in this list so that they\n// are ascending.", "docstring_tokens": ["Sorti", "rearranges", "the", "position", "of", "integer", "entries", "in", "this", "list", "so", "that", "they", "are", "ascending", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/linkedlist.go#L241-L262", "partition": "valid"} +{"repo": "marstr/collection", "path": "linkedlist.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String prints upto the first fifteen elements of the list in string format.", "docstring_tokens": ["String", "prints", "upto", "the", "first", "fifteen", "elements", "of", "the", "list", "in", "string", "format", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/linkedlist.go#L265-L282", "partition": "valid"} +{"repo": "marstr/collection", "path": "linkedlist.go", "func_name": "Swap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Swap switches the positions in which two values are stored in this list.\n// x and y represent the indexes of the items that should be swapped.", "docstring_tokens": ["Swap", "switches", "the", "positions", "in", "which", "two", "values", "are", "stored", "in", "this", "list", ".", "x", "and", "y", "represent", "the", "indexes", "of", "the", "items", "that", "should", "be", "swapped", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/linkedlist.go#L286-L306", "partition": "valid"} +{"repo": "marstr/collection", "path": "linkedlist.go", "func_name": "merge", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// merge takes two sorted lists and merges them into one sorted list.\n// Behavior is undefined when you pass a non-sorted list as `left` or `right`", "docstring_tokens": ["merge", "takes", "two", "sorted", "lists", "and", "merges", "them", "into", "one", "sorted", "list", ".", "Behavior", "is", "undefined", "when", "you", "pass", "a", "non", "-", "sorted", "list", "as", "left", "or", "right"], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/linkedlist.go#L336-L374", "partition": "valid"} +{"repo": "marstr/collection", "path": "linkedlist.go", "func_name": "split", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// split breaks a list in half.", "docstring_tokens": ["split", "breaks", "a", "list", "in", "half", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/linkedlist.go#L407-L422", "partition": "valid"} +{"repo": "marstr/collection", "path": "queue.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add places an item at the back of the Queue.", "docstring_tokens": ["Add", "places", "an", "item", "at", "the", "back", "of", "the", "Queue", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/queue.go#L22-L29", "partition": "valid"} +{"repo": "marstr/collection", "path": "queue.go", "func_name": "Enumerate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Enumerate peeks at each element of this queue without mutating it.", "docstring_tokens": ["Enumerate", "peeks", "at", "each", "element", "of", "this", "queue", "without", "mutating", "it", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/queue.go#L32-L36", "partition": "valid"} +{"repo": "marstr/collection", "path": "queue.go", "func_name": "IsEmpty", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsEmpty tests the Queue to determine if it is populate or not.", "docstring_tokens": ["IsEmpty", "tests", "the", "Queue", "to", "determine", "if", "it", "is", "populate", "or", "not", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/queue.go#L39-L43", "partition": "valid"} +{"repo": "marstr/collection", "path": "queue.go", "func_name": "Length", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Length returns the number of items in the Queue.", "docstring_tokens": ["Length", "returns", "the", "number", "of", "items", "in", "the", "Queue", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/queue.go#L46-L53", "partition": "valid"} +{"repo": "marstr/collection", "path": "queue.go", "func_name": "Next", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Next removes and returns the next item in the Queue.", "docstring_tokens": ["Next", "removes", "and", "returns", "the", "next", "item", "in", "the", "Queue", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/queue.go#L56-L63", "partition": "valid"} +{"repo": "marstr/collection", "path": "queue.go", "func_name": "Peek", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Peek returns the next item in the Queue without removing it.", "docstring_tokens": ["Peek", "returns", "the", "next", "item", "in", "the", "Queue", "without", "removing", "it", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/queue.go#L66-L73", "partition": "valid"} +{"repo": "marstr/collection", "path": "queue.go", "func_name": "ToSlice", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToSlice converts a Queue into a slice.", "docstring_tokens": ["ToSlice", "converts", "a", "Queue", "into", "a", "slice", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/queue.go#L76-L84", "partition": "valid"} +{"repo": "jjeffery/kv", "path": "internal/terminal/terminal_windows.go", "func_name": "EnableVirtualTerminalProcessing", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EnableVirtualTerminalProcessing configures the terminal to accept ANSI\n// sequences. This is a no-op for all operating systems other than Windows.", "docstring_tokens": ["EnableVirtualTerminalProcessing", "configures", "the", "terminal", "to", "accept", "ANSI", "sequences", ".", "This", "is", "a", "no", "-", "op", "for", "all", "operating", "systems", "other", "than", "Windows", "."], "sha": "86a724473171d9ea8f64c821ae04bf326f85d910", "url": "https://github.com/jjeffery/kv/blob/86a724473171d9ea8f64c821ae04bf326f85d910/internal/terminal/terminal_windows.go#L27-L37", "partition": "valid"} +{"repo": "jjeffery/kv", "path": "internal/parse/unquote.go", "func_name": "unquote", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// unquote the input. If possible the unquoted value points to the same\n// backing array as input. Otherwise it points to buf. The remainder is\n// the unused portion of buf.", "docstring_tokens": ["unquote", "the", "input", ".", "If", "possible", "the", "unquoted", "value", "points", "to", "the", "same", "backing", "array", "as", "input", ".", "Otherwise", "it", "points", "to", "buf", ".", "The", "remainder", "is", "the", "unused", "portion", "of", "buf", "."], "sha": "86a724473171d9ea8f64c821ae04bf326f85d910", "url": "https://github.com/jjeffery/kv/blob/86a724473171d9ea8f64c821ae04bf326f85d910/internal/parse/unquote.go#L13-L64", "partition": "valid"} +{"repo": "jjeffery/kv", "path": "flatten.go", "func_name": "countScalars", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// countScalars returns the count of items in input up to but\n// not including the first non-scalar item. A scalar is a single\n// value item, ie not a keyvalser.", "docstring_tokens": ["countScalars", "returns", "the", "count", "of", "items", "in", "input", "up", "to", "but", "not", "including", "the", "first", "non", "-", "scalar", "item", ".", "A", "scalar", "is", "a", "single", "value", "item", "ie", "not", "a", "keyvalser", "."], "sha": "86a724473171d9ea8f64c821ae04bf326f85d910", "url": "https://github.com/jjeffery/kv/blob/86a724473171d9ea8f64c821ae04bf326f85d910/flatten.go#L189-L197", "partition": "valid"} +{"repo": "jjeffery/kv", "path": "kvlog/kvlog.go", "func_name": "IsTerminal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsTerminal returns true if the writer is a terminal.", "docstring_tokens": ["IsTerminal", "returns", "true", "if", "the", "writer", "is", "a", "terminal", "."], "sha": "86a724473171d9ea8f64c821ae04bf326f85d910", "url": "https://github.com/jjeffery/kv/blob/86a724473171d9ea8f64c821ae04bf326f85d910/kvlog/kvlog.go#L14-L19", "partition": "valid"} +{"repo": "marstr/collection", "path": "list.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add appends an entry to the logical end of the List.", "docstring_tokens": ["Add", "appends", "an", "entry", "to", "the", "logical", "end", "of", "the", "List", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/list.go#L24-L28", "partition": "valid"} +{"repo": "marstr/collection", "path": "list.go", "func_name": "AddAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddAt injects values beginning at `pos`. If multiple values\n// are provided in `entries` they are placed in the same order\n// they are provided.", "docstring_tokens": ["AddAt", "injects", "values", "beginning", "at", "pos", ".", "If", "multiple", "values", "are", "provided", "in", "entries", "they", "are", "placed", "in", "the", "same", "order", "they", "are", "provided", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/list.go#L33-L38", "partition": "valid"} +{"repo": "marstr/collection", "path": "list.go", "func_name": "Enumerate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Enumerate lists each element present in the collection", "docstring_tokens": ["Enumerate", "lists", "each", "element", "present", "in", "the", "collection"], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/list.go#L41-L60", "partition": "valid"} +{"repo": "marstr/collection", "path": "list.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get retreives the value stored in a particular position of the list.\n// If no item exists at the given position, the second parameter will be\n// returned as false.", "docstring_tokens": ["Get", "retreives", "the", "value", "stored", "in", "a", "particular", "position", "of", "the", "list", ".", "If", "no", "item", "exists", "at", "the", "given", "position", "the", "second", "parameter", "will", "be", "returned", "as", "false", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/list.go#L65-L73", "partition": "valid"} +{"repo": "marstr/collection", "path": "list.go", "func_name": "IsEmpty", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsEmpty tests to see if this List has any elements present.", "docstring_tokens": ["IsEmpty", "tests", "to", "see", "if", "this", "List", "has", "any", "elements", "present", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/list.go#L76-L80", "partition": "valid"} +{"repo": "marstr/collection", "path": "list.go", "func_name": "Length", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Length returns the number of elements in the List.", "docstring_tokens": ["Length", "returns", "the", "number", "of", "elements", "in", "the", "List", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/list.go#L83-L87", "partition": "valid"} +{"repo": "marstr/collection", "path": "list.go", "func_name": "Remove", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Remove retreives a value from this List and shifts all other values.", "docstring_tokens": ["Remove", "retreives", "a", "value", "from", "this", "List", "and", "shifts", "all", "other", "values", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/list.go#L90-L100", "partition": "valid"} +{"repo": "marstr/collection", "path": "list.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set updates the value stored at a given position in the List.", "docstring_tokens": ["Set", "updates", "the", "value", "stored", "at", "a", "given", "position", "in", "the", "List", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/list.go#L103-L115", "partition": "valid"} +{"repo": "marstr/collection", "path": "list.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String generates a textual representation of the List for the sake of debugging.", "docstring_tokens": ["String", "generates", "a", "textual", "representation", "of", "the", "List", "for", "the", "sake", "of", "debugging", "."], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/list.go#L118-L134", "partition": "valid"} +{"repo": "marstr/collection", "path": "list.go", "func_name": "Swap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Swap switches the values that are stored at positions `x` and `y`", "docstring_tokens": ["Swap", "switches", "the", "values", "that", "are", "stored", "at", "positions", "x", "and", "y"], "sha": "43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3", "url": "https://github.com/marstr/collection/blob/43f1d00df9bf332cbf8d26c3eecd6c348e92f7b3/list.go#L137-L141", "partition": "valid"} +{"repo": "jjeffery/kv", "path": "list.go", "func_name": "MarshalText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalText implements the TextMarshaler interface.", "docstring_tokens": ["MarshalText", "implements", "the", "TextMarshaler", "interface", "."], "sha": "86a724473171d9ea8f64c821ae04bf326f85d910", "url": "https://github.com/jjeffery/kv/blob/86a724473171d9ea8f64c821ae04bf326f85d910/list.go#L53-L57", "partition": "valid"} +{"repo": "jjeffery/kv", "path": "list.go", "func_name": "UnmarshalText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalText implements the TextUnmarshaler interface.", "docstring_tokens": ["UnmarshalText", "implements", "the", "TextUnmarshaler", "interface", "."], "sha": "86a724473171d9ea8f64c821ae04bf326f85d910", "url": "https://github.com/jjeffery/kv/blob/86a724473171d9ea8f64c821ae04bf326f85d910/list.go#L77-L94", "partition": "valid"} +{"repo": "hhkbp2/go-strftime", "path": "strftime.go", "func_name": "repl", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// repl replaces % directives with right time", "docstring_tokens": ["repl", "replaces", "%", "directives", "with", "right", "time"], "sha": "d82166ec6782f870431668391c2e321069632fe7", "url": "https://github.com/hhkbp2/go-strftime/blob/d82166ec6782f870431668391c2e321069632fe7/strftime.go#L184-L194", "partition": "valid"} +{"repo": "hhkbp2/go-strftime", "path": "strftime.go", "func_name": "Format", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Format return string with % directives expanded.\n// Will return error on unknown directive.", "docstring_tokens": ["Format", "return", "string", "with", "%", "directives", "expanded", ".", "Will", "return", "error", "on", "unknown", "directive", "."], "sha": "d82166ec6782f870431668391c2e321069632fe7", "url": "https://github.com/hhkbp2/go-strftime/blob/d82166ec6782f870431668391c2e321069632fe7/strftime.go#L198-L203", "partition": "valid"} +{"repo": "cosnicolaou/llog", "path": "glog_file.go", "func_name": "logName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// logName returns a new log file name containing tag, with start time t, and\n// the name for the symlink for tag.", "docstring_tokens": ["logName", "returns", "a", "new", "log", "file", "name", "containing", "tag", "with", "start", "time", "t", "and", "the", "name", "for", "the", "symlink", "for", "tag", "."], "sha": "c6fefee34f592d5efa1183650f2fb9100f108e1b", "url": "https://github.com/cosnicolaou/llog/blob/c6fefee34f592d5efa1183650f2fb9100f108e1b/glog_file.go#L67-L82", "partition": "valid"} +{"repo": "spacemonkeygo/monotime", "path": "mono.go", "func_name": "Monotonic", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Monotonic returns a time duration from some fixed point in the past.", "docstring_tokens": ["Monotonic", "returns", "a", "time", "duration", "from", "some", "fixed", "point", "in", "the", "past", "."], "sha": "e3f48a95f98a18c3a2388f616480ec98ff5ba8e3", "url": "https://github.com/spacemonkeygo/monotime/blob/e3f48a95f98a18c3a2388f616480ec98ff5ba8e3/mono.go#L29-L32", "partition": "valid"} +{"repo": "cosnicolaou/llog", "path": "glog.go", "func_name": "set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// set sets the value of the severity.", "docstring_tokens": ["set", "sets", "the", "value", "of", "the", "severity", "."], "sha": "c6fefee34f592d5efa1183650f2fb9100f108e1b", "url": "https://github.com/cosnicolaou/llog/blob/c6fefee34f592d5efa1183650f2fb9100f108e1b/glog.go#L142-L144", "partition": "valid"} +{"repo": "cosnicolaou/llog", "path": "glog.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set is part of the flag.Value interface.", "docstring_tokens": ["Set", "is", "part", "of", "the", "flag", ".", "Value", "interface", "."], "sha": "c6fefee34f592d5efa1183650f2fb9100f108e1b", "url": "https://github.com/cosnicolaou/llog/blob/c6fefee34f592d5efa1183650f2fb9100f108e1b/glog.go#L152-L166", "partition": "valid"} +{"repo": "cosnicolaou/llog", "path": "glog.go", "func_name": "set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// set sets the value of the Level.", "docstring_tokens": ["set", "sets", "the", "value", "of", "the", "Level", "."], "sha": "c6fefee34f592d5efa1183650f2fb9100f108e1b", "url": "https://github.com/cosnicolaou/llog/blob/c6fefee34f592d5efa1183650f2fb9100f108e1b/glog.go#L220-L222", "partition": "valid"} +{"repo": "cosnicolaou/llog", "path": "glog.go", "func_name": "match", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// match reports whether the file matches the pattern. It uses a string\n// comparison if the pattern contains no metacharacters.", "docstring_tokens": ["match", "reports", "whether", "the", "file", "matches", "the", "pattern", ".", "It", "uses", "a", "string", "comparison", "if", "the", "pattern", "contains", "no", "metacharacters", "."], "sha": "c6fefee34f592d5efa1183650f2fb9100f108e1b", "url": "https://github.com/cosnicolaou/llog/blob/c6fefee34f592d5efa1183650f2fb9100f108e1b/glog.go#L259-L265", "partition": "valid"} +{"repo": "cosnicolaou/llog", "path": "glog.go", "func_name": "match", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// match reports whether the file path matches the regexp.", "docstring_tokens": ["match", "reports", "whether", "the", "file", "path", "matches", "the", "regexp", "."], "sha": "c6fefee34f592d5efa1183650f2fb9100f108e1b", "url": "https://github.com/cosnicolaou/llog/blob/c6fefee34f592d5efa1183650f2fb9100f108e1b/glog.go#L280-L282", "partition": "valid"} +{"repo": "cosnicolaou/llog", "path": "glog.go", "func_name": "match", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// match reports whether the specified file and line matches the trace location.\n// The argument file name is the full path, not the basename specified in the flag.", "docstring_tokens": ["match", "reports", "whether", "the", "specified", "file", "and", "line", "matches", "the", "trace", "location", ".", "The", "argument", "file", "name", "is", "the", "full", "path", "not", "the", "basename", "specified", "in", "the", "flag", "."], "sha": "c6fefee34f592d5efa1183650f2fb9100f108e1b", "url": "https://github.com/cosnicolaou/llog/blob/c6fefee34f592d5efa1183650f2fb9100f108e1b/glog.go#L407-L415", "partition": "valid"} +{"repo": "cosnicolaou/llog", "path": "glog.go", "func_name": "NewLogger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLogger creates a new logger.\n// name is a non-empty string that appears in the names of log files\n// to distinguish between separate instances of the logger writing to the\n// same directory.\n// skip is the number of stack frames to skip in order to reach the\n// call point to be logged. 0 will log the caller of the logging methods,\n// 1 their caller etc.", "docstring_tokens": ["NewLogger", "creates", "a", "new", "logger", ".", "name", "is", "a", "non", "-", "empty", "string", "that", "appears", "in", "the", "names", "of", "log", "files", "to", "distinguish", "between", "separate", "instances", "of", "the", "logger", "writing", "to", "the", "same", "directory", ".", "skip", "is", "the", "number", "of", "stack", "frames", "to", "skip", "in", "order", "to", "reach", "the", "call", "point", "to", "be", "logged", ".", "0", "will", "log", "the", "caller", "of", "the", "logging", "methods", "1", "their", "caller", "etc", "."], "sha": "c6fefee34f592d5efa1183650f2fb9100f108e1b", "url": "https://github.com/cosnicolaou/llog/blob/c6fefee34f592d5efa1183650f2fb9100f108e1b/glog.go#L530-L548", "partition": "valid"} +{"repo": "cosnicolaou/llog", "path": "glog.go", "func_name": "SetLogDir", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// logDir if non-empty, write log files to this directory.", "docstring_tokens": ["logDir", "if", "non", "-", "empty", "write", "log", "files", "to", "this", "directory", "."], "sha": "c6fefee34f592d5efa1183650f2fb9100f108e1b", "url": "https://github.com/cosnicolaou/llog/blob/c6fefee34f592d5efa1183650f2fb9100f108e1b/glog.go#L556-L562", "partition": "valid"} +{"repo": "cosnicolaou/llog", "path": "glog.go", "func_name": "SetLogToStderr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetLogToStderr sets the flag that, if true, logs to standard error instead of files", "docstring_tokens": ["SetLogToStderr", "sets", "the", "flag", "that", "if", "true", "logs", "to", "standard", "error", "instead", "of", "files"], "sha": "c6fefee34f592d5efa1183650f2fb9100f108e1b", "url": "https://github.com/cosnicolaou/llog/blob/c6fefee34f592d5efa1183650f2fb9100f108e1b/glog.go#L565-L570", "partition": "valid"} +{"repo": "cosnicolaou/llog", "path": "glog.go", "func_name": "SetAlsoLogToStderr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetAlsoLogToStderr sets the flag that, if true, logs to standard error as well as files", "docstring_tokens": ["SetAlsoLogToStderr", "sets", "the", "flag", "that", "if", "true", "logs", "to", "standard", "error", "as", "well", "as", "files"], "sha": "c6fefee34f592d5efa1183650f2fb9100f108e1b", "url": "https://github.com/cosnicolaou/llog/blob/c6fefee34f592d5efa1183650f2fb9100f108e1b/glog.go#L573-L578", "partition": "valid"} +{"repo": "cosnicolaou/llog", "path": "glog.go", "func_name": "setVState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setVState sets a consistent state for V logging. A nil value for\n// modules or filepaths will result in that filter not being changed.\n// l.mu is held.", "docstring_tokens": ["setVState", "sets", "a", "consistent", "state", "for", "V", "logging", ".", "A", "nil", "value", "for", "modules", "or", "filepaths", "will", "result", "in", "that", "filter", "not", "being", "changed", ".", "l", ".", "mu", "is", "held", "."], "sha": "c6fefee34f592d5efa1183650f2fb9100f108e1b", "url": "https://github.com/cosnicolaou/llog/blob/c6fefee34f592d5efa1183650f2fb9100f108e1b/glog.go#L631-L654", "partition": "valid"} +{"repo": "cosnicolaou/llog", "path": "glog.go", "func_name": "getBuffer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getBuffer returns a new, ready-to-use buffer.", "docstring_tokens": ["getBuffer", "returns", "a", "new", "ready", "-", "to", "-", "use", "buffer", "."], "sha": "c6fefee34f592d5efa1183650f2fb9100f108e1b", "url": "https://github.com/cosnicolaou/llog/blob/c6fefee34f592d5efa1183650f2fb9100f108e1b/glog.go#L657-L671", "partition": "valid"} +{"repo": "cosnicolaou/llog", "path": "glog.go", "func_name": "putBuffer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// putBuffer returns a buffer to the free list.", "docstring_tokens": ["putBuffer", "returns", "a", "buffer", "to", "the", "free", "list", "."], "sha": "c6fefee34f592d5efa1183650f2fb9100f108e1b", "url": "https://github.com/cosnicolaou/llog/blob/c6fefee34f592d5efa1183650f2fb9100f108e1b/glog.go#L674-L683", "partition": "valid"} +{"repo": "cosnicolaou/llog", "path": "glog.go", "func_name": "output", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// output writes the data to the log files and releases the buffer.", "docstring_tokens": ["output", "writes", "the", "data", "to", "the", "log", "files", "and", "releases", "the", "buffer", "."], "sha": "c6fefee34f592d5efa1183650f2fb9100f108e1b", "url": "https://github.com/cosnicolaou/llog/blob/c6fefee34f592d5efa1183650f2fb9100f108e1b/glog.go#L831-L888", "partition": "valid"} +{"repo": "cosnicolaou/llog", "path": "glog.go", "func_name": "timeoutFlush", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// timeoutFlush calls Flush and returns when it completes or after timeout\n// elapses, whichever happens first. This is needed because the hooks invoked\n// by Flush may deadlock when glog.Fatal is called from a hook that holds\n// a lock.", "docstring_tokens": ["timeoutFlush", "calls", "Flush", "and", "returns", "when", "it", "completes", "or", "after", "timeout", "elapses", "whichever", "happens", "first", ".", "This", "is", "needed", "because", "the", "hooks", "invoked", "by", "Flush", "may", "deadlock", "when", "glog", ".", "Fatal", "is", "called", "from", "a", "hook", "that", "holds", "a", "lock", "."], "sha": "c6fefee34f592d5efa1183650f2fb9100f108e1b", "url": "https://github.com/cosnicolaou/llog/blob/c6fefee34f592d5efa1183650f2fb9100f108e1b/glog.go#L894-L905", "partition": "valid"} +{"repo": "cosnicolaou/llog", "path": "glog.go", "func_name": "stacks", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// stacks is a wrapper for runtime.Stack that attempts to recover the data for all goroutines.", "docstring_tokens": ["stacks", "is", "a", "wrapper", "for", "runtime", ".", "Stack", "that", "attempts", "to", "recover", "the", "data", "for", "all", "goroutines", "."], "sha": "c6fefee34f592d5efa1183650f2fb9100f108e1b", "url": "https://github.com/cosnicolaou/llog/blob/c6fefee34f592d5efa1183650f2fb9100f108e1b/glog.go#L908-L921", "partition": "valid"} +{"repo": "cosnicolaou/llog", "path": "glog.go", "func_name": "exit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// exit is called if there is trouble creating or writing log files.\n// It flushes the logs and exits the program; there's no point in hanging around.\n// l.mu is held.", "docstring_tokens": ["exit", "is", "called", "if", "there", "is", "trouble", "creating", "or", "writing", "log", "files", ".", "It", "flushes", "the", "logs", "and", "exits", "the", "program", ";", "there", "s", "no", "point", "in", "hanging", "around", ".", "l", ".", "mu", "is", "held", "."], "sha": "c6fefee34f592d5efa1183650f2fb9100f108e1b", "url": "https://github.com/cosnicolaou/llog/blob/c6fefee34f592d5efa1183650f2fb9100f108e1b/glog.go#L932-L941", "partition": "valid"} +{"repo": "cosnicolaou/llog", "path": "glog.go", "func_name": "rotateFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// rotateFile closes the syncBuffer's file and starts a new one.", "docstring_tokens": ["rotateFile", "closes", "the", "syncBuffer", "s", "file", "and", "starts", "a", "new", "one", "."], "sha": "c6fefee34f592d5efa1183650f2fb9100f108e1b", "url": "https://github.com/cosnicolaou/llog/blob/c6fefee34f592d5efa1183650f2fb9100f108e1b/glog.go#L974-L997", "partition": "valid"} +{"repo": "cosnicolaou/llog", "path": "glog.go", "func_name": "createFiles", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// createFiles creates all the log files for severity from sev down to infoLog.\n// l.mu is held.", "docstring_tokens": ["createFiles", "creates", "all", "the", "log", "files", "for", "severity", "from", "sev", "down", "to", "infoLog", ".", "l", ".", "mu", "is", "held", "."], "sha": "c6fefee34f592d5efa1183650f2fb9100f108e1b", "url": "https://github.com/cosnicolaou/llog/blob/c6fefee34f592d5efa1183650f2fb9100f108e1b/glog.go#L1014-L1026", "partition": "valid"} +{"repo": "cosnicolaou/llog", "path": "glog.go", "func_name": "flushDaemon", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flushDaemon periodically flushes the log file buffers.", "docstring_tokens": ["flushDaemon", "periodically", "flushes", "the", "log", "file", "buffers", "."], "sha": "c6fefee34f592d5efa1183650f2fb9100f108e1b", "url": "https://github.com/cosnicolaou/llog/blob/c6fefee34f592d5efa1183650f2fb9100f108e1b/glog.go#L1031-L1035", "partition": "valid"} +{"repo": "cosnicolaou/llog", "path": "glog.go", "func_name": "lockAndFlushAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// lockAndFlushAll is like flushAll but locks l.mu first.", "docstring_tokens": ["lockAndFlushAll", "is", "like", "flushAll", "but", "locks", "l", ".", "mu", "first", "."], "sha": "c6fefee34f592d5efa1183650f2fb9100f108e1b", "url": "https://github.com/cosnicolaou/llog/blob/c6fefee34f592d5efa1183650f2fb9100f108e1b/glog.go#L1038-L1042", "partition": "valid"} +{"repo": "cosnicolaou/llog", "path": "glog.go", "func_name": "flushAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flushAll flushes all the logs and attempts to \"sync\" their data to disk.\n// l.mu is held.", "docstring_tokens": ["flushAll", "flushes", "all", "the", "logs", "and", "attempts", "to", "sync", "their", "data", "to", "disk", ".", "l", ".", "mu", "is", "held", "."], "sha": "c6fefee34f592d5efa1183650f2fb9100f108e1b", "url": "https://github.com/cosnicolaou/llog/blob/c6fefee34f592d5efa1183650f2fb9100f108e1b/glog.go#L1050-L1059", "partition": "valid"} +{"repo": "jacobsa/syncutil", "path": "bundle.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add a new operation to the bundle. The operation will be invoked with a\n// context that will be cancelled if any other operation fails or has already\n// failed.", "docstring_tokens": ["Add", "a", "new", "operation", "to", "the", "bundle", ".", "The", "operation", "will", "be", "invoked", "with", "a", "context", "that", "will", "be", "cancelled", "if", "any", "other", "operation", "fails", "or", "has", "already", "failed", "."], "sha": "228ac8e5a6c3992346c7d4565650c37f7bb477b6", "url": "https://github.com/jacobsa/syncutil/blob/228ac8e5a6c3992346c7d4565650c37f7bb477b6/bundle.go#L82-L100", "partition": "valid"} +{"repo": "jacobsa/syncutil", "path": "bundle.go", "func_name": "Join", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Wait for all previously-added operations to complete. Return nil if all\n// operations succeeded. Otherwise return the first error.\n//\n// Add must not be called concurrently with or after Join.", "docstring_tokens": ["Wait", "for", "all", "previously", "-", "added", "operations", "to", "complete", ".", "Return", "nil", "if", "all", "operations", "succeeded", ".", "Otherwise", "return", "the", "first", "error", ".", "Add", "must", "not", "be", "called", "concurrently", "with", "or", "after", "Join", "."], "sha": "228ac8e5a6c3992346c7d4565650c37f7bb477b6", "url": "https://github.com/jacobsa/syncutil/blob/228ac8e5a6c3992346c7d4565650c37f7bb477b6/bundle.go#L106-L115", "partition": "valid"} +{"repo": "jacobsa/syncutil", "path": "bundle.go", "func_name": "NewBundle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create a bundle whose operations are fed a context inheriting from the given\n// parent context, which must be non-nil. The bundle must eventually be joined\n// with Join.", "docstring_tokens": ["Create", "a", "bundle", "whose", "operations", "are", "fed", "a", "context", "inheriting", "from", "the", "given", "parent", "context", "which", "must", "be", "non", "-", "nil", ".", "The", "bundle", "must", "eventually", "be", "joined", "with", "Join", "."], "sha": "228ac8e5a6c3992346c7d4565650c37f7bb477b6", "url": "https://github.com/jacobsa/syncutil/blob/228ac8e5a6c3992346c7d4565650c37f7bb477b6/bundle.go#L120-L125", "partition": "valid"} +{"repo": "vektra/tachyon", "path": "lisp/tokens.go", "func_name": "Expand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Expand until there are no more expansions to do", "docstring_tokens": ["Expand", "until", "there", "are", "no", "more", "expansions", "to", "do"], "sha": "0da4f3861aef5471cfd69a2d265584fafe70230f", "url": "https://github.com/vektra/tachyon/blob/0da4f3861aef5471cfd69a2d265584fafe70230f/lisp/tokens.go#L88-L116", "partition": "valid"} +{"repo": "kataras/httpcache", "path": "httpcache.go", "func_name": "CacheFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CacheFunc accepts two parameters\n// first is the http.HandlerFunc which you want to cache its result\n// the second is, optional, the cache Entry's expiration duration\n// if the expiration <=2 seconds then expiration is taken by the \"cache-control's maxage\" header\n// returns an http.HandlerFunc, which you can use as your default router or per-route handler\n//\n// All type of responses are cached, templates, json, text, anything.\n//\n// You CAN NOT add validators with this function", "docstring_tokens": ["CacheFunc", "accepts", "two", "parameters", "first", "is", "the", "http", ".", "HandlerFunc", "which", "you", "want", "to", "cache", "its", "result", "the", "second", "is", "optional", "the", "cache", "Entry", "s", "expiration", "duration", "if", "the", "expiration", "<", "=", "2", "seconds", "then", "expiration", "is", "taken", "by", "the", "cache", "-", "control", "s", "maxage", "header", "returns", "an", "http", ".", "HandlerFunc", "which", "you", "can", "use", "as", "your", "default", "router", "or", "per", "-", "route", "handler", "All", "type", "of", "responses", "are", "cached", "templates", "json", "text", "anything", ".", "You", "CAN", "NOT", "add", "validators", "with", "this", "function"], "sha": "01f18a9beadcc489be4f89c92e82c02e251268cc", "url": "https://github.com/kataras/httpcache/blob/01f18a9beadcc489be4f89c92e82c02e251268cc/httpcache.go#L43-L45", "partition": "valid"} +{"repo": "kataras/httpcache", "path": "httpcache.go", "func_name": "CacheFasthttp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CacheFasthttp accepts two parameters\n// first is the fasthttp.RequestHandler which you want to cache its result\n// the second is, optional, the cache Entry's expiration duration\n// if the expiration <=2 seconds then expiration is taken by the \"cache-control's maxage\" header\n// returns a fhttp.Handler with a ServeHTTP which is the fasthttp.RequestHandler,\n// which you can use as your default router or per-route handler\n//\n// All type of responses are cached, templates, json, text, anything.\n//\n// You can add validators with this function", "docstring_tokens": ["CacheFasthttp", "accepts", "two", "parameters", "first", "is", "the", "fasthttp", ".", "RequestHandler", "which", "you", "want", "to", "cache", "its", "result", "the", "second", "is", "optional", "the", "cache", "Entry", "s", "expiration", "duration", "if", "the", "expiration", "<", "=", "2", "seconds", "then", "expiration", "is", "taken", "by", "the", "cache", "-", "control", "s", "maxage", "header", "returns", "a", "fhttp", ".", "Handler", "with", "a", "ServeHTTP", "which", "is", "the", "fasthttp", ".", "RequestHandler", "which", "you", "can", "use", "as", "your", "default", "router", "or", "per", "-", "route", "handler", "All", "type", "of", "responses", "are", "cached", "templates", "json", "text", "anything", ".", "You", "can", "add", "validators", "with", "this", "function"], "sha": "01f18a9beadcc489be4f89c92e82c02e251268cc", "url": "https://github.com/kataras/httpcache/blob/01f18a9beadcc489be4f89c92e82c02e251268cc/httpcache.go#L57-L59", "partition": "valid"} +{"repo": "kataras/httpcache", "path": "httpcache.go", "func_name": "CacheFasthttpFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CacheFasthttpFunc accepts two parameters\n// first is the fasthttp.RequestHandler which you want to cache its result\n// the second is, optional, the cache Entry's expiration duration\n// if the expiration <=2 seconds then expiration is taken by the \"cache-control's maxage\" header\n// returns a fasthttp.RequestHandler, which you can use as your default router or per-route handler\n//\n// All type of responses are cached, templates, json, text, anything.\n//\n// You CAN NOT add validators with this function", "docstring_tokens": ["CacheFasthttpFunc", "accepts", "two", "parameters", "first", "is", "the", "fasthttp", ".", "RequestHandler", "which", "you", "want", "to", "cache", "its", "result", "the", "second", "is", "optional", "the", "cache", "Entry", "s", "expiration", "duration", "if", "the", "expiration", "<", "=", "2", "seconds", "then", "expiration", "is", "taken", "by", "the", "cache", "-", "control", "s", "maxage", "header", "returns", "a", "fasthttp", ".", "RequestHandler", "which", "you", "can", "use", "as", "your", "default", "router", "or", "per", "-", "route", "handler", "All", "type", "of", "responses", "are", "cached", "templates", "json", "text", "anything", ".", "You", "CAN", "NOT", "add", "validators", "with", "this", "function"], "sha": "01f18a9beadcc489be4f89c92e82c02e251268cc", "url": "https://github.com/kataras/httpcache/blob/01f18a9beadcc489be4f89c92e82c02e251268cc/httpcache.go#L70-L72", "partition": "valid"} +{"repo": "kataras/httpcache", "path": "entry/response.go", "func_name": "ContentType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContentType returns a valid content type", "docstring_tokens": ["ContentType", "returns", "a", "valid", "content", "type"], "sha": "01f18a9beadcc489be4f89c92e82c02e251268cc", "url": "https://github.com/kataras/httpcache/blob/01f18a9beadcc489be4f89c92e82c02e251268cc/entry/response.go#L25-L30", "partition": "valid"} +{"repo": "kataras/httpcache", "path": "server/server.go", "func_name": "ServeHTTP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServeHTTP serves the cache Service to the outside world,\n// it is used only when you want to achieve something like horizontal scaling\n// it parses the request and tries to return the response with the cached body of the requested cache key\n// server-side function", "docstring_tokens": ["ServeHTTP", "serves", "the", "cache", "Service", "to", "the", "outside", "world", "it", "is", "used", "only", "when", "you", "want", "to", "achieve", "something", "like", "horizontal", "scaling", "it", "parses", "the", "request", "and", "tries", "to", "return", "the", "response", "with", "the", "cached", "body", "of", "the", "requested", "cache", "key", "server", "-", "side", "function"], "sha": "01f18a9beadcc489be4f89c92e82c02e251268cc", "url": "https://github.com/kataras/httpcache/blob/01f18a9beadcc489be4f89c92e82c02e251268cc/server/server.go#L77-L179", "partition": "valid"} +{"repo": "kataras/httpcache", "path": "server/server.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// the actual work is done on the handler.go\n// here we just provide a helper for the main package to create\n// an http.Server and serve a cache remote service, without any user touches\n// New returns a http.Server which hosts\n// the server-side handler for the remote cache service.\n//\n// it doesn't listens to the server", "docstring_tokens": ["the", "actual", "work", "is", "done", "on", "the", "handler", ".", "go", "here", "we", "just", "provide", "a", "helper", "for", "the", "main", "package", "to", "create", "an", "http", ".", "Server", "and", "serve", "a", "cache", "remote", "service", "without", "any", "user", "touches", "New", "returns", "a", "http", ".", "Server", "which", "hosts", "the", "server", "-", "side", "handler", "for", "the", "remote", "cache", "service", ".", "it", "doesn", "t", "listens", "to", "the", "server"], "sha": "01f18a9beadcc489be4f89c92e82c02e251268cc", "url": "https://github.com/kataras/httpcache/blob/01f18a9beadcc489be4f89c92e82c02e251268cc/server/server.go#L189-L198", "partition": "valid"} +{"repo": "kataras/httpcache", "path": "nethttp/response_recorder.go", "func_name": "AcquireResponseRecorder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AcquireResponseRecorder returns a ResponseRecorder", "docstring_tokens": ["AcquireResponseRecorder", "returns", "a", "ResponseRecorder"], "sha": "01f18a9beadcc489be4f89c92e82c02e251268cc", "url": "https://github.com/kataras/httpcache/blob/01f18a9beadcc489be4f89c92e82c02e251268cc/nethttp/response_recorder.go#L11-L21", "partition": "valid"} +{"repo": "kataras/httpcache", "path": "nethttp/response_recorder.go", "func_name": "ReleaseResponseRecorder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReleaseResponseRecorder releases a ResponseRecorder which has been previously received by AcquireResponseRecorder", "docstring_tokens": ["ReleaseResponseRecorder", "releases", "a", "ResponseRecorder", "which", "has", "been", "previously", "received", "by", "AcquireResponseRecorder"], "sha": "01f18a9beadcc489be4f89c92e82c02e251268cc", "url": "https://github.com/kataras/httpcache/blob/01f18a9beadcc489be4f89c92e82c02e251268cc/nethttp/response_recorder.go#L24-L29", "partition": "valid"} +{"repo": "kataras/httpcache", "path": "nethttp/rule/validator.go", "func_name": "Claim", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Claim returns true if incoming request can claim for a cached handler\n// the original handler should run as it is and exit", "docstring_tokens": ["Claim", "returns", "true", "if", "incoming", "request", "can", "claim", "for", "a", "cached", "handler", "the", "original", "handler", "should", "run", "as", "it", "is", "and", "exit"], "sha": "01f18a9beadcc489be4f89c92e82c02e251268cc", "url": "https://github.com/kataras/httpcache/blob/01f18a9beadcc489be4f89c92e82c02e251268cc/nethttp/rule/validator.go#L71-L80", "partition": "valid"} +{"repo": "kataras/httpcache", "path": "nethttp/handler.go", "func_name": "Rule", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Rule sets the ruleset for this handler.\n//\n// returns itself.", "docstring_tokens": ["Rule", "sets", "the", "ruleset", "for", "this", "handler", ".", "returns", "itself", "."], "sha": "01f18a9beadcc489be4f89c92e82c02e251268cc", "url": "https://github.com/kataras/httpcache/blob/01f18a9beadcc489be4f89c92e82c02e251268cc/nethttp/handler.go#L45-L53", "partition": "valid"} +{"repo": "kataras/httpcache", "path": "entry/entry.go", "func_name": "Reset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reset called each time the entry is expired\n// and the handler calls this after the original handler executed\n// to re-set the response with the new handler's content result", "docstring_tokens": ["Reset", "called", "each", "time", "the", "entry", "is", "expired", "and", "the", "handler", "calls", "this", "after", "the", "original", "handler", "executed", "to", "re", "-", "set", "the", "response", "with", "the", "new", "handler", "s", "content", "result"], "sha": "01f18a9beadcc489be4f89c92e82c02e251268cc", "url": "https://github.com/kataras/httpcache/blob/01f18a9beadcc489be4f89c92e82c02e251268cc/entry/entry.go#L84-L105", "partition": "valid"} +{"repo": "kataras/httpcache", "path": "fhttp/ruleset.go", "func_name": "NoCache", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NoCache called when a particular handler is not valid for cache.\n// If this function called inside a handler then the handler is not cached.", "docstring_tokens": ["NoCache", "called", "when", "a", "particular", "handler", "is", "not", "valid", "for", "cache", ".", "If", "this", "function", "called", "inside", "a", "handler", "then", "the", "handler", "is", "not", "cached", "."], "sha": "01f18a9beadcc489be4f89c92e82c02e251268cc", "url": "https://github.com/kataras/httpcache/blob/01f18a9beadcc489be4f89c92e82c02e251268cc/fhttp/ruleset.go#L36-L38", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "client_oauth_authentication.go", "func_name": "clientOAuth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ClientOAuth instantiates ClientOAuthAuthentication with the client OAuth tokens", "docstring_tokens": ["ClientOAuth", "instantiates", "ClientOAuthAuthentication", "with", "the", "client", "OAuth", "tokens"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/client_oauth_authentication.go#L21-L32", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "client_oauth_authentication.go", "func_name": "authenticate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Client OAuth authentication requires us to attach an unexpired OAuth token to\n// the request header", "docstring_tokens": ["Client", "OAuth", "authentication", "requires", "us", "to", "attach", "an", "unexpired", "OAuth", "token", "to", "the", "request", "header"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/client_oauth_authentication.go#L36-L43", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "api_key_authentication.go", "func_name": "apiKeyAuth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ApiKeyAuth instantiates ApiKeyAuthentication with the API key & secret", "docstring_tokens": ["ApiKeyAuth", "instantiates", "ApiKeyAuthentication", "with", "the", "API", "key", "&", "secret"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/api_key_authentication.go#L24-L36", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "api_key_authentication.go", "func_name": "authenticate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// API Key + Secret authentication requires a request header of the HMAC SHA-256\n// signature of the \"message\" as well as an incrementing nonce and the API key", "docstring_tokens": ["API", "Key", "+", "Secret", "authentication", "requires", "a", "request", "header", "of", "the", "HMAC", "SHA", "-", "256", "signature", "of", "the", "message", "as", "well", "as", "an", "incrementing", "nonce", "and", "the", "API", "key"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/api_key_authentication.go#L40-L56", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "service_oauth_authentication.go", "func_name": "serviceOAuth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServiceOAuth instantiates ServiceOAuthAuthentication with the coinbase certificate file", "docstring_tokens": ["ServiceOAuth", "instantiates", "ServiceOAuthAuthentication", "with", "the", "coinbase", "certificate", "file"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/service_oauth_authentication.go#L19-L40", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "service_oauth_authentication.go", "func_name": "authenticate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Service OAuth authentication requires no additional headers to be sent. The\n// Coinbase Public Certificate is set as a TLS config in the http.Client", "docstring_tokens": ["Service", "OAuth", "authentication", "requires", "no", "additional", "headers", "to", "be", "sent", ".", "The", "Coinbase", "Public", "Certificate", "is", "set", "as", "a", "TLS", "config", "in", "the", "http", ".", "Client"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/service_oauth_authentication.go#L44-L46", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "oauth.go", "func_name": "OAuthService", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OAuthService Instantiates OAuth Struct in order to send service related OAuth requests", "docstring_tokens": ["OAuthService", "Instantiates", "OAuth", "Struct", "in", "order", "to", "send", "service", "related", "OAuth", "requests"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/oauth.go#L19-L35", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "oauth.go", "func_name": "CreateAuthorizeUrl", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateAuthorizeUrl create the Authorize Url used to redirect users for\n// coinbase app authorization. The scope parameter includes the specific\n// permissions one wants to ask from the user", "docstring_tokens": ["CreateAuthorizeUrl", "create", "the", "Authorize", "Url", "used", "to", "redirect", "users", "for", "coinbase", "app", "authorization", ".", "The", "scope", "parameter", "includes", "the", "specific", "permissions", "one", "wants", "to", "ask", "from", "the", "user"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/oauth.go#L40-L52", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "oauth.go", "func_name": "RefreshTokens", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RefreshTokens refreshes a users existing OAuth tokens", "docstring_tokens": ["RefreshTokens", "refreshes", "a", "users", "existing", "OAuth", "tokens"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/oauth.go#L55-L58", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "oauth.go", "func_name": "NewTokens", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTokens generates new tokens for an OAuth user", "docstring_tokens": ["NewTokens", "generates", "new", "tokens", "for", "an", "OAuth", "user"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/oauth.go#L61-L63", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "oauth.go", "func_name": "NewTokensFromRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTokensRequest generates new tokens for OAuth user given an http request\n// containing the query parameter 'code'", "docstring_tokens": ["NewTokensRequest", "generates", "new", "tokens", "for", "OAuth", "user", "given", "an", "http", "request", "containing", "the", "query", "parameter", "code"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/oauth.go#L67-L71", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "rpc.go", "func_name": "Request", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Request sends a request with params marshaled into a JSON payload in the body\n// The response value is marshaled from JSON into the specified holder struct", "docstring_tokens": ["Request", "sends", "a", "request", "with", "params", "marshaled", "into", "a", "JSON", "payload", "in", "the", "body", "The", "response", "value", "is", "marshaled", "from", "JSON", "into", "the", "specified", "holder", "struct"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/rpc.go#L27-L53", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "rpc.go", "func_name": "createRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateRequest formats a request with all the necessary headers", "docstring_tokens": ["CreateRequest", "formats", "a", "request", "with", "all", "the", "necessary", "headers"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/rpc.go#L56-L72", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "rpc.go", "func_name": "executeRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// executeRequest takes a prepared http.Request and returns the body of the response\n// If the response is not of HTTP Code 200, an error is returned", "docstring_tokens": ["executeRequest", "takes", "a", "prepared", "http", ".", "Request", "and", "returns", "the", "body", "of", "the", "response", "If", "the", "response", "is", "not", "of", "HTTP", "Code", "200", "an", "error", "is", "returned"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/rpc.go#L76-L94", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "rpc.go", "func_name": "simulateRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// simulateRequest simulates a request by returning a sample JSON from file", "docstring_tokens": ["simulateRequest", "simulates", "a", "request", "by", "returning", "a", "sample", "JSON", "from", "file"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/rpc.go#L97-L107", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "coinbase.go", "func_name": "ApiKeyClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ApiKeyClient instantiates the client with ApiKey Authentication", "docstring_tokens": ["ApiKeyClient", "instantiates", "the", "client", "with", "ApiKey", "Authentication"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/coinbase.go#L16-L24", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "coinbase.go", "func_name": "OAuthClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OAuthClient instantiates the client with OAuth Authentication", "docstring_tokens": ["OAuthClient", "instantiates", "the", "client", "with", "OAuth", "Authentication"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/coinbase.go#L27-L35", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "coinbase.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get sends a GET request and marshals response data into holder", "docstring_tokens": ["Get", "sends", "a", "GET", "request", "and", "marshals", "response", "data", "into", "holder"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/coinbase.go#L46-L48", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "coinbase.go", "func_name": "GetBalance", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetBalance returns current balance in BTC", "docstring_tokens": ["GetBalance", "returns", "current", "balance", "in", "BTC"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/coinbase.go#L66-L76", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "coinbase.go", "func_name": "GetAllAddresses", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAllAddresses returns bitcoin addresses associated with client account", "docstring_tokens": ["GetAllAddresses", "returns", "bitcoin", "addresses", "associated", "with", "client", "account"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/coinbase.go#L88-L101", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "coinbase.go", "func_name": "GenerateReceiveAddress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GenerateReceiveAddress generates and returns a new bitcoin receive address", "docstring_tokens": ["GenerateReceiveAddress", "generates", "and", "returns", "a", "new", "bitcoin", "receive", "address"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/coinbase.go#L104-L110", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "coinbase.go", "func_name": "SendMoney", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SendMoney to either a bitcoin or email address", "docstring_tokens": ["SendMoney", "to", "either", "a", "bitcoin", "or", "email", "address"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/coinbase.go#L113-L115", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "coinbase.go", "func_name": "RequestMoney", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RequestMoney from either a bitcoin or email address", "docstring_tokens": ["RequestMoney", "from", "either", "a", "bitcoin", "or", "email", "address"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/coinbase.go#L118-L120", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "coinbase.go", "func_name": "ResendRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ResendRequest resends a transaction request referenced by id", "docstring_tokens": ["ResendRequest", "resends", "a", "transaction", "request", "referenced", "by", "id"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/coinbase.go#L149-L158", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "coinbase.go", "func_name": "CancelRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CancelRequest cancels a transaction request referenced by id", "docstring_tokens": ["CancelRequest", "cancels", "a", "transaction", "request", "referenced", "by", "id"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/coinbase.go#L161-L170", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "coinbase.go", "func_name": "CompleteRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CompleteRequest completes a money request referenced by id", "docstring_tokens": ["CompleteRequest", "completes", "a", "money", "request", "referenced", "by", "id"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/coinbase.go#L173-L175", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "coinbase.go", "func_name": "CreateButton", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateButton gets a new payment button including EmbedHtml as a field on button struct", "docstring_tokens": ["CreateButton", "gets", "a", "new", "payment", "button", "including", "EmbedHtml", "as", "a", "field", "on", "button", "struct"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/coinbase.go#L178-L194", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "coinbase.go", "func_name": "CreateOrderFromButtonCode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateOrderFromButtonCode creates an order for a given button code", "docstring_tokens": ["CreateOrderFromButtonCode", "creates", "an", "order", "for", "a", "given", "button", "code"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/coinbase.go#L197-L206", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "coinbase.go", "func_name": "CreateUser", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateUser creates a new user given an email and password", "docstring_tokens": ["CreateUser", "creates", "a", "new", "user", "given", "an", "email", "and", "password"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/coinbase.go#L209-L222", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "coinbase.go", "func_name": "Buy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Buy an amount of BTC and bypass rate limits by setting agreeBtcAmountVaries to true", "docstring_tokens": ["Buy", "an", "amount", "of", "BTC", "and", "bypass", "rate", "limits", "by", "setting", "agreeBtcAmountVaries", "to", "true"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/coinbase.go#L225-L238", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "coinbase.go", "func_name": "GetContacts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetContacts gets a users contacts", "docstring_tokens": ["GetContacts", "gets", "a", "users", "contacts"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/coinbase.go#L256-L267", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "coinbase.go", "func_name": "GetCurrencies", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCurrencies gets all currency names and ISO's", "docstring_tokens": ["GetCurrencies", "gets", "all", "currency", "names", "and", "ISO", "s"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/coinbase.go#L270-L284", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "coinbase.go", "func_name": "GetExchangeRates", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetExchangeRates gets the current exchange rates", "docstring_tokens": ["GetExchangeRates", "gets", "the", "current", "exchange", "rates"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/coinbase.go#L287-L293", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "coinbase.go", "func_name": "GetExchangeRate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetExchangeRate gets the exchange rate between two specified currencies", "docstring_tokens": ["GetExchangeRate", "gets", "the", "exchange", "rate", "between", "two", "specified", "currencies"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/coinbase.go#L296-L310", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "coinbase.go", "func_name": "GetTransactions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTransactions gets transactions associated with an account", "docstring_tokens": ["GetTransactions", "gets", "transactions", "associated", "with", "an", "account"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/coinbase.go#L313-L329", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "coinbase.go", "func_name": "GetOrders", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetOrders gets orders associated with an account", "docstring_tokens": ["GetOrders", "gets", "orders", "associated", "with", "an", "account"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/coinbase.go#L332-L348", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "coinbase.go", "func_name": "GetTransfers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTransfers get transfers associated with an account", "docstring_tokens": ["GetTransfers", "get", "transfers", "associated", "with", "an", "account"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/coinbase.go#L351-L367", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "coinbase.go", "func_name": "GetBuyPrice", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetBuyPrice gets the current BTC buy price", "docstring_tokens": ["GetBuyPrice", "gets", "the", "current", "BTC", "buy", "price"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/coinbase.go#L370-L372", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "coinbase.go", "func_name": "GetSellPrice", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSellPrice gets the current BTC sell price", "docstring_tokens": ["GetSellPrice", "gets", "the", "current", "BTC", "sell", "price"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/coinbase.go#L375-L377", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "coinbase.go", "func_name": "GetTransaction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTransaction gets a particular transaction referenced by id", "docstring_tokens": ["GetTransaction", "gets", "a", "particular", "transaction", "referenced", "by", "id"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/coinbase.go#L391-L400", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "coinbase.go", "func_name": "GetOrder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetOrder gets a particular order referenced by id", "docstring_tokens": ["GetOrder", "gets", "a", "particular", "order", "referenced", "by", "id"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/coinbase.go#L403-L412", "partition": "valid"} +{"repo": "fabioberger/coinbase-go", "path": "coinbase.go", "func_name": "GetUser", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetUser gets the user associated with the authentication", "docstring_tokens": ["GetUser", "gets", "the", "user", "associated", "with", "the", "authentication"], "sha": "8328539b18ab1c8b492ddf19321acf0b8c26f7a3", "url": "https://github.com/fabioberger/coinbase-go/blob/8328539b18ab1c8b492ddf19321acf0b8c26f7a3/coinbase.go#L415-L421", "partition": "valid"} +{"repo": "txgruppi/command", "path": "serialdispatcher.go", "func_name": "NewSerialDispatcher", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSerialDispatcher creates a new PrallelDispatcher with the given handlers", "docstring_tokens": ["NewSerialDispatcher", "creates", "a", "new", "PrallelDispatcher", "with", "the", "given", "handlers"], "sha": "faf17a6b691b4de31b0eb662872a38e074d37b99", "url": "https://github.com/txgruppi/command/blob/faf17a6b691b4de31b0eb662872a38e074d37b99/serialdispatcher.go#L6-L11", "partition": "valid"} +{"repo": "txgruppi/command", "path": "serialdispatcher.go", "func_name": "AppendHandlers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AppendHandlers implements `Dispatcher.AppendHandlers`", "docstring_tokens": ["AppendHandlers", "implements", "Dispatcher", ".", "AppendHandlers"], "sha": "faf17a6b691b4de31b0eb662872a38e074d37b99", "url": "https://github.com/txgruppi/command/blob/faf17a6b691b4de31b0eb662872a38e074d37b99/serialdispatcher.go#L26-L39", "partition": "valid"} +{"repo": "txgruppi/command", "path": "serialdispatcher.go", "func_name": "DispatchOptional", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DispatchOptional implements `Dispatcher.DispatchOptional`", "docstring_tokens": ["DispatchOptional", "implements", "Dispatcher", ".", "DispatchOptional"], "sha": "faf17a6b691b4de31b0eb662872a38e074d37b99", "url": "https://github.com/txgruppi/command/blob/faf17a6b691b4de31b0eb662872a38e074d37b99/serialdispatcher.go#L76-L87", "partition": "valid"} +{"repo": "txgruppi/command", "path": "paralleldispatcher.go", "func_name": "NewParallelDispatcher", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewParallelDispatcher creates a new PrallelDispatcher with the given handlers", "docstring_tokens": ["NewParallelDispatcher", "creates", "a", "new", "PrallelDispatcher", "with", "the", "given", "handlers"], "sha": "faf17a6b691b4de31b0eb662872a38e074d37b99", "url": "https://github.com/txgruppi/command/blob/faf17a6b691b4de31b0eb662872a38e074d37b99/paralleldispatcher.go#L11-L16", "partition": "valid"} +{"repo": "libp2p/go-libp2p-conn", "path": "secure_conn.go", "func_name": "ReleaseMsg", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReleaseMsg releases a buffer", "docstring_tokens": ["ReleaseMsg", "releases", "a", "buffer"], "sha": "fd8ad28832460f1d5c05f9b33321d4dd8e85f61d", "url": "https://github.com/libp2p/go-libp2p-conn/blob/fd8ad28832460f1d5c05f9b33321d4dd8e85f61d/secure_conn.go#L124-L126", "partition": "valid"} +{"repo": "libp2p/go-libp2p-conn", "path": "conn.go", "func_name": "ReleaseBuffer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReleaseBuffer puts the given byte array back into the appropriate\n// global buffer pool based on its capacity.", "docstring_tokens": ["ReleaseBuffer", "puts", "the", "given", "byte", "array", "back", "into", "the", "appropriate", "global", "buffer", "pool", "based", "on", "its", "capacity", "."], "sha": "fd8ad28832460f1d5c05f9b33321d4dd8e85f61d", "url": "https://github.com/libp2p/go-libp2p-conn/blob/fd8ad28832460f1d5c05f9b33321d4dd8e85f61d/conn.go#L24-L27", "partition": "valid"} +{"repo": "libp2p/go-libp2p-conn", "path": "conn.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// close is the internal close function, called by ContextCloser.Close", "docstring_tokens": ["close", "is", "the", "internal", "close", "function", "called", "by", "ContextCloser", ".", "Close"], "sha": "fd8ad28832460f1d5c05f9b33321d4dd8e85f61d", "url": "https://github.com/libp2p/go-libp2p-conn/blob/fd8ad28832460f1d5c05f9b33321d4dd8e85f61d/conn.go#L55-L66", "partition": "valid"} +{"repo": "libp2p/go-libp2p-conn", "path": "conn.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write writes data, net.Conn style", "docstring_tokens": ["Write", "writes", "data", "net", ".", "Conn", "style"], "sha": "fd8ad28832460f1d5c05f9b33321d4dd8e85f61d", "url": "https://github.com/libp2p/go-libp2p-conn/blob/fd8ad28832460f1d5c05f9b33321d4dd8e85f61d/conn.go#L134-L136", "partition": "valid"} +{"repo": "libp2p/go-libp2p-conn", "path": "listen.go", "func_name": "Accept", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Accept waits for and returns the next connection to the listener.", "docstring_tokens": ["Accept", "waits", "for", "and", "returns", "the", "next", "connection", "to", "the", "listener", "."], "sha": "fd8ad28832460f1d5c05f9b33321d4dd8e85f61d", "url": "https://github.com/libp2p/go-libp2p-conn/blob/fd8ad28832460f1d5c05f9b33321d4dd8e85f61d/listen.go#L85-L90", "partition": "valid"} +{"repo": "libp2p/go-libp2p-conn", "path": "dial.go", "func_name": "AddDialer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddDialer adds a sub-dialer usable by this dialer.\n// Dialers added first will be selected first, based on the address.", "docstring_tokens": ["AddDialer", "adds", "a", "sub", "-", "dialer", "usable", "by", "this", "dialer", ".", "Dialers", "added", "first", "will", "be", "selected", "first", "based", "on", "the", "address", "."], "sha": "fd8ad28832460f1d5c05f9b33321d4dd8e85f61d", "url": "https://github.com/libp2p/go-libp2p-conn/blob/fd8ad28832460f1d5c05f9b33321d4dd8e85f61d/dial.go#L167-L169", "partition": "valid"} +{"repo": "libp2p/go-libp2p-conn", "path": "dial.go", "func_name": "subDialerForAddr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// returns dialer that can dial the given address", "docstring_tokens": ["returns", "dialer", "that", "can", "dial", "the", "given", "address"], "sha": "fd8ad28832460f1d5c05f9b33321d4dd8e85f61d", "url": "https://github.com/libp2p/go-libp2p-conn/blob/fd8ad28832460f1d5c05f9b33321d4dd8e85f61d/dial.go#L172-L184", "partition": "valid"} +{"repo": "libp2p/go-libp2p-conn", "path": "dial.go", "func_name": "rawConnDial", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// rawConnDial dials the underlying net.Conn + manet.Conns", "docstring_tokens": ["rawConnDial", "dials", "the", "underlying", "net", ".", "Conn", "+", "manet", ".", "Conns"], "sha": "fd8ad28832460f1d5c05f9b33321d4dd8e85f61d", "url": "https://github.com/libp2p/go-libp2p-conn/blob/fd8ad28832460f1d5c05f9b33321d4dd8e85f61d/dial.go#L187-L199", "partition": "valid"} +{"repo": "libp2p/go-libp2p-conn", "path": "dial.go", "func_name": "MultiaddrProtocolsMatch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MultiaddrProtocolsMatch returns whether two multiaddrs match in protocol stacks.", "docstring_tokens": ["MultiaddrProtocolsMatch", "returns", "whether", "two", "multiaddrs", "match", "in", "protocol", "stacks", "."], "sha": "fd8ad28832460f1d5c05f9b33321d4dd8e85f61d", "url": "https://github.com/libp2p/go-libp2p-conn/blob/fd8ad28832460f1d5c05f9b33321d4dd8e85f61d/dial.go#L237-L252", "partition": "valid"} +{"repo": "libp2p/go-libp2p-conn", "path": "dial.go", "func_name": "MultiaddrNetMatch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MultiaddrNetMatch returns the first Multiaddr found to match network.", "docstring_tokens": ["MultiaddrNetMatch", "returns", "the", "first", "Multiaddr", "found", "to", "match", "network", "."], "sha": "fd8ad28832460f1d5c05f9b33321d4dd8e85f61d", "url": "https://github.com/libp2p/go-libp2p-conn/blob/fd8ad28832460f1d5c05f9b33321d4dd8e85f61d/dial.go#L255-L262", "partition": "valid"} +{"repo": "FogCreek/mini", "path": "mini.go", "func_name": "get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Return non-array values", "docstring_tokens": ["Return", "non", "-", "array", "values"], "sha": "7caa7802e00a8f7247533981be1e3f20329a1cab", "url": "https://github.com/FogCreek/mini/blob/7caa7802e00a8f7247533981be1e3f20329a1cab/mini.go#L165-L183", "partition": "valid"} +{"repo": "FogCreek/mini", "path": "mini.go", "func_name": "getArray", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Return array values", "docstring_tokens": ["Return", "array", "values"], "sha": "7caa7802e00a8f7247533981be1e3f20329a1cab", "url": "https://github.com/FogCreek/mini/blob/7caa7802e00a8f7247533981be1e3f20329a1cab/mini.go#L186-L206", "partition": "valid"} +{"repo": "ninetwentyfour/go-wkhtmltoimage", "path": "wkhtmltoimage.go", "func_name": "buildParams", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// buildParams takes the image options set by the user and turns them into command flags for wkhtmltoimage\n// It returns an array of command flags.", "docstring_tokens": ["buildParams", "takes", "the", "image", "options", "set", "by", "the", "user", "and", "turns", "them", "into", "command", "flags", "for", "wkhtmltoimage", "It", "returns", "an", "array", "of", "command", "flags", "."], "sha": "3ccfacb98ac2563d3bf71c89350986eb125ff28d", "url": "https://github.com/ninetwentyfour/go-wkhtmltoimage/blob/3ccfacb98ac2563d3bf71c89350986eb125ff28d/wkhtmltoimage.go#L77-L126", "partition": "valid"} +{"repo": "proglottis/gpgme", "path": "unset_agent_info_windows.go", "func_name": "unsetenvGPGAgentInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// unsetenv is not available in mingw", "docstring_tokens": ["unsetenv", "is", "not", "available", "in", "mingw"], "sha": "8e0937a489db93debda9d55a7baa28e9ce8a06d3", "url": "https://github.com/proglottis/gpgme/blob/8e0937a489db93debda9d55a7baa28e9ce8a06d3/unset_agent_info_windows.go#L10-L14", "partition": "valid"} +{"repo": "proglottis/gpgme", "path": "gpgme.go", "func_name": "AssuanSend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AssuanSend sends a raw Assuan command to gpg-agent", "docstring_tokens": ["AssuanSend", "sends", "a", "raw", "Assuan", "command", "to", "gpg", "-", "agent"], "sha": "8e0937a489db93debda9d55a7baa28e9ce8a06d3", "url": "https://github.com/proglottis/gpgme/blob/8e0937a489db93debda9d55a7baa28e9ce8a06d3/gpgme.go#L483-L509", "partition": "valid"} +{"repo": "proglottis/gpgme", "path": "data.go", "func_name": "NewData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewData returns a new memory based data buffer", "docstring_tokens": ["NewData", "returns", "a", "new", "memory", "based", "data", "buffer"], "sha": "8e0937a489db93debda9d55a7baa28e9ce8a06d3", "url": "https://github.com/proglottis/gpgme/blob/8e0937a489db93debda9d55a7baa28e9ce8a06d3/data.go#L81-L84", "partition": "valid"} +{"repo": "proglottis/gpgme", "path": "data.go", "func_name": "NewDataFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDataFile returns a new file based data buffer", "docstring_tokens": ["NewDataFile", "returns", "a", "new", "file", "based", "data", "buffer"], "sha": "8e0937a489db93debda9d55a7baa28e9ce8a06d3", "url": "https://github.com/proglottis/gpgme/blob/8e0937a489db93debda9d55a7baa28e9ce8a06d3/data.go#L87-L90", "partition": "valid"} +{"repo": "proglottis/gpgme", "path": "data.go", "func_name": "NewDataBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDataBytes returns a new memory based data buffer that contains `b` bytes", "docstring_tokens": ["NewDataBytes", "returns", "a", "new", "memory", "based", "data", "buffer", "that", "contains", "b", "bytes"], "sha": "8e0937a489db93debda9d55a7baa28e9ce8a06d3", "url": "https://github.com/proglottis/gpgme/blob/8e0937a489db93debda9d55a7baa28e9ce8a06d3/data.go#L93-L100", "partition": "valid"} +{"repo": "proglottis/gpgme", "path": "data.go", "func_name": "NewDataReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDataReader returns a new callback based data buffer", "docstring_tokens": ["NewDataReader", "returns", "a", "new", "callback", "based", "data", "buffer"], "sha": "8e0937a489db93debda9d55a7baa28e9ce8a06d3", "url": "https://github.com/proglottis/gpgme/blob/8e0937a489db93debda9d55a7baa28e9ce8a06d3/data.go#L103-L110", "partition": "valid"} +{"repo": "proglottis/gpgme", "path": "data.go", "func_name": "NewDataWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDataWriter returns a new callback based data buffer", "docstring_tokens": ["NewDataWriter", "returns", "a", "new", "callback", "based", "data", "buffer"], "sha": "8e0937a489db93debda9d55a7baa28e9ce8a06d3", "url": "https://github.com/proglottis/gpgme/blob/8e0937a489db93debda9d55a7baa28e9ce8a06d3/data.go#L113-L120", "partition": "valid"} +{"repo": "proglottis/gpgme", "path": "data.go", "func_name": "NewDataReadWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDataReadWriter returns a new callback based data buffer", "docstring_tokens": ["NewDataReadWriter", "returns", "a", "new", "callback", "based", "data", "buffer"], "sha": "8e0937a489db93debda9d55a7baa28e9ce8a06d3", "url": "https://github.com/proglottis/gpgme/blob/8e0937a489db93debda9d55a7baa28e9ce8a06d3/data.go#L123-L132", "partition": "valid"} +{"repo": "proglottis/gpgme", "path": "data.go", "func_name": "NewDataReadWriteSeeker", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDataReadWriteSeeker returns a new callback based data buffer", "docstring_tokens": ["NewDataReadWriteSeeker", "returns", "a", "new", "callback", "based", "data", "buffer"], "sha": "8e0937a489db93debda9d55a7baa28e9ce8a06d3", "url": "https://github.com/proglottis/gpgme/blob/8e0937a489db93debda9d55a7baa28e9ce8a06d3/data.go#L135-L146", "partition": "valid"} +{"repo": "proglottis/gpgme", "path": "data.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close releases any resources associated with the data buffer", "docstring_tokens": ["Close", "releases", "any", "resources", "associated", "with", "the", "data", "buffer"], "sha": "8e0937a489db93debda9d55a7baa28e9ce8a06d3", "url": "https://github.com/proglottis/gpgme/blob/8e0937a489db93debda9d55a7baa28e9ce8a06d3/data.go#L149-L159", "partition": "valid"} +{"repo": "proglottis/gpgme", "path": "data.go", "func_name": "Name", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Name returns the associated filename if any", "docstring_tokens": ["Name", "returns", "the", "associated", "filename", "if", "any"], "sha": "8e0937a489db93debda9d55a7baa28e9ce8a06d3", "url": "https://github.com/proglottis/gpgme/blob/8e0937a489db93debda9d55a7baa28e9ce8a06d3/data.go#L189-L191", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "command.go", "func_name": "NewCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCommand creates a new Livestatus command instance.", "docstring_tokens": ["NewCommand", "creates", "a", "new", "Livestatus", "command", "instance", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/command.go#L19-L24", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "command.go", "func_name": "Arg", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Arg appends a new argument to the command.", "docstring_tokens": ["Arg", "appends", "a", "new", "argument", "to", "the", "command", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/command.go#L27-L30", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "command.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns a string representation of the Livestatus command.", "docstring_tokens": ["String", "returns", "a", "string", "representation", "of", "the", "Livestatus", "command", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/command.go#L40-L48", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "record.go", "func_name": "Columns", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Columns returns the list of the record columns.", "docstring_tokens": ["Columns", "returns", "the", "list", "of", "the", "record", "columns", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/record.go#L18-L26", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "record.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get returns an interface value for a specific column.", "docstring_tokens": ["Get", "returns", "an", "interface", "value", "for", "a", "specific", "column", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/record.go#L29-L36", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "record.go", "func_name": "GetBool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetBool returns a boolean value for a specific column.", "docstring_tokens": ["GetBool", "returns", "a", "boolean", "value", "for", "a", "specific", "column", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/record.go#L39-L46", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "record.go", "func_name": "GetInt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetInt returns an integer value for a specific column.", "docstring_tokens": ["GetInt", "returns", "an", "integer", "value", "for", "a", "specific", "column", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/record.go#L59-L66", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "record.go", "func_name": "GetSlice", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSlice returns a slice of interface value for a specific column.", "docstring_tokens": ["GetSlice", "returns", "a", "slice", "of", "interface", "value", "for", "a", "specific", "column", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/record.go#L69-L84", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "record.go", "func_name": "GetString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetString returns a string value for a specific column.", "docstring_tokens": ["GetString", "returns", "a", "string", "value", "for", "a", "specific", "column", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/record.go#L87-L94", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "record.go", "func_name": "GetTime", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTime returns a time struct value for a specific column.", "docstring_tokens": ["GetTime", "returns", "a", "time", "struct", "value", "for", "a", "specific", "column", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/record.go#L97-L104", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "nagios/commands.go", "func_name": "ChangeContactModattr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ChangeContactModattr creates a new \"CHANGE_CONTACT_MODATTR\" Nagios command.\n//\n// This command changes the modified attributes value for the specified contact.\n//\n// Modified attributes values are used by Nagios to determine which object properties should be retained across program\n// restarts.\n//\n// Thus, modifying the value of the attributes can affect data retention.\n//\n// This is an advanced option and should only be used by people who are intimately familiar with the data retention\n// logic in Nagios.", "docstring_tokens": ["ChangeContactModattr", "creates", "a", "new", "CHANGE_CONTACT_MODATTR", "Nagios", "command", ".", "This", "command", "changes", "the", "modified", "attributes", "value", "for", "the", "specified", "contact", ".", "Modified", "attributes", "values", "are", "used", "by", "Nagios", "to", "determine", "which", "object", "properties", "should", "be", "retained", "across", "program", "restarts", ".", "Thus", "modifying", "the", "value", "of", "the", "attributes", "can", "affect", "data", "retention", ".", "This", "is", "an", "advanced", "option", "and", "should", "only", "be", "used", "by", "people", "who", "are", "intimately", "familiar", "with", "the", "data", "retention", "logic", "in", "Nagios", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/nagios/commands.go#L162-L171", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "nagios/commands.go", "func_name": "ChangeContactModhattr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ChangeContactModhattr creates a new \"CHANGE_CONTACT_MODHATTR\" Nagios command.\n//\n// This command changes the modified host attributes value for the specified contact.\n//\n// Modified attributes values are used by Nagios to determine which object properties should be retained across program\n// restarts.\n//\n// Thus, modifying the value of the attributes can affect data retention.\n//\n// This is an advanced option and should only be used by people who are intimately familiar with the data retention\n// logic in Nagios.", "docstring_tokens": ["ChangeContactModhattr", "creates", "a", "new", "CHANGE_CONTACT_MODHATTR", "Nagios", "command", ".", "This", "command", "changes", "the", "modified", "host", "attributes", "value", "for", "the", "specified", "contact", ".", "Modified", "attributes", "values", "are", "used", "by", "Nagios", "to", "determine", "which", "object", "properties", "should", "be", "retained", "across", "program", "restarts", ".", "Thus", "modifying", "the", "value", "of", "the", "attributes", "can", "affect", "data", "retention", ".", "This", "is", "an", "advanced", "option", "and", "should", "only", "be", "used", "by", "people", "who", "are", "intimately", "familiar", "with", "the", "data", "retention", "logic", "in", "Nagios", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/nagios/commands.go#L184-L193", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "nagios/commands.go", "func_name": "ChangeContactModsattr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ChangeContactModsattr creates a new \"CHANGE_CONTACT_MODSATTR\" Nagios command.\n//\n// This command changes the modified service attributes value for the specified contact.\n//\n// Modified attributes values are used by Nagios to determine which object properties should be retained across program\n// restarts.\n//\n// Thus, modifying the value of the attributes can affect data retention.\n//\n// This is an advanced option and should only be used by people who are intimately familiar with the data retention\n// logic in Nagios.", "docstring_tokens": ["ChangeContactModsattr", "creates", "a", "new", "CHANGE_CONTACT_MODSATTR", "Nagios", "command", ".", "This", "command", "changes", "the", "modified", "service", "attributes", "value", "for", "the", "specified", "contact", ".", "Modified", "attributes", "values", "are", "used", "by", "Nagios", "to", "determine", "which", "object", "properties", "should", "be", "retained", "across", "program", "restarts", ".", "Thus", "modifying", "the", "value", "of", "the", "attributes", "can", "affect", "data", "retention", ".", "This", "is", "an", "advanced", "option", "and", "should", "only", "be", "used", "by", "people", "who", "are", "intimately", "familiar", "with", "the", "data", "retention", "logic", "in", "Nagios", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/nagios/commands.go#L206-L215", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "nagios/commands.go", "func_name": "ChangeCustomContactVar", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ChangeCustomContactVar creates a new \"CHANGE_CUSTOM_CONTACT_VAR\" Nagios command.\n//\n// Changes the value of a custom contact variable.", "docstring_tokens": ["ChangeCustomContactVar", "creates", "a", "new", "CHANGE_CUSTOM_CONTACT_VAR", "Nagios", "command", ".", "Changes", "the", "value", "of", "a", "custom", "contact", "variable", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/nagios/commands.go#L240-L251", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "nagios/commands.go", "func_name": "ChangeCustomHostVar", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ChangeCustomHostVar creates a new \"CHANGE_CUSTOM_HOST_VAR\" Nagios command.\n//\n// Changes the value of a custom host variable.", "docstring_tokens": ["ChangeCustomHostVar", "creates", "a", "new", "CHANGE_CUSTOM_HOST_VAR", "Nagios", "command", ".", "Changes", "the", "value", "of", "a", "custom", "host", "variable", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/nagios/commands.go#L256-L267", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "nagios/commands.go", "func_name": "ChangeCustomSvcVar", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ChangeCustomSvcVar creates a new \"CHANGE_CUSTOM_SVC_VAR\" Nagios command.\n//\n// Changes the value of a custom service variable.", "docstring_tokens": ["ChangeCustomSvcVar", "creates", "a", "new", "CHANGE_CUSTOM_SVC_VAR", "Nagios", "command", ".", "Changes", "the", "value", "of", "a", "custom", "service", "variable", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/nagios/commands.go#L272-L285", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "nagios/commands.go", "func_name": "ChangeHostCheckTimeperiod", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ChangeHostCheckTimeperiod creates a new \"CHANGE_HOST_CHECK_TIMEPERIOD\" Nagios command.\n//\n// Changes the valid check period for the specified host.", "docstring_tokens": ["ChangeHostCheckTimeperiod", "creates", "a", "new", "CHANGE_HOST_CHECK_TIMEPERIOD", "Nagios", "command", ".", "Changes", "the", "valid", "check", "period", "for", "the", "specified", "host", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/nagios/commands.go#L343-L352", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "nagios/commands.go", "func_name": "ChangeHostModattr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ChangeHostModattr creates a new \"CHANGE_HOST_MODATTR\" Nagios command.\n//\n// This command changes the modified attributes value for the specified host.\n//\n// Modified attributes values are used by Nagios to determine which object properties should be retained across program\n// restarts.\n//\n// Thus, modifying the value of the attributes can affect data retention.\n//\n// This is an advanced option and should only be used by people who are intimately familiar with the data retention\n// logic in Nagios.", "docstring_tokens": ["ChangeHostModattr", "creates", "a", "new", "CHANGE_HOST_MODATTR", "Nagios", "command", ".", "This", "command", "changes", "the", "modified", "attributes", "value", "for", "the", "specified", "host", ".", "Modified", "attributes", "values", "are", "used", "by", "Nagios", "to", "determine", "which", "object", "properties", "should", "be", "retained", "across", "program", "restarts", ".", "Thus", "modifying", "the", "value", "of", "the", "attributes", "can", "affect", "data", "retention", ".", "This", "is", "an", "advanced", "option", "and", "should", "only", "be", "used", "by", "people", "who", "are", "intimately", "familiar", "with", "the", "data", "retention", "logic", "in", "Nagios", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/nagios/commands.go#L384-L393", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "nagios/commands.go", "func_name": "ChangeSvcModattr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ChangeSvcModattr creates a new \"CHANGE_SVC_MODATTR\" Nagios command.\n//\n// This command changes the modified attributes value for the specified service.\n//\n// Modified attributes values are used by Nagios to determine which object properties should be retained across program\n// restarts.\n//\n// Thus, modifying the value of the attributes can affect data retention.\n//\n// This is an advanced option and should only be used by people who are intimately familiar with the data retention\n// logic in Nagios.", "docstring_tokens": ["ChangeSvcModattr", "creates", "a", "new", "CHANGE_SVC_MODATTR", "Nagios", "command", ".", "This", "command", "changes", "the", "modified", "attributes", "value", "for", "the", "specified", "service", ".", "Modified", "attributes", "values", "are", "used", "by", "Nagios", "to", "determine", "which", "object", "properties", "should", "be", "retained", "across", "program", "restarts", ".", "Thus", "modifying", "the", "value", "of", "the", "attributes", "can", "affect", "data", "retention", ".", "This", "is", "an", "advanced", "option", "and", "should", "only", "be", "used", "by", "people", "who", "are", "intimately", "familiar", "with", "the", "data", "retention", "logic", "in", "Nagios", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/nagios/commands.go#L562-L573", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "nagios/commands.go", "func_name": "DelAllSvcComments", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DelAllSvcComments creates a new \"DEL_ALL_SVC_COMMENTS\" Nagios command.\n//\n// Deletes all comments associated with a particular service.", "docstring_tokens": ["DelAllSvcComments", "creates", "a", "new", "DEL_ALL_SVC_COMMENTS", "Nagios", "command", ".", "Deletes", "all", "comments", "associated", "with", "a", "particular", "service", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/nagios/commands.go#L656-L665", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "nagios/commands.go", "func_name": "DisablePassiveSvcChecks", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DisablePassiveSvcChecks creates a new \"DISABLE_PASSIVE_SVC_CHECKS\" Nagios command.\n//\n// Disables passive checks for the specified service.", "docstring_tokens": ["DisablePassiveSvcChecks", "creates", "a", "new", "DISABLE_PASSIVE_SVC_CHECKS", "Nagios", "command", ".", "Disables", "passive", "checks", "for", "the", "specified", "service", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/nagios/commands.go#L1012-L1021", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "nagios/commands.go", "func_name": "DisableServiceFlapDetection", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DisableServiceFlapDetection creates a new \"DISABLE_SERVICE_FLAP_DETECTION\" Nagios command.\n//\n// Disables flap detection for the specified service.", "docstring_tokens": ["DisableServiceFlapDetection", "creates", "a", "new", "DISABLE_SERVICE_FLAP_DETECTION", "Nagios", "command", ".", "Disables", "flap", "detection", "for", "the", "specified", "service", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/nagios/commands.go#L1108-L1117", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "nagios/commands.go", "func_name": "DisableSvcCheck", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DisableSvcCheck creates a new \"DISABLE_SVC_CHECK\" Nagios command.\n//\n// Disables active checks for a particular service.", "docstring_tokens": ["DisableSvcCheck", "creates", "a", "new", "DISABLE_SVC_CHECK", "Nagios", "command", ".", "Disables", "active", "checks", "for", "a", "particular", "service", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/nagios/commands.go#L1131-L1140", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "nagios/commands.go", "func_name": "DisableSvcEventHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DisableSvcEventHandler creates a new \"DISABLE_SVC_EVENT_HANDLER\" Nagios command.\n//\n// Disables the event handler for the specified service.", "docstring_tokens": ["DisableSvcEventHandler", "creates", "a", "new", "DISABLE_SVC_EVENT_HANDLER", "Nagios", "command", ".", "Disables", "the", "event", "handler", "for", "the", "specified", "service", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/nagios/commands.go#L1145-L1154", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "nagios/commands.go", "func_name": "DisableSvcFlapDetection", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DisableSvcFlapDetection creates a new \"DISABLE_SVC_FLAP_DETECTION\" Nagios command.\n//\n// Disables flap detection for the specified service.", "docstring_tokens": ["DisableSvcFlapDetection", "creates", "a", "new", "DISABLE_SVC_FLAP_DETECTION", "Nagios", "command", ".", "Disables", "flap", "detection", "for", "the", "specified", "service", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/nagios/commands.go#L1159-L1168", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "nagios/commands.go", "func_name": "DisableSvcNotifications", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DisableSvcNotifications creates a new \"DISABLE_SVC_NOTIFICATIONS\" Nagios command.\n//\n// Disables notifications for a particular service.", "docstring_tokens": ["DisableSvcNotifications", "creates", "a", "new", "DISABLE_SVC_NOTIFICATIONS", "Nagios", "command", ".", "Disables", "notifications", "for", "a", "particular", "service", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/nagios/commands.go#L1173-L1182", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "nagios/commands.go", "func_name": "EnablePassiveSvcChecks", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EnablePassiveSvcChecks creates a new \"ENABLE_PASSIVE_SVC_CHECKS\" Nagios command.\n//\n// Enables passive checks for the specified service.", "docstring_tokens": ["EnablePassiveSvcChecks", "creates", "a", "new", "ENABLE_PASSIVE_SVC_CHECKS", "Nagios", "command", ".", "Enables", "passive", "checks", "for", "the", "specified", "service", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/nagios/commands.go#L1491-L1500", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "nagios/commands.go", "func_name": "EnableSvcCheck", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EnableSvcCheck creates a new \"ENABLE_SVC_CHECK\" Nagios command.\n//\n// Enables active checks for a particular service.", "docstring_tokens": ["EnableSvcCheck", "creates", "a", "new", "ENABLE_SVC_CHECK", "Nagios", "command", ".", "Enables", "active", "checks", "for", "a", "particular", "service", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/nagios/commands.go#L1604-L1613", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "nagios/commands.go", "func_name": "EnableSvcEventHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EnableSvcEventHandler creates a new \"ENABLE_SVC_EVENT_HANDLER\" Nagios command.\n//\n// Enables the event handler for the specified service.", "docstring_tokens": ["EnableSvcEventHandler", "creates", "a", "new", "ENABLE_SVC_EVENT_HANDLER", "Nagios", "command", ".", "Enables", "the", "event", "handler", "for", "the", "specified", "service", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/nagios/commands.go#L1618-L1627", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "nagios/commands.go", "func_name": "EnableSvcFlapDetection", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EnableSvcFlapDetection creates a new \"ENABLE_SVC_FLAP_DETECTION\" Nagios command.\n//\n// Enables flap detection for the specified service.\n//\n// In order for the flap detection algorithms to be run for the service, flap detection must be enabled on a\n// program-wide basis as well.", "docstring_tokens": ["EnableSvcFlapDetection", "creates", "a", "new", "ENABLE_SVC_FLAP_DETECTION", "Nagios", "command", ".", "Enables", "flap", "detection", "for", "the", "specified", "service", ".", "In", "order", "for", "the", "flap", "detection", "algorithms", "to", "be", "run", "for", "the", "service", "flap", "detection", "must", "be", "enabled", "on", "a", "program", "-", "wide", "basis", "as", "well", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/nagios/commands.go#L1635-L1644", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "nagios/commands.go", "func_name": "EnableSvcNotifications", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EnableSvcNotifications creates a new \"ENABLE_SVC_NOTIFICATIONS\" Nagios command.\n//\n// Enables notifications for a particular service.\n//\n// Notifications will be sent out for the service only if notifications are enabled on a program-wide basis as well.", "docstring_tokens": ["EnableSvcNotifications", "creates", "a", "new", "ENABLE_SVC_NOTIFICATIONS", "Nagios", "command", ".", "Enables", "notifications", "for", "a", "particular", "service", ".", "Notifications", "will", "be", "sent", "out", "for", "the", "service", "only", "if", "notifications", "are", "enabled", "on", "a", "program", "-", "wide", "basis", "as", "well", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/nagios/commands.go#L1651-L1660", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "nagios/commands.go", "func_name": "RemoveSvcAcknowledgement", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveSvcAcknowledgement creates a new \"REMOVE_SVC_ACKNOWLEDGEMENT\" Nagios command.\n//\n// This removes the problem acknowledgement for a particular service.\n//\n// Once the acknowledgement has been removed, notifications can once again be sent out for the given service.", "docstring_tokens": ["RemoveSvcAcknowledgement", "creates", "a", "new", "REMOVE_SVC_ACKNOWLEDGEMENT", "Nagios", "command", ".", "This", "removes", "the", "problem", "acknowledgement", "for", "a", "particular", "service", ".", "Once", "the", "acknowledgement", "has", "been", "removed", "notifications", "can", "once", "again", "be", "sent", "out", "for", "the", "given", "service", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/nagios/commands.go#L1758-L1767", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "nagios/commands.go", "func_name": "StartObsessingOverSvc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StartObsessingOverSvc creates a new \"START_OBSESSING_OVER_SVC\" Nagios command.\n//\n// Enables processing of service checks via the OCSP command for the specified service.", "docstring_tokens": ["StartObsessingOverSvc", "creates", "a", "new", "START_OBSESSING_OVER_SVC", "Nagios", "command", ".", "Enables", "processing", "of", "service", "checks", "via", "the", "OCSP", "command", "for", "the", "specified", "service", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/nagios/commands.go#L2457-L2466", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "nagios/commands.go", "func_name": "StopObsessingOverSvc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StopObsessingOverSvc creates a new \"STOP_OBSESSING_OVER_SVC\" Nagios command.\n//\n// Disables processing of service checks via the OCSP command for the specified service.", "docstring_tokens": ["StopObsessingOverSvc", "creates", "a", "new", "STOP_OBSESSING_OVER_SVC", "Nagios", "command", ".", "Disables", "processing", "of", "service", "checks", "via", "the", "OCSP", "command", "for", "the", "specified", "service", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/nagios/commands.go#L2537-L2546", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "query.go", "func_name": "NewQuery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewQuery creates a new Livestatus query instance.", "docstring_tokens": ["NewQuery", "creates", "a", "new", "Livestatus", "query", "instance", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/query.go#L26-L32", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "query.go", "func_name": "Columns", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Columns selects which columns to retrieve.", "docstring_tokens": ["Columns", "selects", "which", "columns", "to", "retrieve", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/query.go#L35-L39", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "query.go", "func_name": "Filter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Filter appends a new filter to the query.", "docstring_tokens": ["Filter", "appends", "a", "new", "filter", "to", "the", "query", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/query.go#L42-L45", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "query.go", "func_name": "And", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// And combines the n last filters into a new filter using a `And` operation.", "docstring_tokens": ["And", "combines", "the", "n", "last", "filters", "into", "a", "new", "filter", "using", "a", "And", "operation", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/query.go#L48-L51", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "query.go", "func_name": "Negate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Negate negates the most recent filter.", "docstring_tokens": ["Negate", "negates", "the", "most", "recent", "filter", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/query.go#L60-L63", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "query.go", "func_name": "WaitObject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WaitObject specifies an object from the table to wait on.\n//\n// For `hosts`, `hostgroups`, `servicegroups`, `contacts` and `contactgroups` tables this is simply the name of\n// the object. For the `services` table it is the `hostname` and the service `description` separated by a space.", "docstring_tokens": ["WaitObject", "specifies", "an", "object", "from", "the", "table", "to", "wait", "on", ".", "For", "hosts", "hostgroups", "servicegroups", "contacts", "and", "contactgroups", "tables", "this", "is", "simply", "the", "name", "of", "the", "object", ".", "For", "the", "services", "table", "it", "is", "the", "hostname", "and", "the", "service", "description", "separated", "by", "a", "space", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/query.go#L75-L78", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "query.go", "func_name": "WaitCondition", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WaitCondition appends a new wait condition to the query.", "docstring_tokens": ["WaitCondition", "appends", "a", "new", "wait", "condition", "to", "the", "query", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/query.go#L81-L84", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "query.go", "func_name": "WaitConditionNegate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WaitConditionNegate negates the most recent wait condition.", "docstring_tokens": ["WaitConditionNegate", "negates", "the", "most", "recent", "wait", "condition", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/query.go#L99-L102", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "query.go", "func_name": "WaitTrigger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WaitTrigger appends a new wait trigger to the query, waiting for a specific event broker message to recheck\n// condition.", "docstring_tokens": ["WaitTrigger", "appends", "a", "new", "wait", "trigger", "to", "the", "query", "waiting", "for", "a", "specific", "event", "broker", "message", "to", "recheck", "condition", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/query.go#L106-L109", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "query.go", "func_name": "WaitTimeout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WaitTimeout sets the upper limit on the time to wait before executing the query.", "docstring_tokens": ["WaitTimeout", "sets", "the", "upper", "limit", "on", "the", "time", "to", "wait", "before", "executing", "the", "query", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/query.go#L112-L115", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "query.go", "func_name": "KeepAlive", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// KeepAlive keeps the connection open to reuse for additional requests.", "docstring_tokens": ["KeepAlive", "keeps", "the", "connection", "open", "to", "reuse", "for", "additional", "requests", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/query.go#L118-L122", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "query.go", "func_name": "ReadTimeout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadTimeout sets the connection timeout for read operations.\n// Be careful when using a read timeout in conjunction with wait conditions.\n// A value of 0 disables the timeout.", "docstring_tokens": ["ReadTimeout", "sets", "the", "connection", "timeout", "for", "read", "operations", ".", "Be", "careful", "when", "using", "a", "read", "timeout", "in", "conjunction", "with", "wait", "conditions", ".", "A", "value", "of", "0", "disables", "the", "timeout", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/query.go#L134-L137", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "query.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns a string representation of the Livestatus query.", "docstring_tokens": ["String", "returns", "a", "string", "representation", "of", "the", "Livestatus", "query", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/query.go#L140-L148", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "client.go", "func_name": "NewClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClient creates a new Livestatus client instance.", "docstring_tokens": ["NewClient", "creates", "a", "new", "Livestatus", "client", "instance", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/client.go#L16-L18", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "client.go", "func_name": "NewClientWithDialer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClientWithDialer creates a new Livestatus client instance using a provided network dialer.", "docstring_tokens": ["NewClientWithDialer", "creates", "a", "new", "Livestatus", "client", "instance", "using", "a", "provided", "network", "dialer", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/client.go#L21-L27", "partition": "valid"} +{"repo": "vbatoufflet/go-livestatus", "path": "client.go", "func_name": "Exec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Exec executes a given Livestatus query.", "docstring_tokens": ["Exec", "executes", "a", "given", "Livestatus", "query", "."], "sha": "65182dd594b04243c08ba9428cad36c8148bf17e", "url": "https://github.com/vbatoufflet/go-livestatus/blob/65182dd594b04243c08ba9428cad36c8148bf17e/client.go#L38-L59", "partition": "valid"} +{"repo": "dutchcoders/go-ouitools", "path": "ouitools.go", "func_name": "xtoi2", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// xtoi2 converts the next two hex digits of s into a byte.\n// If s is longer than 2 bytes then the third byte must be e.\n// If the first two bytes of s are not hex digits or the third byte\n// does not match e, false is returned.", "docstring_tokens": ["xtoi2", "converts", "the", "next", "two", "hex", "digits", "of", "s", "into", "a", "byte", ".", "If", "s", "is", "longer", "than", "2", "bytes", "then", "the", "third", "byte", "must", "be", "e", ".", "If", "the", "first", "two", "bytes", "of", "s", "are", "not", "hex", "digits", "or", "the", "third", "byte", "does", "not", "match", "e", "false", "is", "returned", "."], "sha": "ac8139d3326a3a5eb5ec0b368cddf72ed26547fa", "url": "https://github.com/dutchcoders/go-ouitools/blob/ac8139d3326a3a5eb5ec0b368cddf72ed26547fa/ouitools.go#L51-L57", "partition": "valid"} +{"repo": "dutchcoders/go-ouitools", "path": "ouitools.go", "func_name": "Mask", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Mask returns the result of masking the address with mask.", "docstring_tokens": ["Mask", "returns", "the", "result", "of", "masking", "the", "address", "with", "mask", "."], "sha": "ac8139d3326a3a5eb5ec0b368cddf72ed26547fa", "url": "https://github.com/dutchcoders/go-ouitools/blob/ac8139d3326a3a5eb5ec0b368cddf72ed26547fa/ouitools.go#L97-L107", "partition": "valid"} +{"repo": "dutchcoders/go-ouitools", "path": "ouitools.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New returns a new OUI database loaded from the specified file.", "docstring_tokens": ["New", "returns", "a", "new", "OUI", "database", "loaded", "from", "the", "specified", "file", "."], "sha": "ac8139d3326a3a5eb5ec0b368cddf72ed26547fa", "url": "https://github.com/dutchcoders/go-ouitools/blob/ac8139d3326a3a5eb5ec0b368cddf72ed26547fa/ouitools.go#L125-L131", "partition": "valid"} +{"repo": "dutchcoders/go-ouitools", "path": "ouitools.go", "func_name": "Lookup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Lookup finds the OUI the address belongs to", "docstring_tokens": ["Lookup", "finds", "the", "OUI", "the", "address", "belongs", "to"], "sha": "ac8139d3326a3a5eb5ec0b368cddf72ed26547fa", "url": "https://github.com/dutchcoders/go-ouitools/blob/ac8139d3326a3a5eb5ec0b368cddf72ed26547fa/ouitools.go#L134-L142", "partition": "valid"} +{"repo": "dutchcoders/go-ouitools", "path": "ouitools.go", "func_name": "VendorLookup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// VendorLookup obtains the vendor organization name from the MAC address s.", "docstring_tokens": ["VendorLookup", "obtains", "the", "vendor", "organization", "name", "from", "the", "MAC", "address", "s", "."], "sha": "ac8139d3326a3a5eb5ec0b368cddf72ed26547fa", "url": "https://github.com/dutchcoders/go-ouitools/blob/ac8139d3326a3a5eb5ec0b368cddf72ed26547fa/ouitools.go#L145-L155", "partition": "valid"} +{"repo": "dutchcoders/go-ouitools", "path": "ouitools.go", "func_name": "Contains", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Contains reports whether the mac address belongs to the OUI", "docstring_tokens": ["Contains", "reports", "whether", "the", "mac", "address", "belongs", "to", "the", "OUI"], "sha": "ac8139d3326a3a5eb5ec0b368cddf72ed26547fa", "url": "https://github.com/dutchcoders/go-ouitools/blob/ac8139d3326a3a5eb5ec0b368cddf72ed26547fa/ouitools.go#L258-L262", "partition": "valid"} +{"repo": "jacobsa/ratelimit", "path": "throttled_reader.go", "func_name": "ThrottledReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create a reader that limits the bandwidth of reads made from r according to\n// the supplied throttler. Reads are assumed to be made under the supplied\n// context.", "docstring_tokens": ["Create", "a", "reader", "that", "limits", "the", "bandwidth", "of", "reads", "made", "from", "r", "according", "to", "the", "supplied", "throttler", ".", "Reads", "are", "assumed", "to", "be", "made", "under", "the", "supplied", "context", "."], "sha": "f5e47030f3b0a6d33e2176e47adeab7f6140098e", "url": "https://github.com/jacobsa/ratelimit/blob/f5e47030f3b0a6d33e2176e47adeab7f6140098e/throttled_reader.go#L26-L35", "partition": "valid"} +{"repo": "jacobsa/ratelimit", "path": "throttled_bucket.go", "func_name": "NewThrottledBucket", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create a bucket that limits the rate at which it calls the wrapped bucket\n// using opThrottle, and limits the bandwidth with which it reads from the\n// wrapped bucket using egressThrottle.", "docstring_tokens": ["Create", "a", "bucket", "that", "limits", "the", "rate", "at", "which", "it", "calls", "the", "wrapped", "bucket", "using", "opThrottle", "and", "limits", "the", "bandwidth", "with", "which", "it", "reads", "from", "the", "wrapped", "bucket", "using", "egressThrottle", "."], "sha": "f5e47030f3b0a6d33e2176e47adeab7f6140098e", "url": "https://github.com/jacobsa/ratelimit/blob/f5e47030f3b0a6d33e2176e47adeab7f6140098e/throttled_bucket.go#L27-L38", "partition": "valid"} +{"repo": "palantir/amalgomate", "path": "amalgomated/cmdset.go", "func_name": "NewCmdWithRunner", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCmdWithRunner creates a new CmdWithRunner for the provided name and runner. Returns an error if the provided name\n// is not a legal command name.", "docstring_tokens": ["NewCmdWithRunner", "creates", "a", "new", "CmdWithRunner", "for", "the", "provided", "name", "and", "runner", ".", "Returns", "an", "error", "if", "the", "provided", "name", "is", "not", "a", "legal", "command", "name", "."], "sha": "5ecd9b1733f4d148ff7acc02e136cc1085f0b817", "url": "https://github.com/palantir/amalgomate/blob/5ecd9b1733f4d148ff7acc02e136cc1085f0b817/amalgomated/cmdset.go#L32-L47", "partition": "valid"} +{"repo": "palantir/amalgomate", "path": "amalgomated/cmdset.go", "func_name": "MustNewCmdWithRunner", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustNewCmdWithRunner returns the result of NewCmdWithRunner and panics in cases where the function returns an error.", "docstring_tokens": ["MustNewCmdWithRunner", "returns", "the", "result", "of", "NewCmdWithRunner", "and", "panics", "in", "cases", "where", "the", "function", "returns", "an", "error", "."], "sha": "5ecd9b1733f4d148ff7acc02e136cc1085f0b817", "url": "https://github.com/palantir/amalgomate/blob/5ecd9b1733f4d148ff7acc02e136cc1085f0b817/amalgomated/cmdset.go#L50-L56", "partition": "valid"} +{"repo": "palantir/amalgomate", "path": "amalgomate/imports.go", "func_name": "importBreakPaths", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// importBreakPaths returns a slice that contains the import paths before which a line breaks should be inserted.", "docstring_tokens": ["importBreakPaths", "returns", "a", "slice", "that", "contains", "the", "import", "paths", "before", "which", "a", "line", "breaks", "should", "be", "inserted", "."], "sha": "5ecd9b1733f4d148ff7acc02e136cc1085f0b817", "url": "https://github.com/palantir/amalgomate/blob/5ecd9b1733f4d148ff7acc02e136cc1085f0b817/amalgomate/imports.go#L20-L43", "partition": "valid"} +{"repo": "palantir/amalgomate", "path": "amalgomated/cmder.go", "func_name": "SelfProxyCmderSupplier", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SelfProxyCmderSupplier returns a supplier that, given a command, re-invokes the current executable with a proxy\n// version of the provided command.", "docstring_tokens": ["SelfProxyCmderSupplier", "returns", "a", "supplier", "that", "given", "a", "command", "re", "-", "invokes", "the", "current", "executable", "with", "a", "proxy", "version", "of", "the", "provided", "command", "."], "sha": "5ecd9b1733f4d148ff7acc02e136cc1085f0b817", "url": "https://github.com/palantir/amalgomate/blob/5ecd9b1733f4d148ff7acc02e136cc1085f0b817/amalgomated/cmder.go#L41-L49", "partition": "valid"} +{"repo": "palantir/amalgomate", "path": "amalgomated/cmder.go", "func_name": "SupplierWithPrependedArgs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SupplierWithPrependedArgs returns a new Supplier that invokes the provided supplier and returns the result of calling\n// RunnerWithPrependedArgs on the returned runner with the result of applying the provided \"argsFunc\" function to the\n// provided command.", "docstring_tokens": ["SupplierWithPrependedArgs", "returns", "a", "new", "Supplier", "that", "invokes", "the", "provided", "supplier", "and", "returns", "the", "result", "of", "calling", "RunnerWithPrependedArgs", "on", "the", "returned", "runner", "with", "the", "result", "of", "applying", "the", "provided", "argsFunc", "function", "to", "the", "provided", "command", "."], "sha": "5ecd9b1733f4d148ff7acc02e136cc1085f0b817", "url": "https://github.com/palantir/amalgomate/blob/5ecd9b1733f4d148ff7acc02e136cc1085f0b817/amalgomated/cmder.go#L54-L62", "partition": "valid"} +{"repo": "palantir/amalgomate", "path": "amalgomated/cmder.go", "func_name": "selfCmder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// selfCmder returns a Cmder that creates a command that re-invokes the currently running executable.", "docstring_tokens": ["selfCmder", "returns", "a", "Cmder", "that", "creates", "a", "command", "that", "re", "-", "invokes", "the", "currently", "running", "executable", "."], "sha": "5ecd9b1733f4d148ff7acc02e136cc1085f0b817", "url": "https://github.com/palantir/amalgomate/blob/5ecd9b1733f4d148ff7acc02e136cc1085f0b817/amalgomated/cmder.go#L86-L92", "partition": "valid"} +{"repo": "palantir/amalgomate", "path": "amalgomated/cmder.go", "func_name": "CmderWithPrependedArgs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CmderWithPrependedArgs returns a new Cmder that invokes the provided Cmder, but always adds the provided\n// \"prependedArgs\" before any user-supplied arguments. Note that if the runner being wrapped has a notion of\n// \"prependedArgs\" itself, those arguments will precede the \"prependedArgs\" provided in this method.", "docstring_tokens": ["CmderWithPrependedArgs", "returns", "a", "new", "Cmder", "that", "invokes", "the", "provided", "Cmder", "but", "always", "adds", "the", "provided", "prependedArgs", "before", "any", "user", "-", "supplied", "arguments", ".", "Note", "that", "if", "the", "runner", "being", "wrapped", "has", "a", "notion", "of", "prependedArgs", "itself", "those", "arguments", "will", "precede", "the", "prependedArgs", "provided", "in", "this", "method", "."], "sha": "5ecd9b1733f4d148ff7acc02e136cc1085f0b817", "url": "https://github.com/palantir/amalgomate/blob/5ecd9b1733f4d148ff7acc02e136cc1085f0b817/amalgomated/cmder.go#L97-L102", "partition": "valid"} +{"repo": "vanng822/r2router", "path": "seefor.go", "func_name": "NewSeeforRouter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSeeforRouter for creating a new instance of Seefor router", "docstring_tokens": ["NewSeeforRouter", "for", "creating", "a", "new", "instance", "of", "Seefor", "router"], "sha": "1023140a4f309480a35668e695deda550100f502", "url": "https://github.com/vanng822/r2router/blob/1023140a4f309480a35668e695deda550100f502/seefor.go#L38-L45", "partition": "valid"} +{"repo": "vanng822/r2router", "path": "seefor.go", "func_name": "ServeHTTP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Implementing http handler interface.\n// This is a override of Router.ServeHTTP for handling middlewares", "docstring_tokens": ["Implementing", "http", "handler", "interface", ".", "This", "is", "a", "override", "of", "Router", ".", "ServeHTTP", "for", "handling", "middlewares"], "sha": "1023140a4f309480a35668e695deda550100f502", "url": "https://github.com/vanng822/r2router/blob/1023140a4f309480a35668e695deda550100f502/seefor.go#L49-L68", "partition": "valid"} +{"repo": "vanng822/r2router", "path": "seefor.go", "func_name": "Before", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Before is for adding middleware for running before routing", "docstring_tokens": ["Before", "is", "for", "adding", "middleware", "for", "running", "before", "routing"], "sha": "1023140a4f309480a35668e695deda550100f502", "url": "https://github.com/vanng822/r2router/blob/1023140a4f309480a35668e695deda550100f502/seefor.go#L85-L87", "partition": "valid"} +{"repo": "vanng822/r2router", "path": "seefor.go", "func_name": "After", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// After is for adding middleware for running after routing", "docstring_tokens": ["After", "is", "for", "adding", "middleware", "for", "running", "after", "routing"], "sha": "1023140a4f309480a35668e695deda550100f502", "url": "https://github.com/vanng822/r2router/blob/1023140a4f309480a35668e695deda550100f502/seefor.go#L90-L92", "partition": "valid"} +{"repo": "vanng822/r2router", "path": "seefor.go", "func_name": "UseTimer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UseTimer set timer for meaturing endpoint performance.\n// If timer is nil and no timer exists\n// then a new timer will be created \n// else existing timer will be returned.\n// You can serve statistics internal using Timer as handler", "docstring_tokens": ["UseTimer", "set", "timer", "for", "meaturing", "endpoint", "performance", ".", "If", "timer", "is", "nil", "and", "no", "timer", "exists", "then", "a", "new", "timer", "will", "be", "created", "else", "existing", "timer", "will", "be", "returned", ".", "You", "can", "serve", "statistics", "internal", "using", "Timer", "as", "handler"], "sha": "1023140a4f309480a35668e695deda550100f502", "url": "https://github.com/vanng822/r2router/blob/1023140a4f309480a35668e695deda550100f502/seefor.go#L135-L145", "partition": "valid"} +{"repo": "vanng822/r2router", "path": "router.go", "func_name": "NewRouter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRouter return a new Router", "docstring_tokens": ["NewRouter", "return", "a", "new", "Router"], "sha": "1023140a4f309480a35668e695deda550100f502", "url": "https://github.com/vanng822/r2router/blob/1023140a4f309480a35668e695deda550100f502/router.go#L39-L44", "partition": "valid"} +{"repo": "vanng822/r2router", "path": "router.go", "func_name": "ServeHTTP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// http Handler Interface", "docstring_tokens": ["http", "Handler", "Interface"], "sha": "1023140a4f309480a35668e695deda550100f502", "url": "https://github.com/vanng822/r2router/blob/1023140a4f309480a35668e695deda550100f502/router.go#L47-L58", "partition": "valid"} +{"repo": "vanng822/r2router", "path": "router.go", "func_name": "Group", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Group takes a path which typically a prefix for an endpoint\n// It will call callback function with a group router which\n// you can add handler for different request methods", "docstring_tokens": ["Group", "takes", "a", "path", "which", "typically", "a", "prefix", "for", "an", "endpoint", "It", "will", "call", "callback", "function", "with", "a", "group", "router", "which", "you", "can", "add", "handler", "for", "different", "request", "methods"], "sha": "1023140a4f309480a35668e695deda550100f502", "url": "https://github.com/vanng822/r2router/blob/1023140a4f309480a35668e695deda550100f502/router.go#L137-L140", "partition": "valid"} +{"repo": "vanng822/r2router", "path": "routetree.go", "func_name": "findChild", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// findChild finds a child node that matches the given node\n// It returns nil if no node found. This is to see if\n// we already have a similar node registered", "docstring_tokens": ["findChild", "finds", "a", "child", "node", "that", "matches", "the", "given", "node", "It", "returns", "nil", "if", "no", "node", "found", ".", "This", "is", "to", "see", "if", "we", "already", "have", "a", "similar", "node", "registered"], "sha": "1023140a4f309480a35668e695deda550100f502", "url": "https://github.com/vanng822/r2router/blob/1023140a4f309480a35668e695deda550100f502/routetree.go#L27-L35", "partition": "valid"} +{"repo": "vanng822/r2router", "path": "routetree.go", "func_name": "insertChild", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// insertChild registers given node in the route node tree\n// If there is already a similar node it will not insert new node\n// The returned node is always the registered one ie either\n// newly registered or the old one", "docstring_tokens": ["insertChild", "registers", "given", "node", "in", "the", "route", "node", "tree", "If", "there", "is", "already", "a", "similar", "node", "it", "will", "not", "insert", "new", "node", "The", "returned", "node", "is", "always", "the", "registered", "one", "ie", "either", "newly", "registered", "or", "the", "old", "one"], "sha": "1023140a4f309480a35668e695deda550100f502", "url": "https://github.com/vanng822/r2router/blob/1023140a4f309480a35668e695deda550100f502/routetree.go#L41-L59", "partition": "valid"} +{"repo": "vanng822/r2router", "path": "timer.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get returns a Counter for a route.\n// If there is no entry it will create a new one.\n// It will lock during creation", "docstring_tokens": ["Get", "returns", "a", "Counter", "for", "a", "route", ".", "If", "there", "is", "no", "entry", "it", "will", "create", "a", "new", "one", ".", "It", "will", "lock", "during", "creation"], "sha": "1023140a4f309480a35668e695deda550100f502", "url": "https://github.com/vanng822/r2router/blob/1023140a4f309480a35668e695deda550100f502/timer.go#L63-L77", "partition": "valid"} +{"repo": "vanng822/r2router", "path": "timer.go", "func_name": "ServeHTTP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// For serving statistics", "docstring_tokens": ["For", "serving", "statistics"], "sha": "1023140a4f309480a35668e695deda550100f502", "url": "https://github.com/vanng822/r2router/blob/1023140a4f309480a35668e695deda550100f502/timer.go#L126-L152", "partition": "valid"} +{"repo": "vanng822/r2router", "path": "example/basic_auth.go", "func_name": "main", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Example how to use basic auth together with r2router", "docstring_tokens": ["Example", "how", "to", "use", "basic", "auth", "together", "with", "r2router"], "sha": "1023140a4f309480a35668e695deda550100f502", "url": "https://github.com/vanng822/r2router/blob/1023140a4f309480a35668e695deda550100f502/example/basic_auth.go#L10-L21", "partition": "valid"} +{"repo": "vanng822/r2router", "path": "grouprouter.go", "func_name": "NewGroupRouter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewGroupRouter return GroupRouter which is a helper\n// to construct a group of endpoints, such example could\n// be API-version or different methods for an endpoint\n// You should always use router.Group instead of using this directly", "docstring_tokens": ["NewGroupRouter", "return", "GroupRouter", "which", "is", "a", "helper", "to", "construct", "a", "group", "of", "endpoints", "such", "example", "could", "be", "API", "-", "version", "or", "different", "methods", "for", "an", "endpoint", "You", "should", "always", "use", "router", ".", "Group", "instead", "of", "using", "this", "directly"], "sha": "1023140a4f309480a35668e695deda550100f502", "url": "https://github.com/vanng822/r2router/blob/1023140a4f309480a35668e695deda550100f502/grouprouter.go#L20-L25", "partition": "valid"} +{"repo": "vanng822/r2router", "path": "example/route_middleware.go", "func_name": "RouteMiddleware", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Your own route middle wrapper", "docstring_tokens": ["Your", "own", "route", "middle", "wrapper"], "sha": "1023140a4f309480a35668e695deda550100f502", "url": "https://github.com/vanng822/r2router/blob/1023140a4f309480a35668e695deda550100f502/example/route_middleware.go#L10-L15", "partition": "valid"} +{"repo": "vanng822/r2router", "path": "example/route_handlefunc.go", "func_name": "RouteHandlerFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Wrapper for http.HandlerFunc", "docstring_tokens": ["Wrapper", "for", "http", ".", "HandlerFunc"], "sha": "1023140a4f309480a35668e695deda550100f502", "url": "https://github.com/vanng822/r2router/blob/1023140a4f309480a35668e695deda550100f502/example/route_handlefunc.go#L10-L14", "partition": "valid"} +{"repo": "arl/gogeo", "path": "f32/d3/rect.go", "func_name": "RectFromSphere", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RectFromSphere returns the minimum rectangle that contains the circle of\n// center c and radius r.", "docstring_tokens": ["RectFromSphere", "returns", "the", "minimum", "rectangle", "that", "contains", "the", "circle", "of", "center", "c", "and", "radius", "r", "."], "sha": "14bb998e7ae8521e59d9676ac652687014338cfb", "url": "https://github.com/arl/gogeo/blob/14bb998e7ae8521e59d9676ac652687014338cfb/f32/d3/rect.go#L53-L55", "partition": "valid"} +{"repo": "arl/gogeo", "path": "f32/d3/rect.go", "func_name": "CopyRect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CopyRect allocates and returns a new Rectangle that is the copy of r.", "docstring_tokens": ["CopyRect", "allocates", "and", "returns", "a", "new", "Rectangle", "that", "is", "the", "copy", "of", "r", "."], "sha": "14bb998e7ae8521e59d9676ac652687014338cfb", "url": "https://github.com/arl/gogeo/blob/14bb998e7ae8521e59d9676ac652687014338cfb/f32/d3/rect.go#L66-L71", "partition": "valid"} +{"repo": "arl/gogeo", "path": "f32/d3/rect.go", "func_name": "Size", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Size returns r's width, height and depth.", "docstring_tokens": ["Size", "returns", "r", "s", "width", "height", "and", "depth", "."], "sha": "14bb998e7ae8521e59d9676ac652687014338cfb", "url": "https://github.com/arl/gogeo/blob/14bb998e7ae8521e59d9676ac652687014338cfb/f32/d3/rect.go#L94-L100", "partition": "valid"} +{"repo": "arl/gogeo", "path": "f32/d3/rect.go", "func_name": "Overlaps", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Overlaps reports whether r and s have a non-empty intersection.", "docstring_tokens": ["Overlaps", "reports", "whether", "r", "and", "s", "have", "a", "non", "-", "empty", "intersection", "."], "sha": "14bb998e7ae8521e59d9676ac652687014338cfb", "url": "https://github.com/arl/gogeo/blob/14bb998e7ae8521e59d9676ac652687014338cfb/f32/d3/rect.go#L209-L214", "partition": "valid"} +{"repo": "arl/gogeo", "path": "f32/d3/rect.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns a string representation of r.", "docstring_tokens": ["String", "returns", "a", "string", "representation", "of", "r", "."], "sha": "14bb998e7ae8521e59d9676ac652687014338cfb", "url": "https://github.com/arl/gogeo/blob/14bb998e7ae8521e59d9676ac652687014338cfb/f32/d3/rect.go#L251-L253", "partition": "valid"} +{"repo": "arl/gogeo", "path": "f64/d2/rect.go", "func_name": "Dx", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Dx returns r's width.", "docstring_tokens": ["Dx", "returns", "r", "s", "width", "."], "sha": "14bb998e7ae8521e59d9676ac652687014338cfb", "url": "https://github.com/arl/gogeo/blob/14bb998e7ae8521e59d9676ac652687014338cfb/f64/d2/rect.go#L29-L31", "partition": "valid"} +{"repo": "arl/gogeo", "path": "f64/d2/rect.go", "func_name": "Dy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Dy returns r's height.", "docstring_tokens": ["Dy", "returns", "r", "s", "height", "."], "sha": "14bb998e7ae8521e59d9676ac652687014338cfb", "url": "https://github.com/arl/gogeo/blob/14bb998e7ae8521e59d9676ac652687014338cfb/f64/d2/rect.go#L34-L36", "partition": "valid"} +{"repo": "arl/gogeo", "path": "f32/d2/rect.go", "func_name": "In", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// In reports whether Rectangle r is contained in s.", "docstring_tokens": ["In", "reports", "whether", "Rectangle", "r", "is", "contained", "in", "s", "."], "sha": "14bb998e7ae8521e59d9676ac652687014338cfb", "url": "https://github.com/arl/gogeo/blob/14bb998e7ae8521e59d9676ac652687014338cfb/f32/d2/rect.go#L199-L207", "partition": "valid"} +{"repo": "arl/gogeo", "path": "f64/approx.go", "func_name": "Approx", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Approx returns true if x ~= y", "docstring_tokens": ["Approx", "returns", "true", "if", "x", "~", "=", "y"], "sha": "14bb998e7ae8521e59d9676ac652687014338cfb", "url": "https://github.com/arl/gogeo/blob/14bb998e7ae8521e59d9676ac652687014338cfb/f64/approx.go#L14-L17", "partition": "valid"} +{"repo": "arl/gogeo", "path": "f64/approx.go", "func_name": "ApproxEpsilon", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ApproxEpsilon returns true if x ~= y, using provided epsilon value.", "docstring_tokens": ["ApproxEpsilon", "returns", "true", "if", "x", "~", "=", "y", "using", "provided", "epsilon", "value", "."], "sha": "14bb998e7ae8521e59d9676ac652687014338cfb", "url": "https://github.com/arl/gogeo/blob/14bb998e7ae8521e59d9676ac652687014338cfb/f64/approx.go#L20-L22", "partition": "valid"} +{"repo": "arl/gogeo", "path": "f32/d3/vec3.go", "func_name": "SetXYZ", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetXYZ sets the 3 components at once.", "docstring_tokens": ["SetXYZ", "sets", "the", "3", "components", "at", "once", "."], "sha": "14bb998e7ae8521e59d9676ac652687014338cfb", "url": "https://github.com/arl/gogeo/blob/14bb998e7ae8521e59d9676ac652687014338cfb/f32/d3/vec3.go#L66-L70", "partition": "valid"} +{"repo": "arl/gogeo", "path": "f32/d3/vec3.go", "func_name": "Vec3Dist2DSqr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Vec3Dist2DSqr derives the square of the distance between v1 and v2 on the\n// xz-plane.\n//\n// The vectors are projected onto the xz-plane, so the y-values are ignored.", "docstring_tokens": ["Vec3Dist2DSqr", "derives", "the", "square", "of", "the", "distance", "between", "v1", "and", "v2", "on", "the", "xz", "-", "plane", ".", "The", "vectors", "are", "projected", "onto", "the", "xz", "-", "plane", "so", "the", "y", "-", "values", "are", "ignored", "."], "sha": "14bb998e7ae8521e59d9676ac652687014338cfb", "url": "https://github.com/arl/gogeo/blob/14bb998e7ae8521e59d9676ac652687014338cfb/f32/d3/vec3.go#L188-L192", "partition": "valid"} +{"repo": "arl/gogeo", "path": "f32/d3/vec3.go", "func_name": "Copy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Vec3 methods\n// Copy copies the 3 vector components into dst.", "docstring_tokens": ["Vec3", "methods", "Copy", "copies", "the", "3", "vector", "components", "into", "dst", "."], "sha": "14bb998e7ae8521e59d9676ac652687014338cfb", "url": "https://github.com/arl/gogeo/blob/14bb998e7ae8521e59d9676ac652687014338cfb/f32/d3/vec3.go#L197-L201", "partition": "valid"} +{"repo": "arl/gogeo", "path": "f32/d3/vec3.go", "func_name": "Assign", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Assign assign the component of v1 to v. v = v1", "docstring_tokens": ["Assign", "assign", "the", "component", "of", "v1", "to", "v", ".", "v", "=", "v1"], "sha": "14bb998e7ae8521e59d9676ac652687014338cfb", "url": "https://github.com/arl/gogeo/blob/14bb998e7ae8521e59d9676ac652687014338cfb/f32/d3/vec3.go#L246-L250", "partition": "valid"} +{"repo": "arl/gogeo", "path": "f32/d3/vec3.go", "func_name": "Dist2D", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Dist2D derives the distance between v and v2 on the xz-plane.\n//\n// The vectors are projected onto the xz-plane, so the y-values are ignored.", "docstring_tokens": ["Dist2D", "derives", "the", "distance", "between", "v", "and", "v2", "on", "the", "xz", "-", "plane", ".", "The", "vectors", "are", "projected", "onto", "the", "xz", "-", "plane", "so", "the", "y", "-", "values", "are", "ignored", "."], "sha": "14bb998e7ae8521e59d9676ac652687014338cfb", "url": "https://github.com/arl/gogeo/blob/14bb998e7ae8521e59d9676ac652687014338cfb/f32/d3/vec3.go#L281-L285", "partition": "valid"} +{"repo": "arl/gogeo", "path": "f32/d3/vec3.go", "func_name": "Dist2DSqr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Dist2DSqr derives the square of the distance between v and v2 on the\n// xz-plane.\n//\n// The vectors are projected onto the xz-plane, so the y-values are ignored.", "docstring_tokens": ["Dist2DSqr", "derives", "the", "square", "of", "the", "distance", "between", "v", "and", "v2", "on", "the", "xz", "-", "plane", ".", "The", "vectors", "are", "projected", "onto", "the", "xz", "-", "plane", "so", "the", "y", "-", "values", "are", "ignored", "."], "sha": "14bb998e7ae8521e59d9676ac652687014338cfb", "url": "https://github.com/arl/gogeo/blob/14bb998e7ae8521e59d9676ac652687014338cfb/f32/d3/vec3.go#L291-L295", "partition": "valid"} +{"repo": "arl/gogeo", "path": "f32/d3/vec3.go", "func_name": "Cross", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Cross returns the cross product of two vectors. v x v1", "docstring_tokens": ["Cross", "returns", "the", "cross", "product", "of", "two", "vectors", ".", "v", "x", "v1"], "sha": "14bb998e7ae8521e59d9676ac652687014338cfb", "url": "https://github.com/arl/gogeo/blob/14bb998e7ae8521e59d9676ac652687014338cfb/f32/d3/vec3.go#L319-L325", "partition": "valid"} +{"repo": "arl/gogeo", "path": "f32/d3/vec3.go", "func_name": "Dot2D", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Dot2D derives the dot product of two vectors on the xz-plane. u . v\n//\n// The vectors are projected onto the xz-plane, so the y-values are ignored.", "docstring_tokens": ["Dot2D", "derives", "the", "dot", "product", "of", "two", "vectors", "on", "the", "xz", "-", "plane", ".", "u", ".", "v", "The", "vectors", "are", "projected", "onto", "the", "xz", "-", "plane", "so", "the", "y", "-", "values", "are", "ignored", "."], "sha": "14bb998e7ae8521e59d9676ac652687014338cfb", "url": "https://github.com/arl/gogeo/blob/14bb998e7ae8521e59d9676ac652687014338cfb/f32/d3/vec3.go#L335-L337", "partition": "valid"} +{"repo": "arl/gogeo", "path": "f64/d2/ray.go", "func_name": "NewRay", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRay creates a new Ray having the o as origin and v as direction of the\n// line.", "docstring_tokens": ["NewRay", "creates", "a", "new", "Ray", "having", "the", "o", "as", "origin", "and", "v", "as", "direction", "of", "the", "line", "."], "sha": "14bb998e7ae8521e59d9676ac652687014338cfb", "url": "https://github.com/arl/gogeo/blob/14bb998e7ae8521e59d9676ac652687014338cfb/f64/d2/ray.go#L19-L26", "partition": "valid"} +{"repo": "arl/gogeo", "path": "f64/d2/ray.go", "func_name": "IntersectRect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IntersectRect indicates wether the ray intersects with the rectangle b.", "docstring_tokens": ["IntersectRect", "indicates", "wether", "the", "ray", "intersects", "with", "the", "rectangle", "b", "."], "sha": "14bb998e7ae8521e59d9676ac652687014338cfb", "url": "https://github.com/arl/gogeo/blob/14bb998e7ae8521e59d9676ac652687014338cfb/f64/d2/ray.go#L39-L59", "partition": "valid"} +{"repo": "greencase/go-gdpr", "path": "utils.go", "func_name": "SupportedFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SupportedFunc returns a function that checks if the server can\n// support a specific request.", "docstring_tokens": ["SupportedFunc", "returns", "a", "function", "that", "checks", "if", "the", "server", "can", "support", "a", "specific", "request", "."], "sha": "26f1228bb0b14a5b6a447ef1ee31ae6687a34a95", "url": "https://github.com/greencase/go-gdpr/blob/26f1228bb0b14a5b6a447ef1ee31ae6687a34a95/utils.go#L5-L25", "partition": "valid"} +{"repo": "greencase/go-gdpr", "path": "crypto.go", "func_name": "NewSigner", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSigner creates a new RSA backed Signer", "docstring_tokens": ["NewSigner", "creates", "a", "new", "RSA", "backed", "Signer"], "sha": "26f1228bb0b14a5b6a447ef1ee31ae6687a34a95", "url": "https://github.com/greencase/go-gdpr/blob/26f1228bb0b14a5b6a447ef1ee31ae6687a34a95/crypto.go#L55-L83", "partition": "valid"} +{"repo": "greencase/go-gdpr", "path": "crypto.go", "func_name": "NewVerifier", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewVerifier creates a new RSA backed Verifier", "docstring_tokens": ["NewVerifier", "creates", "a", "new", "RSA", "backed", "Verifier"], "sha": "26f1228bb0b14a5b6a447ef1ee31ae6687a34a95", "url": "https://github.com/greencase/go-gdpr/blob/26f1228bb0b14a5b6a447ef1ee31ae6687a34a95/crypto.go#L94-L115", "partition": "valid"} +{"repo": "greencase/go-gdpr", "path": "client.go", "func_name": "Request", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Request makes a performs a new GDPR request.", "docstring_tokens": ["Request", "makes", "a", "performs", "a", "new", "GDPR", "request", "."], "sha": "26f1228bb0b14a5b6a447ef1ee31ae6687a34a95", "url": "https://github.com/greencase/go-gdpr/blob/26f1228bb0b14a5b6a447ef1ee31ae6687a34a95/client.go#L79-L88", "partition": "valid"} +{"repo": "greencase/go-gdpr", "path": "client.go", "func_name": "Status", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Status checks the status of an existing GDPR request.", "docstring_tokens": ["Status", "checks", "the", "status", "of", "an", "existing", "GDPR", "request", "."], "sha": "26f1228bb0b14a5b6a447ef1ee31ae6687a34a95", "url": "https://github.com/greencase/go-gdpr/blob/26f1228bb0b14a5b6a447ef1ee31ae6687a34a95/client.go#L91-L95", "partition": "valid"} +{"repo": "greencase/go-gdpr", "path": "client.go", "func_name": "Cancel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Cancel cancels an existing GDPR request.", "docstring_tokens": ["Cancel", "cancels", "an", "existing", "GDPR", "request", "."], "sha": "26f1228bb0b14a5b6a447ef1ee31ae6687a34a95", "url": "https://github.com/greencase/go-gdpr/blob/26f1228bb0b14a5b6a447ef1ee31ae6687a34a95/client.go#L98-L102", "partition": "valid"} +{"repo": "greencase/go-gdpr", "path": "client.go", "func_name": "Discovery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Discovery describes the remote OpenGDPR speciication.", "docstring_tokens": ["Discovery", "describes", "the", "remote", "OpenGDPR", "speciication", "."], "sha": "26f1228bb0b14a5b6a447ef1ee31ae6687a34a95", "url": "https://github.com/greencase/go-gdpr/blob/26f1228bb0b14a5b6a447ef1ee31ae6687a34a95/client.go#L105-L109", "partition": "valid"} +{"repo": "greencase/go-gdpr", "path": "client.go", "func_name": "NewClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClient returns a new OpenGDPR client.", "docstring_tokens": ["NewClient", "returns", "a", "new", "OpenGDPR", "client", "."], "sha": "26f1228bb0b14a5b6a447ef1ee31ae6687a34a95", "url": "https://github.com/greencase/go-gdpr/blob/26f1228bb0b14a5b6a447ef1ee31ae6687a34a95/client.go#L112-L129", "partition": "valid"} +{"repo": "arl/gogeo", "path": "f64/d2/vec_stack.go", "func_name": "Push", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Push pushes a new item on top of the stack.", "docstring_tokens": ["Push", "pushes", "a", "new", "item", "on", "top", "of", "the", "stack", "."], "sha": "14bb998e7ae8521e59d9676ac652687014338cfb", "url": "https://github.com/arl/gogeo/blob/14bb998e7ae8521e59d9676ac652687014338cfb/f64/d2/vec_stack.go#L31-L34", "partition": "valid"} +{"repo": "arl/gogeo", "path": "f64/d2/vec_stack.go", "func_name": "Pop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Pop removes the topmost item from the stack and return its value.\n//\n// If the stack is empty, Pop returns nil.", "docstring_tokens": ["Pop", "removes", "the", "topmost", "item", "from", "the", "stack", "and", "return", "its", "value", ".", "If", "the", "stack", "is", "empty", "Pop", "returns", "nil", "."], "sha": "14bb998e7ae8521e59d9676ac652687014338cfb", "url": "https://github.com/arl/gogeo/blob/14bb998e7ae8521e59d9676ac652687014338cfb/f64/d2/vec_stack.go#L39-L46", "partition": "valid"} +{"repo": "arl/gogeo", "path": "f64/d2/vec_stack.go", "func_name": "PopLast", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PopLast removes the bottommost item.\n//\n// PopLast does nothing if the stack does not contain at least 2 items.", "docstring_tokens": ["PopLast", "removes", "the", "bottommost", "item", ".", "PopLast", "does", "nothing", "if", "the", "stack", "does", "not", "contain", "at", "least", "2", "items", "."], "sha": "14bb998e7ae8521e59d9676ac652687014338cfb", "url": "https://github.com/arl/gogeo/blob/14bb998e7ae8521e59d9676ac652687014338cfb/f64/d2/vec_stack.go#L51-L56", "partition": "valid"} +{"repo": "arl/gogeo", "path": "f64/d2/vec_stack.go", "func_name": "Peek", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Peek returns the topmost item without removing it from the stack.", "docstring_tokens": ["Peek", "returns", "the", "topmost", "item", "without", "removing", "it", "from", "the", "stack", "."], "sha": "14bb998e7ae8521e59d9676ac652687014338cfb", "url": "https://github.com/arl/gogeo/blob/14bb998e7ae8521e59d9676ac652687014338cfb/f64/d2/vec_stack.go#L59-L66", "partition": "valid"} +{"repo": "arl/gogeo", "path": "f64/d2/vec_stack.go", "func_name": "PeekN", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PeekN returns at max the N topmost item without removing them from the stack.", "docstring_tokens": ["PeekN", "returns", "at", "max", "the", "N", "topmost", "item", "without", "removing", "them", "from", "the", "stack", "."], "sha": "14bb998e7ae8521e59d9676ac652687014338cfb", "url": "https://github.com/arl/gogeo/blob/14bb998e7ae8521e59d9676ac652687014338cfb/f64/d2/vec_stack.go#L69-L84", "partition": "valid"} +{"repo": "arl/gogeo", "path": "f64/d2/vec.go", "func_name": "Vecf32", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Vecf32 creates a Vec from float32 values.", "docstring_tokens": ["Vecf32", "creates", "a", "Vec", "from", "float32", "values", "."], "sha": "14bb998e7ae8521e59d9676ac652687014338cfb", "url": "https://github.com/arl/gogeo/blob/14bb998e7ae8521e59d9676ac652687014338cfb/f64/d2/vec.go#L22-L24", "partition": "valid"} +{"repo": "arl/gogeo", "path": "f64/d2/vec.go", "func_name": "Veci", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Veci creates a Vec from int values.", "docstring_tokens": ["Veci", "creates", "a", "Vec", "from", "int", "values", "."], "sha": "14bb998e7ae8521e59d9676ac652687014338cfb", "url": "https://github.com/arl/gogeo/blob/14bb998e7ae8521e59d9676ac652687014338cfb/f64/d2/vec.go#L27-L29", "partition": "valid"} +{"repo": "arl/gogeo", "path": "f64/d2/vec.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add returns the vector v+v2.", "docstring_tokens": ["Add", "returns", "the", "vector", "v", "+", "v2", "."], "sha": "14bb998e7ae8521e59d9676ac652687014338cfb", "url": "https://github.com/arl/gogeo/blob/14bb998e7ae8521e59d9676ac652687014338cfb/f64/d2/vec.go#L32-L34", "partition": "valid"} +{"repo": "arl/gogeo", "path": "f64/d2/vec.go", "func_name": "Sub", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sub returns the vector v-v2.", "docstring_tokens": ["Sub", "returns", "the", "vector", "v", "-", "v2", "."], "sha": "14bb998e7ae8521e59d9676ac652687014338cfb", "url": "https://github.com/arl/gogeo/blob/14bb998e7ae8521e59d9676ac652687014338cfb/f64/d2/vec.go#L37-L39", "partition": "valid"} +{"repo": "arl/gogeo", "path": "f64/d2/vec.go", "func_name": "In", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// In reports whether p is in r.", "docstring_tokens": ["In", "reports", "whether", "p", "is", "in", "r", "."], "sha": "14bb998e7ae8521e59d9676ac652687014338cfb", "url": "https://github.com/arl/gogeo/blob/14bb998e7ae8521e59d9676ac652687014338cfb/f64/d2/vec.go#L52-L55", "partition": "valid"} +{"repo": "arl/gogeo", "path": "f64/d2/vec.go", "func_name": "Len", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Len returns the vector's length.", "docstring_tokens": ["Len", "returns", "the", "vector", "s", "length", "."], "sha": "14bb998e7ae8521e59d9676ac652687014338cfb", "url": "https://github.com/arl/gogeo/blob/14bb998e7ae8521e59d9676ac652687014338cfb/f64/d2/vec.go#L82-L84", "partition": "valid"} +{"repo": "arl/gogeo", "path": "f64/d2/vec.go", "func_name": "ApproxFuncEqual", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ApproxFuncEqual takes in a func that compares two floats, and uses it to do\n// an element-wise comparison of the vector to another.\n//\n// This is intended to be used with FloatEqualFunc", "docstring_tokens": ["ApproxFuncEqual", "takes", "in", "a", "func", "that", "compares", "two", "floats", "and", "uses", "it", "to", "do", "an", "element", "-", "wise", "comparison", "of", "the", "vector", "to", "another", ".", "This", "is", "intended", "to", "be", "used", "with", "FloatEqualFunc"], "sha": "14bb998e7ae8521e59d9676ac652687014338cfb", "url": "https://github.com/arl/gogeo/blob/14bb998e7ae8521e59d9676ac652687014338cfb/f64/d2/vec.go#L129-L137", "partition": "valid"} +{"repo": "greencase/go-gdpr", "path": "server.go", "func_name": "Merge", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Merge merges another HandlerMap into itself.", "docstring_tokens": ["Merge", "merges", "another", "HandlerMap", "into", "itself", "."], "sha": "26f1228bb0b14a5b6a447ef1ee31ae6687a34a95", "url": "https://github.com/greencase/go-gdpr/blob/26f1228bb0b14a5b6a447ef1ee31ae6687a34a95/server.go#L50-L59", "partition": "valid"} +{"repo": "greencase/go-gdpr", "path": "server.go", "func_name": "respCode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// respCode maps any successful request with a\n// specific status code or returns 200.", "docstring_tokens": ["respCode", "maps", "any", "successful", "request", "with", "a", "specific", "status", "code", "or", "returns", "200", "."], "sha": "26f1228bb0b14a5b6a447ef1ee31ae6687a34a95", "url": "https://github.com/greencase/go-gdpr/blob/26f1228bb0b14a5b6a447ef1ee31ae6687a34a95/server.go#L114-L119", "partition": "valid"} +{"repo": "greencase/go-gdpr", "path": "server.go", "func_name": "NewServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewServer returns a server type that statisfies the\n// http.Handler interface.", "docstring_tokens": ["NewServer", "returns", "a", "server", "type", "that", "statisfies", "the", "http", ".", "Handler", "interface", "."], "sha": "26f1228bb0b14a5b6a447ef1ee31ae6687a34a95", "url": "https://github.com/greencase/go-gdpr/blob/26f1228bb0b14a5b6a447ef1ee31ae6687a34a95/server.go#L216-L239", "partition": "valid"} +{"repo": "greencase/go-gdpr", "path": "callback.go", "func_name": "Callback", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Callback sends the CallbackRequest type to the configured\n// StatusCallbackUrl. If it fails to deliver in n attempts or\n// the request is invalid it will return an error.", "docstring_tokens": ["Callback", "sends", "the", "CallbackRequest", "type", "to", "the", "configured", "StatusCallbackUrl", ".", "If", "it", "fails", "to", "deliver", "in", "n", "attempts", "or", "the", "request", "is", "invalid", "it", "will", "return", "an", "error", "."], "sha": "26f1228bb0b14a5b6a447ef1ee31ae6687a34a95", "url": "https://github.com/greencase/go-gdpr/blob/26f1228bb0b14a5b6a447ef1ee31ae6687a34a95/callback.go#L23-L54", "partition": "valid"} +{"repo": "greencase/go-gdpr", "path": "errors.go", "func_name": "ErrNotFound", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ErrNotFound indicates a request could\n// not be found by the processor.", "docstring_tokens": ["ErrNotFound", "indicates", "a", "request", "could", "not", "be", "found", "by", "the", "processor", "."], "sha": "26f1228bb0b14a5b6a447ef1ee31ae6687a34a95", "url": "https://github.com/greencase/go-gdpr/blob/26f1228bb0b14a5b6a447ef1ee31ae6687a34a95/errors.go#L10-L15", "partition": "valid"} +{"repo": "greencase/go-gdpr", "path": "errors.go", "func_name": "ErrUnsupportedRequestType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ErrUnsupportedRequestType indicates the processor\n// cannot fullfil a request for the given RequestType.", "docstring_tokens": ["ErrUnsupportedRequestType", "indicates", "the", "processor", "cannot", "fullfil", "a", "request", "for", "the", "given", "RequestType", "."], "sha": "26f1228bb0b14a5b6a447ef1ee31ae6687a34a95", "url": "https://github.com/greencase/go-gdpr/blob/26f1228bb0b14a5b6a447ef1ee31ae6687a34a95/errors.go#L19-L24", "partition": "valid"} +{"repo": "greencase/go-gdpr", "path": "errors.go", "func_name": "ErrUnsupportedIdentity", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ErrUnsupportedIdentity indicates the processor\n// does not support the given identity type.", "docstring_tokens": ["ErrUnsupportedIdentity", "indicates", "the", "processor", "does", "not", "support", "the", "given", "identity", "type", "."], "sha": "26f1228bb0b14a5b6a447ef1ee31ae6687a34a95", "url": "https://github.com/greencase/go-gdpr/blob/26f1228bb0b14a5b6a447ef1ee31ae6687a34a95/errors.go#L28-L33", "partition": "valid"} +{"repo": "greencase/go-gdpr", "path": "errors.go", "func_name": "ErrMissingRequiredField", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ErrMissingRequiredField indicates the request\n// is missing a required field.", "docstring_tokens": ["ErrMissingRequiredField", "indicates", "the", "request", "is", "missing", "a", "required", "field", "."], "sha": "26f1228bb0b14a5b6a447ef1ee31ae6687a34a95", "url": "https://github.com/greencase/go-gdpr/blob/26f1228bb0b14a5b6a447ef1ee31ae6687a34a95/errors.go#L37-L42", "partition": "valid"} +{"repo": "greencase/go-gdpr", "path": "errors.go", "func_name": "ErrInvalidRequestSignature", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ErrInvalidRequestSignature indicates the payload could not\n// be verified with the given signature.", "docstring_tokens": ["ErrInvalidRequestSignature", "indicates", "the", "payload", "could", "not", "be", "verified", "with", "the", "given", "signature", "."], "sha": "26f1228bb0b14a5b6a447ef1ee31ae6687a34a95", "url": "https://github.com/greencase/go-gdpr/blob/26f1228bb0b14a5b6a447ef1ee31ae6687a34a95/errors.go#L46-L52", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "database_servers.go", "func_name": "DatabaseServers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DatabaseServers retrieves a list of all database servers", "docstring_tokens": ["DatabaseServers", "retrieves", "a", "list", "of", "all", "database", "servers"], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/database_servers.go#L51-L58", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "database_servers.go", "func_name": "SnapshotDatabaseServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SnapshotDatabaseServer requests a snapshot of an existing database server.", "docstring_tokens": ["SnapshotDatabaseServer", "requests", "a", "snapshot", "of", "an", "existing", "database", "server", "."], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/database_servers.go#L104-L117", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "database_servers.go", "func_name": "ResetPasswordForDatabaseServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ResetPasswordForDatabaseServer requests a snapshot of an existing database server.", "docstring_tokens": ["ResetPasswordForDatabaseServer", "requests", "a", "snapshot", "of", "an", "existing", "database", "server", "."], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/database_servers.go#L120-L127", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "servers.go", "func_name": "Servers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Servers retrieves a list of all servers", "docstring_tokens": ["Servers", "retrieves", "a", "list", "of", "all", "servers"], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/servers.go#L64-L71", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "servers.go", "func_name": "Server", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Server retrieves a detailed view of one server", "docstring_tokens": ["Server", "retrieves", "a", "detailed", "view", "of", "one", "server"], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/servers.go#L74-L81", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "servers.go", "func_name": "DestroyServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DestroyServer issues a request to destroy the server", "docstring_tokens": ["DestroyServer", "issues", "a", "request", "to", "destroy", "the", "server"], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/servers.go#L111-L117", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "servers.go", "func_name": "LockServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LockServer locks an existing server, preventing it's destruction without\n// first unlocking. Deprecated, use LockResource instead.", "docstring_tokens": ["LockServer", "locks", "an", "existing", "server", "preventing", "it", "s", "destruction", "without", "first", "unlocking", ".", "Deprecated", "use", "LockResource", "instead", "."], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/servers.go#L168-L170", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "servers.go", "func_name": "UnlockServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnlockServer unlocks a previously locked existing server, allowing\n// destruction again. Deprecated, use UnLockResource instead.", "docstring_tokens": ["UnlockServer", "unlocks", "a", "previously", "locked", "existing", "server", "allowing", "destruction", "again", ".", "Deprecated", "use", "UnLockResource", "instead", "."], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/servers.go#L174-L176", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "servers.go", "func_name": "SnapshotServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SnapshotServer issues a request to snapshot the disk of an existing\n// server. The snapshot is allocated an Image Id which is returned within an\n// instance of Image.", "docstring_tokens": ["SnapshotServer", "issues", "a", "request", "to", "snapshot", "the", "disk", "of", "an", "existing", "server", ".", "The", "snapshot", "is", "allocated", "an", "Image", "Id", "which", "is", "returned", "within", "an", "instance", "of", "Image", "."], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/servers.go#L181-L193", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "servers.go", "func_name": "FullConsoleUrl", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FullConsoleUrl returns the console url for the server with the token in the\n// query string. Server needs a ConsoleUrl and ConsoleToken, retrieved using\n// ActivateConsoleForServer", "docstring_tokens": ["FullConsoleUrl", "returns", "the", "console", "url", "for", "the", "server", "with", "the", "token", "in", "the", "query", "string", ".", "Server", "needs", "a", "ConsoleUrl", "and", "ConsoleToken", "retrieved", "using", "ActivateConsoleForServer"], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/servers.go#L210-L225", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "firewall_rules.go", "func_name": "FirewallRule", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FirewallRule retrieves a detailed view of one firewall rule", "docstring_tokens": ["FirewallRule", "retrieves", "a", "detailed", "view", "of", "one", "firewall", "rule"], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/firewall_rules.go#L37-L44", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "server_groups.go", "func_name": "ServerGroups", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServerGroups retrieves a list of all server groups", "docstring_tokens": ["ServerGroups", "retrieves", "a", "list", "of", "all", "server", "groups"], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/server_groups.go#L37-L44", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "server_groups.go", "func_name": "ServerGroup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServerGroup retrieves a detailed view on one server group", "docstring_tokens": ["ServerGroup", "retrieves", "a", "detailed", "view", "on", "one", "server", "group"], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/server_groups.go#L47-L54", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "server_groups.go", "func_name": "AddServersToServerGroup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddServersToServerGroup adds servers to an existing server group.\n//\n// The identifier parameter specifies the destination group.\n//\n// The serverIds paramater specifies the identifiers of the servers you want to add.", "docstring_tokens": ["AddServersToServerGroup", "adds", "servers", "to", "an", "existing", "server", "group", ".", "The", "identifier", "parameter", "specifies", "the", "destination", "group", ".", "The", "serverIds", "paramater", "specifies", "the", "identifiers", "of", "the", "servers", "you", "want", "to", "add", "."], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/server_groups.go#L100-L111", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "server_groups.go", "func_name": "MoveServersToServerGroup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MoveServersToServerGroup atomically moves servers from one group to another.\n//\n// The src parameter specifies the group to which the servers currently belong\n//\n// The dst parameter specifies the group to which you want to move the servers.\n//\n// The serverIds parameter specifies the identifiers of the servers you want to move.", "docstring_tokens": ["MoveServersToServerGroup", "atomically", "moves", "servers", "from", "one", "group", "to", "another", ".", "The", "src", "parameter", "specifies", "the", "group", "to", "which", "the", "servers", "currently", "belong", "The", "dst", "parameter", "specifies", "the", "group", "to", "which", "you", "want", "to", "move", "the", "servers", ".", "The", "serverIds", "parameter", "specifies", "the", "identifiers", "of", "the", "servers", "you", "want", "to", "move", "."], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/server_groups.go#L138-L149", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "load_balancers.go", "func_name": "LoadBalancers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadBalancers retrieves a list of all load balancers", "docstring_tokens": ["LoadBalancers", "retrieves", "a", "list", "of", "all", "load", "balancers"], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/load_balancers.go#L105-L112", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "load_balancers.go", "func_name": "LoadBalancer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadBalancer retrieves a detailed view of one load balancer", "docstring_tokens": ["LoadBalancer", "retrieves", "a", "detailed", "view", "of", "one", "load", "balancer"], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/load_balancers.go#L115-L122", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "load_balancers.go", "func_name": "AddNodesToLoadBalancer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddNodesToLoadBalancer adds nodes to an existing load balancer.", "docstring_tokens": ["AddNodesToLoadBalancer", "adds", "nodes", "to", "an", "existing", "load", "balancer", "."], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/load_balancers.go#L161-L168", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "load_balancers.go", "func_name": "RemoveListenersFromLoadBalancer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveListenersFromLoadBalancer removes listeners to an existing load balancer.", "docstring_tokens": ["RemoveListenersFromLoadBalancer", "removes", "listeners", "to", "an", "existing", "load", "balancer", "."], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/load_balancers.go#L191-L198", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "resource_locking.go", "func_name": "LockResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LockResource locks a resource against destroy requests. Support brightbox.CloudIP, brightbox.Server, brightbox.Image and brightbox.LoadBalancer", "docstring_tokens": ["LockResource", "locks", "a", "resource", "against", "destroy", "requests", ".", "Support", "brightbox", ".", "CloudIP", "brightbox", ".", "Server", "brightbox", ".", "Image", "and", "brightbox", ".", "LoadBalancer"], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/resource_locking.go#L39-L49", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "firewall_policies.go", "func_name": "FirewallPolicies", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FirewallPolicies retrieves a list of all firewall policies", "docstring_tokens": ["FirewallPolicies", "retrieves", "a", "list", "of", "all", "firewall", "policies"], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/firewall_policies.go#L29-L36", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "firewall_policies.go", "func_name": "FirewallPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FirewallPolicy retrieves a detailed view of one firewall policy", "docstring_tokens": ["FirewallPolicy", "retrieves", "a", "detailed", "view", "of", "one", "firewall", "policy"], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/firewall_policies.go#L39-L46", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "firewall_policies.go", "func_name": "ApplyFirewallPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ApplyFirewallPolicy issues a request to apply the given firewall policy to\n// the given server group.\n//", "docstring_tokens": ["ApplyFirewallPolicy", "issues", "a", "request", "to", "apply", "the", "given", "firewall", "policy", "to", "the", "given", "server", "group", "."], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/firewall_policies.go#L90-L98", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "swauth/results.go", "func_name": "Extract", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Extract is a method that attempts to interpret any Swauth authentication\n// response as a AuthResult struct.", "docstring_tokens": ["Extract", "is", "a", "method", "that", "attempts", "to", "interpret", "any", "Swauth", "authentication", "response", "as", "a", "AuthResult", "struct", "."], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/swauth/results.go#L23-L27", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "api_clients.go", "func_name": "ApiClients", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ApiClients retrieves a list of all API clients", "docstring_tokens": ["ApiClients", "retrieves", "a", "list", "of", "all", "API", "clients"], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/api_clients.go#L29-L36", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "api_clients.go", "func_name": "ApiClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ApiClient retrieves a detailed view of one API client", "docstring_tokens": ["ApiClient", "retrieves", "a", "detailed", "view", "of", "one", "API", "client"], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/api_clients.go#L39-L46", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "api_clients.go", "func_name": "ResetSecretForApiClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ResetSecretForApiClient requests a snapshot of an existing api client", "docstring_tokens": ["ResetSecretForApiClient", "requests", "a", "snapshot", "of", "an", "existing", "api", "client"], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/api_clients.go#L82-L89", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "images.go", "func_name": "Images", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Images retrieves a list of all images", "docstring_tokens": ["Images", "retrieves", "a", "list", "of", "all", "images"], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/images.go#L31-L38", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "images.go", "func_name": "Image", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Image retrieves a detailed view of one image", "docstring_tokens": ["Image", "retrieves", "a", "detailed", "view", "of", "one", "image"], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/images.go#L41-L48", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "accounts.go", "func_name": "Accounts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Accounts retrieves a list of all accounts associated with the client.\n//\n// API Clients are only ever associated with one single account. User clients\n// can have multiple accounts, through collaborations.", "docstring_tokens": ["Accounts", "retrieves", "a", "list", "of", "all", "accounts", "associated", "with", "the", "client", ".", "API", "Clients", "are", "only", "ever", "associated", "with", "one", "single", "account", ".", "User", "clients", "can", "have", "multiple", "accounts", "through", "collaborations", "."], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/accounts.go#L47-L54", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "accounts.go", "func_name": "Account", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Account retrieves a detailed view of one account", "docstring_tokens": ["Account", "retrieves", "a", "detailed", "view", "of", "one", "account"], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/accounts.go#L57-L64", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "cloud_ips.go", "func_name": "CloudIPs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CloudIPs retrieves a list of all cloud ips", "docstring_tokens": ["CloudIPs", "retrieves", "a", "list", "of", "all", "cloud", "ips"], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/cloud_ips.go#L45-L52", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "cloud_ips.go", "func_name": "CloudIP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CloudIP retrieves a detailed view of one cloud ip", "docstring_tokens": ["CloudIP", "retrieves", "a", "detailed", "view", "of", "one", "cloud", "ip"], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/cloud_ips.go#L55-L62", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "cloud_ips.go", "func_name": "MapCloudIPtoServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MapCloudIPtoServer is a convenience method to map a Cloud IP to a\n// server. First looks up the server to get the network interface id. Uses the\n// first interface found.", "docstring_tokens": ["MapCloudIPtoServer", "is", "a", "convenience", "method", "to", "map", "a", "Cloud", "IP", "to", "a", "server", ".", "First", "looks", "up", "the", "server", "to", "get", "the", "network", "interface", "id", ".", "Uses", "the", "first", "interface", "found", "."], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/cloud_ips.go#L118-L132", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "helper/swifttransport/authheader.go", "func_name": "setAuthHeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setAuthHeader sets the Swift Authorization header to r using the access\n// token in t.\n//", "docstring_tokens": ["setAuthHeader", "sets", "the", "Swift", "Authorization", "header", "to", "r", "using", "the", "access", "token", "in", "t", "."], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/helper/swifttransport/authheader.go#L12-L14", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "swauth/requests.go", "func_name": "Auth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Auth performs an authentication request for a Swauth-based user.", "docstring_tokens": ["Auth", "performs", "an", "authentication", "request", "for", "a", "Swauth", "-", "based", "user", "."], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/swauth/requests.go#L25-L52", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "collaborations.go", "func_name": "Collaborations", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Collaborations retrieves a list of all the current user's collaborations", "docstring_tokens": ["Collaborations", "retrieves", "a", "list", "of", "all", "the", "current", "user", "s", "collaborations"], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/collaborations.go#L24-L31", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "collaborations.go", "func_name": "Collaboration", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Collaboration retrieves a detailed view of one of the current user's\n// collaborations", "docstring_tokens": ["Collaboration", "retrieves", "a", "detailed", "view", "of", "one", "of", "the", "current", "user", "s", "collaborations"], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/collaborations.go#L35-L42", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "database_snapshot.go", "func_name": "DatabaseSnapshots", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DatabaseSnapshots retrieves a list of all database snapshot", "docstring_tokens": ["DatabaseSnapshots", "retrieves", "a", "list", "of", "all", "database", "snapshot"], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/database_snapshot.go#L25-L32", "partition": "valid"} +{"repo": "brightbox/gobrightbox", "path": "database_snapshot.go", "func_name": "DatabaseSnapshot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DatabaseSnapshot retrieves a detailed view of one database snapshot", "docstring_tokens": ["DatabaseSnapshot", "retrieves", "a", "detailed", "view", "of", "one", "database", "snapshot"], "sha": "1d4ec801c936e93e6a5a4fb3686f610064722bb2", "url": "https://github.com/brightbox/gobrightbox/blob/1d4ec801c936e93e6a5a4fb3686f610064722bb2/database_snapshot.go#L35-L42", "partition": "valid"} +{"repo": "kotakanbe/go-pingscanner", "path": "pingscanner.go", "func_name": "Scan", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Scan ping to hosts in CIDR range.", "docstring_tokens": ["Scan", "ping", "to", "hosts", "in", "CIDR", "range", "."], "sha": "58e188a3e4f6ab1a6371e33421e4502e26fa1e80", "url": "https://github.com/kotakanbe/go-pingscanner/blob/58e188a3e4f6ab1a6371e33421e4502e26fa1e80/pingscanner.go#L62-L87", "partition": "valid"} +{"repo": "jimmidyson/go-download", "path": "download.go", "func_name": "ToFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToFile downloads the specified `src` URL to `dest` file using\n// the specified `FileOptions`.", "docstring_tokens": ["ToFile", "downloads", "the", "specified", "src", "URL", "to", "dest", "file", "using", "the", "specified", "FileOptions", "."], "sha": "7f9a90c8c95bee1bb7de9e72c682c67c8bf5546d", "url": "https://github.com/jimmidyson/go-download/blob/7f9a90c8c95bee1bb7de9e72c682c67c8bf5546d/download.go#L95-L129", "partition": "valid"} +{"repo": "jimmidyson/go-download", "path": "download.go", "func_name": "ToWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToWriter downloads the specified `src` URL to `w` writer using\n// the specified `Options`.", "docstring_tokens": ["ToWriter", "downloads", "the", "specified", "src", "URL", "to", "w", "writer", "using", "the", "specified", "Options", "."], "sha": "7f9a90c8c95bee1bb7de9e72c682c67c8bf5546d", "url": "https://github.com/jimmidyson/go-download/blob/7f9a90c8c95bee1bb7de9e72c682c67c8bf5546d/download.go#L192-L198", "partition": "valid"} +{"repo": "jimmidyson/go-download", "path": "download.go", "func_name": "FromURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FromURL downloads the specified `src` URL to `w` writer using\n// the specified `Options`.", "docstring_tokens": ["FromURL", "downloads", "the", "specified", "src", "URL", "to", "w", "writer", "using", "the", "specified", "Options", "."], "sha": "7f9a90c8c95bee1bb7de9e72c682c67c8bf5546d", "url": "https://github.com/jimmidyson/go-download/blob/7f9a90c8c95bee1bb7de9e72c682c67c8bf5546d/download.go#L202-L258", "partition": "valid"} +{"repo": "craigmj/gototp", "path": "gototp.go", "func_name": "ForPeriod", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return the time-based OTP for the given period.", "docstring_tokens": ["Return", "the", "time", "-", "based", "OTP", "for", "the", "given", "period", "."], "sha": "bbfd598b42caf9b1db7318cae7e10d0b94846f56", "url": "https://github.com/craigmj/gototp/blob/bbfd598b42caf9b1db7318cae7e10d0b94846f56/gototp.go#L64-L78", "partition": "valid"} +{"repo": "craigmj/gototp", "path": "gototp.go", "func_name": "QRCodeData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return the data to be contained in a QR Code for this TOTP with the given label.", "docstring_tokens": ["Return", "the", "data", "to", "be", "contained", "in", "a", "QR", "Code", "for", "this", "TOTP", "with", "the", "given", "label", "."], "sha": "bbfd598b42caf9b1db7318cae7e10d0b94846f56", "url": "https://github.com/craigmj/gototp/blob/bbfd598b42caf9b1db7318cae7e10d0b94846f56/gototp.go#L86-L92", "partition": "valid"} +{"repo": "craigmj/gototp", "path": "gototp.go", "func_name": "RandomSecret", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Generate a Random secret encoded as a b32 string\n// If the length is <= 0, a default length of 10 bytes will\n// be used, which will generate a secret of length 16.", "docstring_tokens": ["Generate", "a", "Random", "secret", "encoded", "as", "a", "b32", "string", "If", "the", "length", "is", "<", "=", "0", "a", "default", "length", "of", "10", "bytes", "will", "be", "used", "which", "will", "generate", "a", "secret", "of", "length", "16", "."], "sha": "bbfd598b42caf9b1db7318cae7e10d0b94846f56", "url": "https://github.com/craigmj/gototp/blob/bbfd598b42caf9b1db7318cae7e10d0b94846f56/gototp.go#L103-L112", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "peer.go", "func_name": "DefaultPeerConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DefaultPeerConfig returns the default config.", "docstring_tokens": ["DefaultPeerConfig", "returns", "the", "default", "config", "."], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/peer.go#L50-L59", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "peer.go", "func_name": "PubKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PubKey returns peer's public key.", "docstring_tokens": ["PubKey", "returns", "peer", "s", "public", "key", "."], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/peer.go#L192-L200", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "peer.go", "func_name": "OnStart", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OnStart implements BaseService.", "docstring_tokens": ["OnStart", "implements", "BaseService", "."], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/peer.go#L203-L207", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "peer.go", "func_name": "Send", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Send msg to the channel identified by chID byte. Returns false if the send\n// queue is full after timeout, specified by MConnection.", "docstring_tokens": ["Send", "msg", "to", "the", "channel", "identified", "by", "chID", "byte", ".", "Returns", "false", "if", "the", "send", "queue", "is", "full", "after", "timeout", "specified", "by", "MConnection", "."], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/peer.go#L227-L234", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "peer.go", "func_name": "WriteTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteTo writes the peer's public key to w.", "docstring_tokens": ["WriteTo", "writes", "the", "peer", "s", "public", "key", "to", "w", "."], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/peer.go#L254-L259", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "peer.go", "func_name": "Equals", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Equals reports whenever 2 peers are actually represent the same node.", "docstring_tokens": ["Equals", "reports", "whenever", "2", "peers", "are", "actually", "represent", "the", "same", "node", "."], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/peer.go#L271-L273", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "fuzz.go", "func_name": "FuzzConnAfter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FuzzConnAfter creates a new FuzzedConnection. Fuzzing starts when the\n// duration elapses.", "docstring_tokens": ["FuzzConnAfter", "creates", "a", "new", "FuzzedConnection", ".", "Fuzzing", "starts", "when", "the", "duration", "elapses", "."], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/fuzz.go#L67-L69", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "connection.go", "func_name": "NewMConnectionWithConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMConnectionWithConfig wraps net.Conn and creates multiplex connection with a config", "docstring_tokens": ["NewMConnectionWithConfig", "wraps", "net", ".", "Conn", "and", "creates", "multiplex", "connection", "with", "a", "config"], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/connection.go#L113-L146", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "connection.go", "func_name": "_recover", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Catch panics, usually caused by remote disconnects.", "docstring_tokens": ["Catch", "panics", "usually", "caused", "by", "remote", "disconnects", "."], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/connection.go#L188-L194", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "connection.go", "func_name": "Send", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Queues a message to be sent to channel.", "docstring_tokens": ["Queues", "a", "message", "to", "be", "sent", "to", "channel", "."], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/connection.go#L206-L231", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "connection.go", "func_name": "TrySend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Queues a message to be sent to channel.\n// Nonblocking, returns true if successful.", "docstring_tokens": ["Queues", "a", "message", "to", "be", "sent", "to", "channel", ".", "Nonblocking", "returns", "true", "if", "successful", "."], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/connection.go#L235-L259", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "connection.go", "func_name": "CanSend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CanSend returns true if you can send more data onto the chID, false\n// otherwise. Use only as a heuristic.", "docstring_tokens": ["CanSend", "returns", "true", "if", "you", "can", "send", "more", "data", "onto", "the", "chID", "false", "otherwise", ".", "Use", "only", "as", "a", "heuristic", "."], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/connection.go#L263-L274", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "connection.go", "func_name": "sendRoutine", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// sendRoutine polls for packets to send from channels.", "docstring_tokens": ["sendRoutine", "polls", "for", "packets", "to", "send", "from", "channels", "."], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/connection.go#L277-L328", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "connection.go", "func_name": "sendSomeMsgPackets", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns true if messages from channels were exhausted.\n// Blocks in accordance to .sendMonitor throttling.", "docstring_tokens": ["Returns", "true", "if", "messages", "from", "channels", "were", "exhausted", ".", "Blocks", "in", "accordance", "to", ".", "sendMonitor", "throttling", "."], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/connection.go#L332-L345", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "connection.go", "func_name": "sendMsgPacket", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns true if messages from channels were exhausted.", "docstring_tokens": ["Returns", "true", "if", "messages", "from", "channels", "were", "exhausted", "."], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/connection.go#L348-L383", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "connection.go", "func_name": "nextMsgPacket", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Creates a new msgPacket to send.\n// Not goroutine-safe", "docstring_tokens": ["Creates", "a", "new", "msgPacket", "to", "send", ".", "Not", "goroutine", "-", "safe"], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/connection.go#L610-L623", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "connection.go", "func_name": "writeMsgPacketTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Writes next msgPacket to w.\n// Not goroutine-safe", "docstring_tokens": ["Writes", "next", "msgPacket", "to", "w", ".", "Not", "goroutine", "-", "safe"], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/connection.go#L627-L636", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "connection.go", "func_name": "recvMsgPacket", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Handles incoming msgPackets. Returns a msg bytes if msg is complete.\n// Not goroutine-safe", "docstring_tokens": ["Handles", "incoming", "msgPackets", ".", "Returns", "a", "msg", "bytes", "if", "msg", "is", "complete", ".", "Not", "goroutine", "-", "safe"], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/connection.go#L640-L656", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "secret_connection.go", "func_name": "hash24", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// We only fill in the first 20 bytes with ripemd160", "docstring_tokens": ["We", "only", "fill", "in", "the", "first", "20", "bytes", "with", "ripemd160"], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/secret_connection.go#L313-L320", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "secret_connection.go", "func_name": "incrNonce", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// increment nonce big-endian by 1 with wraparound.", "docstring_tokens": ["increment", "nonce", "big", "-", "endian", "by", "1", "with", "wraparound", "."], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/secret_connection.go#L339-L346", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "peer_set.go", "func_name": "List", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// threadsafe list of peers.", "docstring_tokens": ["threadsafe", "list", "of", "peers", "."], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/peer_set.go#L111-L115", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "listener.go", "func_name": "listenRoutine", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Accept connections and pass on the channel", "docstring_tokens": ["Accept", "connections", "and", "pass", "on", "the", "channel"], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/listener.go#L118-L140", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "addrbook.go", "func_name": "NewAddrBook", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewAddrBook creates a new address book.\n// Use Start to begin processing asynchronous address updates.", "docstring_tokens": ["NewAddrBook", "creates", "a", "new", "address", "book", ".", "Use", "Start", "to", "begin", "processing", "asynchronous", "address", "updates", "."], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/addrbook.go#L101-L112", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "addrbook.go", "func_name": "OnStart", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OnStart implements Service.", "docstring_tokens": ["OnStart", "implements", "Service", "."], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/addrbook.go#L130-L136", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "addrbook.go", "func_name": "RemoveAddress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveAddress removes the address from the book.", "docstring_tokens": ["RemoveAddress", "removes", "the", "address", "from", "the", "book", "."], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/addrbook.go#L267-L276", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "addrbook.go", "func_name": "loadFromFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns false if file does not exist.\n// Panics if file is corrupt.", "docstring_tokens": ["Returns", "false", "if", "file", "does", "not", "exist", ".", "Panics", "if", "file", "is", "corrupt", "."], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/addrbook.go#L349-L386", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "addrbook.go", "func_name": "Save", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Save saves the book.", "docstring_tokens": ["Save", "saves", "the", "book", "."], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/addrbook.go#L389-L392", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "addrbook.go", "func_name": "addToOldBucket", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Adds ka to old bucket. Returns false if it couldn't do it cuz buckets full.", "docstring_tokens": ["Adds", "ka", "to", "old", "bucket", ".", "Returns", "false", "if", "it", "couldn", "t", "do", "it", "cuz", "buckets", "full", "."], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/addrbook.go#L461-L495", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "addrbook.go", "func_name": "expireNew", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Make space in the new buckets by expiring the really bad entries.\n// If no bad entries are available we remove the oldest.", "docstring_tokens": ["Make", "space", "in", "the", "new", "buckets", "by", "expiring", "the", "really", "bad", "entries", ".", "If", "no", "bad", "entries", "are", "available", "we", "remove", "the", "oldest", "."], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/addrbook.go#L577-L590", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "switch.go", "func_name": "DialSeeds", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Dial a list of seeds asynchronously in random order", "docstring_tokens": ["Dial", "a", "list", "of", "seeds", "asynchronously", "in", "random", "order"], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/switch.go#L273-L304", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "netaddress.go", "func_name": "NewNetAddressStrings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewNetAddressStrings returns an array of NetAddress'es build using\n// the provided strings.", "docstring_tokens": ["NewNetAddressStrings", "returns", "an", "array", "of", "NetAddress", "es", "build", "using", "the", "provided", "strings", "."], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/netaddress.go#L76-L86", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "netaddress.go", "func_name": "NewNetAddressIPPort", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewNetAddressIPPort returns a new NetAddress using the provided IP\n// and port number.", "docstring_tokens": ["NewNetAddressIPPort", "returns", "a", "new", "NetAddress", "using", "the", "provided", "IP", "and", "port", "number", "."], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/netaddress.go#L90-L100", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "netaddress.go", "func_name": "Equals", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Equals reports whether na and other are the same addresses.", "docstring_tokens": ["Equals", "reports", "whether", "na", "and", "other", "are", "the", "same", "addresses", "."], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/netaddress.go#L103-L109", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "netaddress.go", "func_name": "Dial", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Dial calls net.Dial on the address.", "docstring_tokens": ["Dial", "calls", "net", ".", "Dial", "on", "the", "address", "."], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/netaddress.go#L132-L138", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "netaddress.go", "func_name": "Valid", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// For IPv4 these are either a 0 or all bits set address. For IPv6 a zero\n// address or one that matches the RFC3849 documentation address format.", "docstring_tokens": ["For", "IPv4", "these", "are", "either", "a", "0", "or", "all", "bits", "set", "address", ".", "For", "IPv6", "a", "zero", "address", "or", "one", "that", "matches", "the", "RFC3849", "documentation", "address", "format", "."], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/netaddress.go#L158-L161", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "netaddress.go", "func_name": "ReachabilityTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReachabilityTo checks whenever o can be reached from na.", "docstring_tokens": ["ReachabilityTo", "checks", "whenever", "o", "can", "be", "reached", "from", "na", "."], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/netaddress.go#L169-L214", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "pex_reactor.go", "func_name": "NewPEXReactor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPEXReactor creates new PEX reactor.", "docstring_tokens": ["NewPEXReactor", "creates", "new", "PEX", "reactor", "."], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/pex_reactor.go#L57-L66", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "pex_reactor.go", "func_name": "OnStart", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OnStart implements BaseService", "docstring_tokens": ["OnStart", "implements", "BaseService"], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/pex_reactor.go#L69-L75", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "pex_reactor.go", "func_name": "Receive", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Receive implements Reactor by handling incoming PEX messages.", "docstring_tokens": ["Receive", "implements", "Reactor", "by", "handling", "incoming", "PEX", "messages", "."], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/pex_reactor.go#L122-L155", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "pex_reactor.go", "func_name": "RequestPEX", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RequestPEX asks peer for more addresses.", "docstring_tokens": ["RequestPEX", "asks", "peer", "for", "more", "addresses", "."], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/pex_reactor.go#L158-L160", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "pex_reactor.go", "func_name": "SendAddrs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SendAddrs sends addrs to the peer.", "docstring_tokens": ["SendAddrs", "sends", "addrs", "to", "the", "peer", "."], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/pex_reactor.go#L163-L165", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "pex_reactor.go", "func_name": "IncrementMsgCountForPeer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Increment or initialize the msg count for the peer in the CMap", "docstring_tokens": ["Increment", "or", "initialize", "the", "msg", "count", "for", "the", "peer", "in", "the", "CMap"], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/pex_reactor.go#L185-L193", "partition": "valid"} +{"repo": "tendermint/go-p2p", "path": "pex_reactor.go", "func_name": "DecodeMessage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DecodeMessage implements interface registered above.", "docstring_tokens": ["DecodeMessage", "implements", "interface", "registered", "above", "."], "sha": "e8f33a47846708269d373f9c8080613d6c4f66b2", "url": "https://github.com/tendermint/go-p2p/blob/e8f33a47846708269d373f9c8080613d6c4f66b2/pex_reactor.go#L331-L337", "partition": "valid"} +{"repo": "recursionpharma/go-csv-map", "path": "csvmap.go", "func_name": "NewReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewReader returns a new Reader that reads from r.", "docstring_tokens": ["NewReader", "returns", "a", "new", "Reader", "that", "reads", "from", "r", "."], "sha": "792523c65ae9a3a204e84946779986cafe34035a", "url": "https://github.com/recursionpharma/go-csv-map/blob/792523c65ae9a3a204e84946779986cafe34035a/csvmap.go#L16-L20", "partition": "valid"} +{"repo": "codahale/http-handlers", "path": "recovery/recovery.go", "func_name": "LogOnPanic", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LogOnPanic logs the given panic and its stacktrace, prefixing each line with\n// the panic ID.", "docstring_tokens": ["LogOnPanic", "logs", "the", "given", "panic", "and", "its", "stacktrace", "prefixing", "each", "line", "with", "the", "panic", "ID", "."], "sha": "425cee74d74d457b02d0dd6c4bca0a15656494cd", "url": "https://github.com/codahale/http-handlers/blob/425cee74d74d457b02d0dd6c4bca0a15656494cd/recovery/recovery.go#L22-L30", "partition": "valid"} +{"repo": "codahale/http-handlers", "path": "recovery/recovery.go", "func_name": "Wrap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Wrap returns an handler which proxies requests to the given handler, but\n// handles panics by logging the stack trace and returning a 500 Internal Server\n// Error to the client, if possible.", "docstring_tokens": ["Wrap", "returns", "an", "handler", "which", "proxies", "requests", "to", "the", "given", "handler", "but", "handles", "panics", "by", "logging", "the", "stack", "trace", "and", "returning", "a", "500", "Internal", "Server", "Error", "to", "the", "client", "if", "possible", "."], "sha": "425cee74d74d457b02d0dd6c4bca0a15656494cd", "url": "https://github.com/codahale/http-handlers/blob/425cee74d74d457b02d0dd6c4bca0a15656494cd/recovery/recovery.go#L37-L39", "partition": "valid"} +{"repo": "codahale/http-handlers", "path": "logging/logging.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start creates a goroutine to handle the logging IO.", "docstring_tokens": ["Start", "creates", "a", "goroutine", "to", "handle", "the", "logging", "IO", "."], "sha": "425cee74d74d457b02d0dd6c4bca0a15656494cd", "url": "https://github.com/codahale/http-handlers/blob/425cee74d74d457b02d0dd6c4bca0a15656494cd/logging/logging.go#L40-L47", "partition": "valid"} +{"repo": "codahale/http-handlers", "path": "service/service.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New returns a new service-ready handler given an application handler.\n//\n// This stack application-level metrics, debug endpoints, panic recovery, and\n// request logging, in that order.", "docstring_tokens": ["New", "returns", "a", "new", "service", "-", "ready", "handler", "given", "an", "application", "handler", ".", "This", "stack", "application", "-", "level", "metrics", "debug", "endpoints", "panic", "recovery", "and", "request", "logging", "in", "that", "order", "."], "sha": "425cee74d74d457b02d0dd6c4bca0a15656494cd", "url": "https://github.com/codahale/http-handlers/blob/425cee74d74d457b02d0dd6c4bca0a15656494cd/service/service.go#L41-L55", "partition": "valid"} +{"repo": "codahale/http-handlers", "path": "authentication/certs.go", "func_name": "Wrap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Wrap wraps an HTTP handler to check the contents of client certificates.\n// If CheckCertificate returns true, the request will be passed to the wrapped\n// handler. If CheckCertificate returns false, it will be passed to the\n// InvalidHandler or, if no InvalidHandler is specified, will return an\n// empty 403 response and log the rejected DN.", "docstring_tokens": ["Wrap", "wraps", "an", "HTTP", "handler", "to", "check", "the", "contents", "of", "client", "certificates", ".", "If", "CheckCertificate", "returns", "true", "the", "request", "will", "be", "passed", "to", "the", "wrapped", "handler", ".", "If", "CheckCertificate", "returns", "false", "it", "will", "be", "passed", "to", "the", "InvalidHandler", "or", "if", "no", "InvalidHandler", "is", "specified", "will", "return", "an", "empty", "403", "response", "and", "log", "the", "rejected", "DN", "."], "sha": "425cee74d74d457b02d0dd6c4bca0a15656494cd", "url": "https://github.com/codahale/http-handlers/blob/425cee74d74d457b02d0dd6c4bca0a15656494cd/authentication/certs.go#L25-L43", "partition": "valid"} +{"repo": "gocontrib/pubsub", "path": "driver.go", "func_name": "GetString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetString property.", "docstring_tokens": ["GetString", "property", "."], "sha": "0fdd96f5751b52f4d407a41f85f53370b67c2690", "url": "https://github.com/gocontrib/pubsub/blob/0fdd96f5751b52f4d407a41f85f53370b67c2690/driver.go#L15-L26", "partition": "valid"} +{"repo": "gocontrib/pubsub", "path": "driver.go", "func_name": "GetInt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetInt property.", "docstring_tokens": ["GetInt", "property", "."], "sha": "0fdd96f5751b52f4d407a41f85f53370b67c2690", "url": "https://github.com/gocontrib/pubsub/blob/0fdd96f5751b52f4d407a41f85f53370b67c2690/driver.go#L29-L47", "partition": "valid"} +{"repo": "gocontrib/pubsub", "path": "driver.go", "func_name": "RegisterDriver", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterDriver registers driver with given names.", "docstring_tokens": ["RegisterDriver", "registers", "driver", "with", "given", "names", "."], "sha": "0fdd96f5751b52f4d407a41f85f53370b67c2690", "url": "https://github.com/gocontrib/pubsub/blob/0fdd96f5751b52f4d407a41f85f53370b67c2690/driver.go#L59-L64", "partition": "valid"} +{"repo": "gocontrib/pubsub", "path": "redis/driver.go", "func_name": "Open", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Open creates pubsub hub connected to redis server.", "docstring_tokens": ["Open", "creates", "pubsub", "hub", "connected", "to", "redis", "server", "."], "sha": "0fdd96f5751b52f4d407a41f85f53370b67c2690", "url": "https://github.com/gocontrib/pubsub/blob/0fdd96f5751b52f4d407a41f85f53370b67c2690/redis/driver.go#L23-L34", "partition": "valid"} +{"repo": "gocontrib/pubsub", "path": "examples/sse.go", "func_name": "SendEvents", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SendEvents streams events from specified channels as Server Sent Events packets", "docstring_tokens": ["SendEvents", "streams", "events", "from", "specified", "channels", "as", "Server", "Sent", "Events", "packets"], "sha": "0fdd96f5751b52f4d407a41f85f53370b67c2690", "url": "https://github.com/gocontrib/pubsub/blob/0fdd96f5751b52f4d407a41f85f53370b67c2690/examples/sse.go#L15-L115", "partition": "valid"} +{"repo": "gocontrib/pubsub", "path": "encoding.go", "func_name": "Unmarshal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Unmarshal message from byte array.", "docstring_tokens": ["Unmarshal", "message", "from", "byte", "array", "."], "sha": "0fdd96f5751b52f4d407a41f85f53370b67c2690", "url": "https://github.com/gocontrib/pubsub/blob/0fdd96f5751b52f4d407a41f85f53370b67c2690/encoding.go#L15-L23", "partition": "valid"} +{"repo": "gocontrib/pubsub", "path": "hub.go", "func_name": "Publish", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Publish data to given channel.", "docstring_tokens": ["Publish", "data", "to", "given", "channel", "."], "sha": "0fdd96f5751b52f4d407a41f85f53370b67c2690", "url": "https://github.com/gocontrib/pubsub/blob/0fdd96f5751b52f4d407a41f85f53370b67c2690/hub.go#L33-L38", "partition": "valid"} +{"repo": "gocontrib/pubsub", "path": "hub.go", "func_name": "Subscribe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Subscribe adds new receiver of events for given channel.", "docstring_tokens": ["Subscribe", "adds", "new", "receiver", "of", "events", "for", "given", "channel", "."], "sha": "0fdd96f5751b52f4d407a41f85f53370b67c2690", "url": "https://github.com/gocontrib/pubsub/blob/0fdd96f5751b52f4d407a41f85f53370b67c2690/hub.go#L41-L51", "partition": "valid"} +{"repo": "gocontrib/pubsub", "path": "hub.go", "func_name": "getChannel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetChannel gets or creates new pubsub channel.", "docstring_tokens": ["GetChannel", "gets", "or", "creates", "new", "pubsub", "channel", "."], "sha": "0fdd96f5751b52f4d407a41f85f53370b67c2690", "url": "https://github.com/gocontrib/pubsub/blob/0fdd96f5751b52f4d407a41f85f53370b67c2690/hub.go#L54-L65", "partition": "valid"} +{"repo": "gocontrib/pubsub", "path": "hub.go", "func_name": "remove", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Removes given channel, called by Channel.Close.", "docstring_tokens": ["Removes", "given", "channel", "called", "by", "Channel", ".", "Close", "."], "sha": "0fdd96f5751b52f4d407a41f85f53370b67c2690", "url": "https://github.com/gocontrib/pubsub/blob/0fdd96f5751b52f4d407a41f85f53370b67c2690/hub.go#L68-L77", "partition": "valid"} +{"repo": "gocontrib/pubsub", "path": "nats/driver.go", "func_name": "Open", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Open creates pubsub hub connected to nats server.", "docstring_tokens": ["Open", "creates", "pubsub", "hub", "connected", "to", "nats", "server", "."], "sha": "0fdd96f5751b52f4d407a41f85f53370b67c2690", "url": "https://github.com/gocontrib/pubsub/blob/0fdd96f5751b52f4d407a41f85f53370b67c2690/nats/driver.go#L25-L41", "partition": "valid"} +{"repo": "gocontrib/pubsub", "path": "init.go", "func_name": "Publish", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Publish message to given channels.", "docstring_tokens": ["Publish", "message", "to", "given", "channels", "."], "sha": "0fdd96f5751b52f4d407a41f85f53370b67c2690", "url": "https://github.com/gocontrib/pubsub/blob/0fdd96f5751b52f4d407a41f85f53370b67c2690/init.go#L29-L36", "partition": "valid"} +{"repo": "gocontrib/pubsub", "path": "init.go", "func_name": "Subscribe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Subscribe on given channels.", "docstring_tokens": ["Subscribe", "on", "given", "channels", "."], "sha": "0fdd96f5751b52f4d407a41f85f53370b67c2690", "url": "https://github.com/gocontrib/pubsub/blob/0fdd96f5751b52f4d407a41f85f53370b67c2690/init.go#L39-L50", "partition": "valid"} +{"repo": "gocontrib/pubsub", "path": "init.go", "func_name": "MakeHub", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IMPLEMENTATION\n// MakeHub returns new instance of the pubsub hub.", "docstring_tokens": ["IMPLEMENTATION", "MakeHub", "returns", "new", "instance", "of", "the", "pubsub", "hub", "."], "sha": "0fdd96f5751b52f4d407a41f85f53370b67c2690", "url": "https://github.com/gocontrib/pubsub/blob/0fdd96f5751b52f4d407a41f85f53370b67c2690/init.go#L55-L76", "partition": "valid"} +{"repo": "cgrates/rpcclient", "path": "rpcclient.go", "func_name": "Fib", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// successive Fibonacci numbers.", "docstring_tokens": ["successive", "Fibonacci", "numbers", "."], "sha": "82dd400f92557539b2f0a5ca6639f1f5facd64ca", "url": "https://github.com/cgrates/rpcclient/blob/82dd400f92557539b2f0a5ca6639f1f5facd64ca/rpcclient.go#L73-L79", "partition": "valid"} +{"repo": "cgrates/rpcclient", "path": "rpcclient.go", "func_name": "roundIndex", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// generates round robin indexes for a slice of length max\n// starting from index start", "docstring_tokens": ["generates", "round", "robin", "indexes", "for", "a", "slice", "of", "length", "max", "starting", "from", "index", "start"], "sha": "82dd400f92557539b2f0a5ca6639f1f5facd64ca", "url": "https://github.com/cgrates/rpcclient/blob/82dd400f92557539b2f0a5ca6639f1f5facd64ca/rpcclient.go#L458-L471", "partition": "valid"} +{"repo": "Atrox/homedir", "path": "homedir.go", "func_name": "Dir", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Dir returns the home directory for the executing user.\n// An error is returned if a home directory cannot be detected.", "docstring_tokens": ["Dir", "returns", "the", "home", "directory", "for", "the", "executing", "user", ".", "An", "error", "is", "returned", "if", "a", "home", "directory", "cannot", "be", "detected", "."], "sha": "f510c8abf0bd8721cdb97bbfe2e0cb1cdc59b33b", "url": "https://github.com/Atrox/homedir/blob/f510c8abf0bd8721cdb97bbfe2e0cb1cdc59b33b/homedir.go#L12-L22", "partition": "valid"} +{"repo": "ugjka/cleverbot-go", "path": "cleverbot.go", "func_name": "Ask", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Ask asks cleverbot a question.", "docstring_tokens": ["Ask", "asks", "cleverbot", "a", "question", "."], "sha": "820458cebd7bc50a6d81a29035ac67664d903701", "url": "https://github.com/ugjka/cleverbot-go/blob/820458cebd7bc50a6d81a29035ac67664d903701/cleverbot.go#L101-L163", "partition": "valid"} +{"repo": "ugjka/cleverbot-go", "path": "cleverbot.go", "func_name": "InteractionCount", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InteractionCount gets the count of interactions that have happened between the bot and user.\n// Returns -1 if interactions_count is missing or parsing failed.", "docstring_tokens": ["InteractionCount", "gets", "the", "count", "of", "interactions", "that", "have", "happened", "between", "the", "bot", "and", "user", ".", "Returns", "-", "1", "if", "interactions_count", "is", "missing", "or", "parsing", "failed", "."], "sha": "820458cebd7bc50a6d81a29035ac67664d903701", "url": "https://github.com/ugjka/cleverbot-go/blob/820458cebd7bc50a6d81a29035ac67664d903701/cleverbot.go#L176-L185", "partition": "valid"} +{"repo": "ugjka/cleverbot-go", "path": "cleverbot.go", "func_name": "TimeElapsed", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TimeElapsed returns approximate duration since conversation started.\n// Returns -1 seconds if time_elapsed is not found or parsing failed.", "docstring_tokens": ["TimeElapsed", "returns", "approximate", "duration", "since", "conversation", "started", ".", "Returns", "-", "1", "seconds", "if", "time_elapsed", "is", "not", "found", "or", "parsing", "failed", "."], "sha": "820458cebd7bc50a6d81a29035ac67664d903701", "url": "https://github.com/ugjka/cleverbot-go/blob/820458cebd7bc50a6d81a29035ac67664d903701/cleverbot.go#L189-L198", "partition": "valid"} +{"repo": "ugjka/cleverbot-go", "path": "cleverbot.go", "func_name": "History", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// History returns an array of QApair of upto 100 interactions that have happened in Session.", "docstring_tokens": ["History", "returns", "an", "array", "of", "QApair", "of", "upto", "100", "interactions", "that", "have", "happened", "in", "Session", "."], "sha": "820458cebd7bc50a6d81a29035ac67664d903701", "url": "https://github.com/ugjka/cleverbot-go/blob/820458cebd7bc50a6d81a29035ac67664d903701/cleverbot.go#L214-L226", "partition": "valid"} +{"repo": "jingweno/gotask", "path": "tasking/t.go", "func_name": "Bool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Bool looks up the value of a bool flag, returns false if no bool flag exists", "docstring_tokens": ["Bool", "looks", "up", "the", "value", "of", "a", "bool", "flag", "returns", "false", "if", "no", "bool", "flag", "exists"], "sha": "104f8017a5972e8175597652dcf5a730d686b6aa", "url": "https://github.com/jingweno/gotask/blob/104f8017a5972e8175597652dcf5a730d686b6aa/tasking/t.go#L18-L20", "partition": "valid"} +{"repo": "jingweno/gotask", "path": "tasking/t.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String looks up the value of a string flag, returns \"\" if no string flag exists", "docstring_tokens": ["String", "looks", "up", "the", "value", "of", "a", "string", "flag", "returns", "if", "no", "string", "flag", "exists"], "sha": "104f8017a5972e8175597652dcf5a730d686b6aa", "url": "https://github.com/jingweno/gotask/blob/104f8017a5972e8175597652dcf5a730d686b6aa/tasking/t.go#L23-L25", "partition": "valid"} +{"repo": "jingweno/gotask", "path": "tasking/t.go", "func_name": "Fail", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fail marks the task as having failed but continues execution.", "docstring_tokens": ["Fail", "marks", "the", "task", "as", "having", "failed", "but", "continues", "execution", "."], "sha": "104f8017a5972e8175597652dcf5a730d686b6aa", "url": "https://github.com/jingweno/gotask/blob/104f8017a5972e8175597652dcf5a730d686b6aa/tasking/t.go#L54-L58", "partition": "valid"} +{"repo": "jingweno/gotask", "path": "tasking/t.go", "func_name": "Failed", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Failed checks if the task has failed", "docstring_tokens": ["Failed", "checks", "if", "the", "task", "has", "failed"], "sha": "104f8017a5972e8175597652dcf5a730d686b6aa", "url": "https://github.com/jingweno/gotask/blob/104f8017a5972e8175597652dcf5a730d686b6aa/tasking/t.go#L61-L65", "partition": "valid"} +{"repo": "jingweno/gotask", "path": "tasking/t.go", "func_name": "Logf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Logf formats its arguments according to the format, analogous to Printf.", "docstring_tokens": ["Logf", "formats", "its", "arguments", "according", "to", "the", "format", "analogous", "to", "Printf", "."], "sha": "104f8017a5972e8175597652dcf5a730d686b6aa", "url": "https://github.com/jingweno/gotask/blob/104f8017a5972e8175597652dcf5a730d686b6aa/tasking/t.go#L85-L87", "partition": "valid"} +{"repo": "jingweno/gotask", "path": "tasking/t.go", "func_name": "Error", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Error is equivalent to Log followed by Fail.", "docstring_tokens": ["Error", "is", "equivalent", "to", "Log", "followed", "by", "Fail", "."], "sha": "104f8017a5972e8175597652dcf5a730d686b6aa", "url": "https://github.com/jingweno/gotask/blob/104f8017a5972e8175597652dcf5a730d686b6aa/tasking/t.go#L90-L93", "partition": "valid"} +{"repo": "jingweno/gotask", "path": "tasking/t.go", "func_name": "Errorf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Errorf is equivalent to Logf followed by Fail.", "docstring_tokens": ["Errorf", "is", "equivalent", "to", "Logf", "followed", "by", "Fail", "."], "sha": "104f8017a5972e8175597652dcf5a730d686b6aa", "url": "https://github.com/jingweno/gotask/blob/104f8017a5972e8175597652dcf5a730d686b6aa/tasking/t.go#L96-L99", "partition": "valid"} +{"repo": "cosn/firebase", "path": "firebase.go", "func_name": "Init", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Init initializes the Firebase client with a given root url and optional auth token.\n// The initialization can also pass a mock api for testing purposes.", "docstring_tokens": ["Init", "initializes", "the", "Firebase", "client", "with", "a", "given", "root", "url", "and", "optional", "auth", "token", ".", "The", "initialization", "can", "also", "pass", "a", "mock", "api", "for", "testing", "purposes", "."], "sha": "9a5bce64e5c22fba9ea18907bfa8dff54bd4ac12", "url": "https://github.com/cosn/firebase/blob/9a5bce64e5c22fba9ea18907bfa8dff54bd4ac12/firebase.go#L59-L67", "partition": "valid"} +{"repo": "cosn/firebase", "path": "firebase.go", "func_name": "Value", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Value returns the value of of the current Url.", "docstring_tokens": ["Value", "returns", "the", "value", "of", "of", "the", "current", "Url", "."], "sha": "9a5bce64e5c22fba9ea18907bfa8dff54bd4ac12", "url": "https://github.com/cosn/firebase/blob/9a5bce64e5c22fba9ea18907bfa8dff54bd4ac12/firebase.go#L70-L82", "partition": "valid"} +{"repo": "cosn/firebase", "path": "firebase.go", "func_name": "Child", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Child returns a populated pointer for a given path.\n// If the path cannot be found, a null pointer is returned.", "docstring_tokens": ["Child", "returns", "a", "populated", "pointer", "for", "a", "given", "path", ".", "If", "the", "path", "cannot", "be", "found", "a", "null", "pointer", "is", "returned", "."], "sha": "9a5bce64e5c22fba9ea18907bfa8dff54bd4ac12", "url": "https://github.com/cosn/firebase/blob/9a5bce64e5c22fba9ea18907bfa8dff54bd4ac12/firebase.go#L86-L107", "partition": "valid"} +{"repo": "cosn/firebase", "path": "firebase.go", "func_name": "Push", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Push creates a new value under the current root url.\n// A populated pointer with that value is also returned.", "docstring_tokens": ["Push", "creates", "a", "new", "value", "under", "the", "current", "root", "url", ".", "A", "populated", "pointer", "with", "that", "value", "is", "also", "returned", "."], "sha": "9a5bce64e5c22fba9ea18907bfa8dff54bd4ac12", "url": "https://github.com/cosn/firebase/blob/9a5bce64e5c22fba9ea18907bfa8dff54bd4ac12/firebase.go#L111-L138", "partition": "valid"} +{"repo": "cosn/firebase", "path": "firebase.go", "func_name": "Update", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Update performs a partial update with the given value at the specified path.", "docstring_tokens": ["Update", "performs", "a", "partial", "update", "with", "the", "given", "value", "at", "the", "specified", "path", "."], "sha": "9a5bce64e5c22fba9ea18907bfa8dff54bd4ac12", "url": "https://github.com/cosn/firebase/blob/9a5bce64e5c22fba9ea18907bfa8dff54bd4ac12/firebase.go#L178-L194", "partition": "valid"} +{"repo": "cosn/firebase", "path": "firebase.go", "func_name": "Remove", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Remove deletes the data at the given path.", "docstring_tokens": ["Remove", "deletes", "the", "data", "at", "the", "given", "path", "."], "sha": "9a5bce64e5c22fba9ea18907bfa8dff54bd4ac12", "url": "https://github.com/cosn/firebase/blob/9a5bce64e5c22fba9ea18907bfa8dff54bd4ac12/firebase.go#L197-L201", "partition": "valid"} +{"repo": "cosn/firebase", "path": "firebase.go", "func_name": "Rules", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Rules returns the security rules for the database.", "docstring_tokens": ["Rules", "returns", "the", "security", "rules", "for", "the", "database", "."], "sha": "9a5bce64e5c22fba9ea18907bfa8dff54bd4ac12", "url": "https://github.com/cosn/firebase/blob/9a5bce64e5c22fba9ea18907bfa8dff54bd4ac12/firebase.go#L204-L218", "partition": "valid"} +{"repo": "cosn/firebase", "path": "firebase.go", "func_name": "SetRules", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetRules overwrites the existing security rules with the new rules given.", "docstring_tokens": ["SetRules", "overwrites", "the", "existing", "security", "rules", "with", "the", "new", "rules", "given", "."], "sha": "9a5bce64e5c22fba9ea18907bfa8dff54bd4ac12", "url": "https://github.com/cosn/firebase/blob/9a5bce64e5c22fba9ea18907bfa8dff54bd4ac12/firebase.go#L221-L231", "partition": "valid"} +{"repo": "cosn/firebase", "path": "firebase.go", "func_name": "Call", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Call invokes the appropriate HTTP method on a given Firebase URL.", "docstring_tokens": ["Call", "invokes", "the", "appropriate", "HTTP", "method", "on", "a", "given", "Firebase", "URL", "."], "sha": "9a5bce64e5c22fba9ea18907bfa8dff54bd4ac12", "url": "https://github.com/cosn/firebase/blob/9a5bce64e5c22fba9ea18907bfa8dff54bd4ac12/firebase.go#L234-L286", "partition": "valid"} +{"repo": "bketelsen/trace", "path": "trace.go", "func_name": "SetTraceInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetTraceInfo sets the trace info for the trace.\n// This is currently unused.", "docstring_tokens": ["SetTraceInfo", "sets", "the", "trace", "info", "for", "the", "trace", ".", "This", "is", "currently", "unused", "."], "sha": "e1262b1119f44e2f1d7fdd8ccbe669bc6ddbb8ff", "url": "https://github.com/bketelsen/trace/blob/e1262b1119f44e2f1d7fdd8ccbe669bc6ddbb8ff/trace.go#L91-L93", "partition": "valid"} +{"repo": "bketelsen/trace", "path": "trace.go", "func_name": "Finish", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Finish declares that this trace is complete.\n// The trace should not be used after calling this method.", "docstring_tokens": ["Finish", "declares", "that", "this", "trace", "is", "complete", ".", "The", "trace", "should", "not", "be", "used", "after", "calling", "this", "method", "."], "sha": "e1262b1119f44e2f1d7fdd8ccbe669bc6ddbb8ff", "url": "https://github.com/bketelsen/trace/blob/e1262b1119f44e2f1d7fdd8ccbe669bc6ddbb8ff/trace.go#L104-L114", "partition": "valid"} +{"repo": "bketelsen/trace", "path": "metrics.go", "func_name": "ServeMetrics", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServeMetrics serves Prometheus metrics endpoint on the\n// provided net.Listener\n// Use for long-running services. For cli tools, use PushMetrics instead.", "docstring_tokens": ["ServeMetrics", "serves", "Prometheus", "metrics", "endpoint", "on", "the", "provided", "net", ".", "Listener", "Use", "for", "long", "-", "running", "services", ".", "For", "cli", "tools", "use", "PushMetrics", "instead", "."], "sha": "e1262b1119f44e2f1d7fdd8ccbe669bc6ddbb8ff", "url": "https://github.com/bketelsen/trace/blob/e1262b1119f44e2f1d7fdd8ccbe669bc6ddbb8ff/metrics.go#L76-L78", "partition": "valid"} +{"repo": "bketelsen/trace", "path": "metrics.go", "func_name": "DumpMetrics", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DumpMetrics returns the metrics prometheus would return when collected\n// as a string, for fun and testing", "docstring_tokens": ["DumpMetrics", "returns", "the", "metrics", "prometheus", "would", "return", "when", "collected", "as", "a", "string", "for", "fun", "and", "testing"], "sha": "e1262b1119f44e2f1d7fdd8ccbe669bc6ddbb8ff", "url": "https://github.com/bketelsen/trace/blob/e1262b1119f44e2f1d7fdd8ccbe669bc6ddbb8ff/metrics.go#L96-L112", "partition": "valid"} +{"repo": "bketelsen/trace", "path": "events.go", "func_name": "NewEventLog", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewEventLog returns an initialized EventLog with the given family and title.", "docstring_tokens": ["NewEventLog", "returns", "an", "initialized", "EventLog", "with", "the", "given", "family", "and", "title", "."], "sha": "e1262b1119f44e2f1d7fdd8ccbe669bc6ddbb8ff", "url": "https://github.com/bketelsen/trace/blob/e1262b1119f44e2f1d7fdd8ccbe669bc6ddbb8ff/events.go#L13-L20", "partition": "valid"} +{"repo": "bketelsen/trace", "path": "events.go", "func_name": "Printf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Printf formats its arguments with fmt.Sprintf and adds the\n// result to the event log.", "docstring_tokens": ["Printf", "formats", "its", "arguments", "with", "fmt", ".", "Sprintf", "and", "adds", "the", "result", "to", "the", "event", "log", "."], "sha": "e1262b1119f44e2f1d7fdd8ccbe669bc6ddbb8ff", "url": "https://github.com/bketelsen/trace/blob/e1262b1119f44e2f1d7fdd8ccbe669bc6ddbb8ff/events.go#L24-L28", "partition": "valid"} +{"repo": "bketelsen/trace", "path": "events.go", "func_name": "Errorf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Errorf is like Printf, but it marks this event as an error.", "docstring_tokens": ["Errorf", "is", "like", "Printf", "but", "it", "marks", "this", "event", "as", "an", "error", "."], "sha": "e1262b1119f44e2f1d7fdd8ccbe669bc6ddbb8ff", "url": "https://github.com/bketelsen/trace/blob/e1262b1119f44e2f1d7fdd8ccbe669bc6ddbb8ff/events.go#L31-L34", "partition": "valid"} +{"repo": "bketelsen/trace", "path": "log.go", "func_name": "SetLogger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetLogger replaces the default logger with a new\n// one that writes to 'out', has 'prefix', and flags 'flag'", "docstring_tokens": ["SetLogger", "replaces", "the", "default", "logger", "with", "a", "new", "one", "that", "writes", "to", "out", "has", "prefix", "and", "flags", "flag"], "sha": "e1262b1119f44e2f1d7fdd8ccbe669bc6ddbb8ff", "url": "https://github.com/bketelsen/trace/blob/e1262b1119f44e2f1d7fdd8ccbe669bc6ddbb8ff/log.go#L18-L20", "partition": "valid"} +{"repo": "bketelsen/trace", "path": "examples/service/main.go", "func_name": "ServeHTTP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Inside the handler, use traces to capture request specific events and timings\n// and the el member to log service specific events - like failures", "docstring_tokens": ["Inside", "the", "handler", "use", "traces", "to", "capture", "request", "specific", "events", "and", "timings", "and", "the", "el", "member", "to", "log", "service", "specific", "events", "-", "like", "failures"], "sha": "e1262b1119f44e2f1d7fdd8ccbe669bc6ddbb8ff", "url": "https://github.com/bketelsen/trace/blob/e1262b1119f44e2f1d7fdd8ccbe669bc6ddbb8ff/examples/service/main.go#L20-L28", "partition": "valid"} +{"repo": "bketelsen/trace", "path": "context.go", "func_name": "TitleFromContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TitleFromContext is a convenience function that returns the Trace's title from a context\n// or an empty string if none exists", "docstring_tokens": ["TitleFromContext", "is", "a", "convenience", "function", "that", "returns", "the", "Trace", "s", "title", "from", "a", "context", "or", "an", "empty", "string", "if", "none", "exists"], "sha": "e1262b1119f44e2f1d7fdd8ccbe669bc6ddbb8ff", "url": "https://github.com/bketelsen/trace/blob/e1262b1119f44e2f1d7fdd8ccbe669bc6ddbb8ff/context.go#L38-L44", "partition": "valid"} +{"repo": "bketelsen/trace", "path": "context.go", "func_name": "NewContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewContext returns a new context.Context and Trace with the given family and title. The trace will\n// be stored in the context.", "docstring_tokens": ["NewContext", "returns", "a", "new", "context", ".", "Context", "and", "Trace", "with", "the", "given", "family", "and", "title", ".", "The", "trace", "will", "be", "stored", "in", "the", "context", "."], "sha": "e1262b1119f44e2f1d7fdd8ccbe669bc6ddbb8ff", "url": "https://github.com/bketelsen/trace/blob/e1262b1119f44e2f1d7fdd8ccbe669bc6ddbb8ff/context.go#L48-L51", "partition": "valid"} +{"repo": "xconstruct/go-pushbullet", "path": "pushbullet.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New creates a new client with your personal API key.", "docstring_tokens": ["New", "creates", "a", "new", "client", "with", "your", "personal", "API", "key", "."], "sha": "67759df45fbbd23cbe3d5cdc6df7891c5b663cb8", "url": "https://github.com/xconstruct/go-pushbullet/blob/67759df45fbbd23cbe3d5cdc6df7891c5b663cb8/pushbullet.go#L44-L47", "partition": "valid"} +{"repo": "xconstruct/go-pushbullet", "path": "pushbullet.go", "func_name": "NewWithClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewWithClient creates a new client with your personal API key and the given http Client", "docstring_tokens": ["NewWithClient", "creates", "a", "new", "client", "with", "your", "personal", "API", "key", "and", "the", "given", "http", "Client"], "sha": "67759df45fbbd23cbe3d5cdc6df7891c5b663cb8", "url": "https://github.com/xconstruct/go-pushbullet/blob/67759df45fbbd23cbe3d5cdc6df7891c5b663cb8/pushbullet.go#L50-L53", "partition": "valid"} +{"repo": "xconstruct/go-pushbullet", "path": "pushbullet.go", "func_name": "Devices", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Devices fetches a list of devices from PushBullet.", "docstring_tokens": ["Devices", "fetches", "a", "list", "of", "devices", "from", "PushBullet", "."], "sha": "67759df45fbbd23cbe3d5cdc6df7891c5b663cb8", "url": "https://github.com/xconstruct/go-pushbullet/blob/67759df45fbbd23cbe3d5cdc6df7891c5b663cb8/pushbullet.go#L121-L151", "partition": "valid"} +{"repo": "xconstruct/go-pushbullet", "path": "pushbullet.go", "func_name": "Device", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Device fetches an device with a given nickname from PushBullet.", "docstring_tokens": ["Device", "fetches", "an", "device", "with", "a", "given", "nickname", "from", "PushBullet", "."], "sha": "67759df45fbbd23cbe3d5cdc6df7891c5b663cb8", "url": "https://github.com/xconstruct/go-pushbullet/blob/67759df45fbbd23cbe3d5cdc6df7891c5b663cb8/pushbullet.go#L154-L167", "partition": "valid"} +{"repo": "xconstruct/go-pushbullet", "path": "pushbullet.go", "func_name": "PushNote", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PushNote sends a note to the specific device with the given title and body", "docstring_tokens": ["PushNote", "sends", "a", "note", "to", "the", "specific", "device", "with", "the", "given", "title", "and", "body"], "sha": "67759df45fbbd23cbe3d5cdc6df7891c5b663cb8", "url": "https://github.com/xconstruct/go-pushbullet/blob/67759df45fbbd23cbe3d5cdc6df7891c5b663cb8/pushbullet.go#L170-L172", "partition": "valid"} +{"repo": "xconstruct/go-pushbullet", "path": "pushbullet.go", "func_name": "PushLink", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PushLink sends a link to the specific device with the given title and url", "docstring_tokens": ["PushLink", "sends", "a", "link", "to", "the", "specific", "device", "with", "the", "given", "title", "and", "url"], "sha": "67759df45fbbd23cbe3d5cdc6df7891c5b663cb8", "url": "https://github.com/xconstruct/go-pushbullet/blob/67759df45fbbd23cbe3d5cdc6df7891c5b663cb8/pushbullet.go#L175-L177", "partition": "valid"} +{"repo": "xconstruct/go-pushbullet", "path": "pushbullet.go", "func_name": "PushSMS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PushSMS sends an SMS to the specific user from the device with the given title and url", "docstring_tokens": ["PushSMS", "sends", "an", "SMS", "to", "the", "specific", "user", "from", "the", "device", "with", "the", "given", "title", "and", "url"], "sha": "67759df45fbbd23cbe3d5cdc6df7891c5b663cb8", "url": "https://github.com/xconstruct/go-pushbullet/blob/67759df45fbbd23cbe3d5cdc6df7891c5b663cb8/pushbullet.go#L180-L182", "partition": "valid"} +{"repo": "xconstruct/go-pushbullet", "path": "pushbullet.go", "func_name": "Me", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Me returns the user object for the pushbullet user", "docstring_tokens": ["Me", "returns", "the", "user", "object", "for", "the", "pushbullet", "user"], "sha": "67759df45fbbd23cbe3d5cdc6df7891c5b663cb8", "url": "https://github.com/xconstruct/go-pushbullet/blob/67759df45fbbd23cbe3d5cdc6df7891c5b663cb8/pushbullet.go#L197-L222", "partition": "valid"} +{"repo": "xconstruct/go-pushbullet", "path": "pushbullet.go", "func_name": "Push", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Push pushes the data to a specific device registered with PushBullet. The\n// 'data' parameter is marshaled to JSON and sent as the request body. Most\n// users should call one of PusNote, PushLink, PushAddress, or PushList.", "docstring_tokens": ["Push", "pushes", "the", "data", "to", "a", "specific", "device", "registered", "with", "PushBullet", ".", "The", "data", "parameter", "is", "marshaled", "to", "JSON", "and", "sent", "as", "the", "request", "body", ".", "Most", "users", "should", "call", "one", "of", "PusNote", "PushLink", "PushAddress", "or", "PushList", "."], "sha": "67759df45fbbd23cbe3d5cdc6df7891c5b663cb8", "url": "https://github.com/xconstruct/go-pushbullet/blob/67759df45fbbd23cbe3d5cdc6df7891c5b663cb8/pushbullet.go#L227-L247", "partition": "valid"} +{"repo": "xconstruct/go-pushbullet", "path": "pushbullet.go", "func_name": "PushNote", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PushNote pushes a note with title and body to a specific PushBullet device.", "docstring_tokens": ["PushNote", "pushes", "a", "note", "with", "title", "and", "body", "to", "a", "specific", "PushBullet", "device", "."], "sha": "67759df45fbbd23cbe3d5cdc6df7891c5b663cb8", "url": "https://github.com/xconstruct/go-pushbullet/blob/67759df45fbbd23cbe3d5cdc6df7891c5b663cb8/pushbullet.go#L259-L267", "partition": "valid"} +{"repo": "xconstruct/go-pushbullet", "path": "pushbullet.go", "func_name": "PushNoteToChannel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PushNoteToChannel pushes a note with title and body to a specific PushBullet channel.", "docstring_tokens": ["PushNoteToChannel", "pushes", "a", "note", "with", "title", "and", "body", "to", "a", "specific", "PushBullet", "channel", "."], "sha": "67759df45fbbd23cbe3d5cdc6df7891c5b663cb8", "url": "https://github.com/xconstruct/go-pushbullet/blob/67759df45fbbd23cbe3d5cdc6df7891c5b663cb8/pushbullet.go#L270-L278", "partition": "valid"} +{"repo": "xconstruct/go-pushbullet", "path": "pushbullet.go", "func_name": "PushLink", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PushLink pushes a link with a title and url to a specific PushBullet device.", "docstring_tokens": ["PushLink", "pushes", "a", "link", "with", "a", "title", "and", "url", "to", "a", "specific", "PushBullet", "device", "."], "sha": "67759df45fbbd23cbe3d5cdc6df7891c5b663cb8", "url": "https://github.com/xconstruct/go-pushbullet/blob/67759df45fbbd23cbe3d5cdc6df7891c5b663cb8/pushbullet.go#L291-L300", "partition": "valid"} +{"repo": "xconstruct/go-pushbullet", "path": "pushbullet.go", "func_name": "PushLinkToChannel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PushLinkToChannel pushes a link with a title and url to a specific PushBullet device.", "docstring_tokens": ["PushLinkToChannel", "pushes", "a", "link", "with", "a", "title", "and", "url", "to", "a", "specific", "PushBullet", "device", "."], "sha": "67759df45fbbd23cbe3d5cdc6df7891c5b663cb8", "url": "https://github.com/xconstruct/go-pushbullet/blob/67759df45fbbd23cbe3d5cdc6df7891c5b663cb8/pushbullet.go#L303-L312", "partition": "valid"} +{"repo": "xconstruct/go-pushbullet", "path": "pushbullet.go", "func_name": "PushSMS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PushSMS sends an SMS message with pushbullet", "docstring_tokens": ["PushSMS", "sends", "an", "SMS", "message", "with", "pushbullet"], "sha": "67759df45fbbd23cbe3d5cdc6df7891c5b663cb8", "url": "https://github.com/xconstruct/go-pushbullet/blob/67759df45fbbd23cbe3d5cdc6df7891c5b663cb8/pushbullet.go#L331-L344", "partition": "valid"} +{"repo": "xconstruct/go-pushbullet", "path": "pushbullet.go", "func_name": "Subscription", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Subscription fetches an subscription with a given channel tag from PushBullet.", "docstring_tokens": ["Subscription", "fetches", "an", "subscription", "with", "a", "given", "channel", "tag", "from", "PushBullet", "."], "sha": "67759df45fbbd23cbe3d5cdc6df7891c5b663cb8", "url": "https://github.com/xconstruct/go-pushbullet/blob/67759df45fbbd23cbe3d5cdc6df7891c5b663cb8/pushbullet.go#L400-L413", "partition": "valid"} +{"repo": "xconstruct/go-pushbullet", "path": "pushbullet.go", "func_name": "PushNote", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PushNote sends a note to the specific Channel with the given title and body", "docstring_tokens": ["PushNote", "sends", "a", "note", "to", "the", "specific", "Channel", "with", "the", "given", "title", "and", "body"], "sha": "67759df45fbbd23cbe3d5cdc6df7891c5b663cb8", "url": "https://github.com/xconstruct/go-pushbullet/blob/67759df45fbbd23cbe3d5cdc6df7891c5b663cb8/pushbullet.go#L416-L418", "partition": "valid"} +{"repo": "xconstruct/go-pushbullet", "path": "pushbullet.go", "func_name": "PushLink", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PushNote sends a link to the specific Channel with the given title, url and body", "docstring_tokens": ["PushNote", "sends", "a", "link", "to", "the", "specific", "Channel", "with", "the", "given", "title", "url", "and", "body"], "sha": "67759df45fbbd23cbe3d5cdc6df7891c5b663cb8", "url": "https://github.com/xconstruct/go-pushbullet/blob/67759df45fbbd23cbe3d5cdc6df7891c5b663cb8/pushbullet.go#L421-L423", "partition": "valid"} +{"repo": "divideandconquer/go-consul-client", "path": "src/client/client.go", "func_name": "NewCachedLoader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCachedLoader creates a Loader that will cache the provided namespace on initialization\n// and return data from that cache on Get", "docstring_tokens": ["NewCachedLoader", "creates", "a", "Loader", "that", "will", "cache", "the", "provided", "namespace", "on", "initialization", "and", "return", "data", "from", "that", "cache", "on", "Get"], "sha": "582bc8f36c6dc7a3950b053bf971201214a41e25", "url": "https://github.com/divideandconquer/go-consul-client/blob/582bc8f36c6dc7a3950b053bf971201214a41e25/src/client/client.go#L25-L34", "partition": "valid"} +{"repo": "divideandconquer/go-consul-client", "path": "src/client/client.go", "func_name": "Import", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Import takes a json byte array and inserts the key value pairs into consul prefixed by the namespace", "docstring_tokens": ["Import", "takes", "a", "json", "byte", "array", "and", "inserts", "the", "key", "value", "pairs", "into", "consul", "prefixed", "by", "the", "namespace"], "sha": "582bc8f36c6dc7a3950b053bf971201214a41e25", "url": "https://github.com/divideandconquer/go-consul-client/blob/582bc8f36c6dc7a3950b053bf971201214a41e25/src/client/client.go#L37-L59", "partition": "valid"} +{"repo": "divideandconquer/go-consul-client", "path": "src/client/client.go", "func_name": "Initialize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Initialize loads the consul KV's from the namespace into cache for later retrieval", "docstring_tokens": ["Initialize", "loads", "the", "consul", "KV", "s", "from", "the", "namespace", "into", "cache", "for", "later", "retrieval"], "sha": "582bc8f36c6dc7a3950b053bf971201214a41e25", "url": "https://github.com/divideandconquer/go-consul-client/blob/582bc8f36c6dc7a3950b053bf971201214a41e25/src/client/client.go#L96-L111", "partition": "valid"} +{"repo": "divideandconquer/go-consul-client", "path": "src/client/client.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get fetches the raw config from cache", "docstring_tokens": ["Get", "fetches", "the", "raw", "config", "from", "cache"], "sha": "582bc8f36c6dc7a3950b053bf971201214a41e25", "url": "https://github.com/divideandconquer/go-consul-client/blob/582bc8f36c6dc7a3950b053bf971201214a41e25/src/client/client.go#L114-L123", "partition": "valid"} +{"repo": "divideandconquer/go-consul-client", "path": "src/client/client.go", "func_name": "MustGetString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustGetString fetches the config and parses it into a string. Panics on failure.", "docstring_tokens": ["MustGetString", "fetches", "the", "config", "and", "parses", "it", "into", "a", "string", ".", "Panics", "on", "failure", "."], "sha": "582bc8f36c6dc7a3950b053bf971201214a41e25", "url": "https://github.com/divideandconquer/go-consul-client/blob/582bc8f36c6dc7a3950b053bf971201214a41e25/src/client/client.go#L126-L139", "partition": "valid"} +{"repo": "divideandconquer/go-consul-client", "path": "src/client/client.go", "func_name": "MustGetBool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustGetBool fetches the config and parses it into a bool. Panics on failure.", "docstring_tokens": ["MustGetBool", "fetches", "the", "config", "and", "parses", "it", "into", "a", "bool", ".", "Panics", "on", "failure", "."], "sha": "582bc8f36c6dc7a3950b053bf971201214a41e25", "url": "https://github.com/divideandconquer/go-consul-client/blob/582bc8f36c6dc7a3950b053bf971201214a41e25/src/client/client.go#L142-L153", "partition": "valid"} +{"repo": "divideandconquer/go-consul-client", "path": "src/client/client.go", "func_name": "MustGetInt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustGetInt fetches the config and parses it into an int. Panics on failure.", "docstring_tokens": ["MustGetInt", "fetches", "the", "config", "and", "parses", "it", "into", "an", "int", ".", "Panics", "on", "failure", "."], "sha": "582bc8f36c6dc7a3950b053bf971201214a41e25", "url": "https://github.com/divideandconquer/go-consul-client/blob/582bc8f36c6dc7a3950b053bf971201214a41e25/src/client/client.go#L156-L168", "partition": "valid"} +{"repo": "divideandconquer/go-consul-client", "path": "src/client/client.go", "func_name": "MustGetDuration", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustGetDuration fetches the config and parses it into a duration. Panics on failure.", "docstring_tokens": ["MustGetDuration", "fetches", "the", "config", "and", "parses", "it", "into", "a", "duration", ".", "Panics", "on", "failure", "."], "sha": "582bc8f36c6dc7a3950b053bf971201214a41e25", "url": "https://github.com/divideandconquer/go-consul-client/blob/582bc8f36c6dc7a3950b053bf971201214a41e25/src/client/client.go#L171-L178", "partition": "valid"} +{"repo": "divideandconquer/go-consul-client", "path": "src/balancer/consul/random.go", "func_name": "NewRandomDNSBalancer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRandomDNSBalancer will return a random balancer.DNS that looks up dns in consul.", "docstring_tokens": ["NewRandomDNSBalancer", "will", "return", "a", "random", "balancer", ".", "DNS", "that", "looks", "up", "dns", "in", "consul", "."], "sha": "582bc8f36c6dc7a3950b053bf971201214a41e25", "url": "https://github.com/divideandconquer/go-consul-client/blob/582bc8f36c6dc7a3950b053bf971201214a41e25/src/balancer/consul/random.go#L34-L48", "partition": "valid"} +{"repo": "divideandconquer/go-consul-client", "path": "src/balancer/consul/random.go", "func_name": "writeServiceToCache", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// writeServiceToCache locks specifically to alleviate load on consul some additional lock time\n// is preferable to extra consul calls", "docstring_tokens": ["writeServiceToCache", "locks", "specifically", "to", "alleviate", "load", "on", "consul", "some", "additional", "lock", "time", "is", "preferable", "to", "extra", "consul", "calls"], "sha": "582bc8f36c6dc7a3950b053bf971201214a41e25", "url": "https://github.com/divideandconquer/go-consul-client/blob/582bc8f36c6dc7a3950b053bf971201214a41e25/src/balancer/consul/random.go#L98-L134", "partition": "valid"} +{"repo": "elodina/go-mesos-utils", "path": "labels.go", "func_name": "StringToLabels", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Convert param string like \"param1=value1;param2=value2\" to mesos.Labels", "docstring_tokens": ["Convert", "param", "string", "like", "param1", "=", "value1", ";", "param2", "=", "value2", "to", "mesos", ".", "Labels"], "sha": "0142cf91bf102865d82067a09fbf8629cf63fd2e", "url": "https://github.com/elodina/go-mesos-utils/blob/0142cf91bf102865d82067a09fbf8629cf63fd2e/labels.go#L11-L24", "partition": "valid"} +{"repo": "codeskyblue/go-uuid", "path": "time.go", "func_name": "SetClockSequence", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetClockSeq sets the clock sequence to the lower 14 bits of seq. Setting to\n// -1 causes a new sequence to be generated.", "docstring_tokens": ["SetClockSeq", "sets", "the", "clock", "sequence", "to", "the", "lower", "14", "bits", "of", "seq", ".", "Setting", "to", "-", "1", "causes", "a", "new", "sequence", "to", "be", "generated", "."], "sha": "952abbca900b023c1a80bc522ff4795db50d9d6c", "url": "https://github.com/codeskyblue/go-uuid/blob/952abbca900b023c1a80bc522ff4795db50d9d6c/time.go#L78-L89", "partition": "valid"} +{"repo": "elodina/go-mesos-utils", "path": "logger.go", "func_name": "Trace", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Trace formats a given message according to given params to log with level Trace.", "docstring_tokens": ["Trace", "formats", "a", "given", "message", "according", "to", "given", "params", "to", "log", "with", "level", "Trace", "."], "sha": "0142cf91bf102865d82067a09fbf8629cf63fd2e", "url": "https://github.com/elodina/go-mesos-utils/blob/0142cf91bf102865d82067a09fbf8629cf63fd2e/logger.go#L94-L96", "partition": "valid"} +{"repo": "elodina/go-mesos-utils", "path": "logger.go", "func_name": "Debug", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Debug formats a given message according to given params to log with level Debug.", "docstring_tokens": ["Debug", "formats", "a", "given", "message", "according", "to", "given", "params", "to", "log", "with", "level", "Debug", "."], "sha": "0142cf91bf102865d82067a09fbf8629cf63fd2e", "url": "https://github.com/elodina/go-mesos-utils/blob/0142cf91bf102865d82067a09fbf8629cf63fd2e/logger.go#L99-L101", "partition": "valid"} +{"repo": "elodina/go-mesos-utils", "path": "logger.go", "func_name": "Info", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Info formats a given message according to given params to log with level Info.", "docstring_tokens": ["Info", "formats", "a", "given", "message", "according", "to", "given", "params", "to", "log", "with", "level", "Info", "."], "sha": "0142cf91bf102865d82067a09fbf8629cf63fd2e", "url": "https://github.com/elodina/go-mesos-utils/blob/0142cf91bf102865d82067a09fbf8629cf63fd2e/logger.go#L104-L106", "partition": "valid"} +{"repo": "elodina/go-mesos-utils", "path": "logger.go", "func_name": "Warn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Warn formats a given message according to given params to log with level Warn.", "docstring_tokens": ["Warn", "formats", "a", "given", "message", "according", "to", "given", "params", "to", "log", "with", "level", "Warn", "."], "sha": "0142cf91bf102865d82067a09fbf8629cf63fd2e", "url": "https://github.com/elodina/go-mesos-utils/blob/0142cf91bf102865d82067a09fbf8629cf63fd2e/logger.go#L109-L111", "partition": "valid"} +{"repo": "elodina/go-mesos-utils", "path": "logger.go", "func_name": "Error", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Error formats a given message according to given params to log with level Error.", "docstring_tokens": ["Error", "formats", "a", "given", "message", "according", "to", "given", "params", "to", "log", "with", "level", "Error", "."], "sha": "0142cf91bf102865d82067a09fbf8629cf63fd2e", "url": "https://github.com/elodina/go-mesos-utils/blob/0142cf91bf102865d82067a09fbf8629cf63fd2e/logger.go#L114-L116", "partition": "valid"} +{"repo": "elodina/go-mesos-utils", "path": "logger.go", "func_name": "Critical", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Critical formats a given message according to given params to log with level Critical.", "docstring_tokens": ["Critical", "formats", "a", "given", "message", "according", "to", "given", "params", "to", "log", "with", "level", "Critical", "."], "sha": "0142cf91bf102865d82067a09fbf8629cf63fd2e", "url": "https://github.com/elodina/go-mesos-utils/blob/0142cf91bf102865d82067a09fbf8629cf63fd2e/logger.go#L119-L121", "partition": "valid"} +{"repo": "ninedraft/simplepaste", "path": "simplepaste.go", "func_name": "SendPaste", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Returns paste link string and nil if everything is ok", "docstring_tokens": ["Returns", "paste", "link", "string", "and", "nil", "if", "everything", "is", "ok"], "sha": "2fc55ea4861ccbca82b59ac9bc167cb41d9e59ce", "url": "https://github.com/ninedraft/simplepaste/blob/2fc55ea4861ccbca82b59ac9bc167cb41d9e59ce/simplepaste.go#L40-L66", "partition": "valid"} +{"repo": "ninedraft/simplepaste", "path": "simplepaste.go", "func_name": "GetPasteTextById", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Returns raw paste text", "docstring_tokens": ["Returns", "raw", "paste", "text"], "sha": "2fc55ea4861ccbca82b59ac9bc167cb41d9e59ce", "url": "https://github.com/ninedraft/simplepaste/blob/2fc55ea4861ccbca82b59ac9bc167cb41d9e59ce/simplepaste.go#L69-L84", "partition": "valid"} +{"repo": "golang-devops/go-exec-streamer", "path": "exec_streamer.go", "func_name": "ExecAndWait", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//ExecAndWait will execute the command using the given executor and wait until completion", "docstring_tokens": ["ExecAndWait", "will", "execute", "the", "command", "using", "the", "given", "executor", "and", "wait", "until", "completion"], "sha": "1f784c813fd906429a1fe252b24839d61ae9fa7d", "url": "https://github.com/golang-devops/go-exec-streamer/blob/1f784c813fd906429a1fe252b24839d61ae9fa7d/exec_streamer.go#L131-L145", "partition": "valid"} +{"repo": "golang-devops/go-exec-streamer", "path": "exec_streamer_builder.go", "func_name": "ExecutorName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//ExecutorName sets the ExecutorName", "docstring_tokens": ["ExecutorName", "sets", "the", "ExecutorName"], "sha": "1f784c813fd906429a1fe252b24839d61ae9fa7d", "url": "https://github.com/golang-devops/go-exec-streamer/blob/1f784c813fd906429a1fe252b24839d61ae9fa7d/exec_streamer_builder.go#L44-L47", "partition": "valid"} +{"repo": "golang-devops/go-exec-streamer", "path": "exec_streamer_builder.go", "func_name": "Exe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Exe sets the Exe", "docstring_tokens": ["Exe", "sets", "the", "Exe"], "sha": "1f784c813fd906429a1fe252b24839d61ae9fa7d", "url": "https://github.com/golang-devops/go-exec-streamer/blob/1f784c813fd906429a1fe252b24839d61ae9fa7d/exec_streamer_builder.go#L50-L53", "partition": "valid"} +{"repo": "golang-devops/go-exec-streamer", "path": "exec_streamer_builder.go", "func_name": "Args", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Args sets the Args", "docstring_tokens": ["Args", "sets", "the", "Args"], "sha": "1f784c813fd906429a1fe252b24839d61ae9fa7d", "url": "https://github.com/golang-devops/go-exec-streamer/blob/1f784c813fd906429a1fe252b24839d61ae9fa7d/exec_streamer_builder.go#L56-L59", "partition": "valid"} +{"repo": "golang-devops/go-exec-streamer", "path": "exec_streamer_builder.go", "func_name": "Dir", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Dir sets the Dir", "docstring_tokens": ["Dir", "sets", "the", "Dir"], "sha": "1f784c813fd906429a1fe252b24839d61ae9fa7d", "url": "https://github.com/golang-devops/go-exec-streamer/blob/1f784c813fd906429a1fe252b24839d61ae9fa7d/exec_streamer_builder.go#L62-L65", "partition": "valid"} +{"repo": "golang-devops/go-exec-streamer", "path": "exec_streamer_builder.go", "func_name": "Env", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Env sets the Env", "docstring_tokens": ["Env", "sets", "the", "Env"], "sha": "1f784c813fd906429a1fe252b24839d61ae9fa7d", "url": "https://github.com/golang-devops/go-exec-streamer/blob/1f784c813fd906429a1fe252b24839d61ae9fa7d/exec_streamer_builder.go#L68-L71", "partition": "valid"} +{"repo": "golang-devops/go-exec-streamer", "path": "exec_streamer_builder.go", "func_name": "Writers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Writers sets the Writers", "docstring_tokens": ["Writers", "sets", "the", "Writers"], "sha": "1f784c813fd906429a1fe252b24839d61ae9fa7d", "url": "https://github.com/golang-devops/go-exec-streamer/blob/1f784c813fd906429a1fe252b24839d61ae9fa7d/exec_streamer_builder.go#L74-L78", "partition": "valid"} +{"repo": "golang-devops/go-exec-streamer", "path": "exec_streamer_builder.go", "func_name": "StdoutWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//StdoutWriter sets the StdoutWriter", "docstring_tokens": ["StdoutWriter", "sets", "the", "StdoutWriter"], "sha": "1f784c813fd906429a1fe252b24839d61ae9fa7d", "url": "https://github.com/golang-devops/go-exec-streamer/blob/1f784c813fd906429a1fe252b24839d61ae9fa7d/exec_streamer_builder.go#L81-L84", "partition": "valid"} +{"repo": "golang-devops/go-exec-streamer", "path": "exec_streamer_builder.go", "func_name": "StdoutPrefix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//StdoutPrefix sets the StdoutPrefix", "docstring_tokens": ["StdoutPrefix", "sets", "the", "StdoutPrefix"], "sha": "1f784c813fd906429a1fe252b24839d61ae9fa7d", "url": "https://github.com/golang-devops/go-exec-streamer/blob/1f784c813fd906429a1fe252b24839d61ae9fa7d/exec_streamer_builder.go#L87-L90", "partition": "valid"} +{"repo": "golang-devops/go-exec-streamer", "path": "exec_streamer_builder.go", "func_name": "StderrWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//StderrWriter sets the StderrWriter", "docstring_tokens": ["StderrWriter", "sets", "the", "StderrWriter"], "sha": "1f784c813fd906429a1fe252b24839d61ae9fa7d", "url": "https://github.com/golang-devops/go-exec-streamer/blob/1f784c813fd906429a1fe252b24839d61ae9fa7d/exec_streamer_builder.go#L93-L96", "partition": "valid"} +{"repo": "golang-devops/go-exec-streamer", "path": "exec_streamer_builder.go", "func_name": "StderrPrefix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//StderrPrefix sets the StderrPrefix", "docstring_tokens": ["StderrPrefix", "sets", "the", "StderrPrefix"], "sha": "1f784c813fd906429a1fe252b24839d61ae9fa7d", "url": "https://github.com/golang-devops/go-exec-streamer/blob/1f784c813fd906429a1fe252b24839d61ae9fa7d/exec_streamer_builder.go#L99-L102", "partition": "valid"} +{"repo": "golang-devops/go-exec-streamer", "path": "exec_streamer_builder.go", "func_name": "Build", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Build will validate the set properties and return a ExecStreamer", "docstring_tokens": ["Build", "will", "validate", "the", "set", "properties", "and", "return", "a", "ExecStreamer"], "sha": "1f784c813fd906429a1fe252b24839d61ae9fa7d", "url": "https://github.com/golang-devops/go-exec-streamer/blob/1f784c813fd906429a1fe252b24839d61ae9fa7d/exec_streamer_builder.go#L123-L138", "partition": "valid"} +{"repo": "companyzero/ttk", "path": "widget.go", "func_name": "MakeWidget", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MakeWidget creates a generic Widget structure.", "docstring_tokens": ["MakeWidget", "creates", "a", "generic", "Widget", "structure", "."], "sha": "0b227f5567b95800cf73c67a7a5220226685ef02", "url": "https://github.com/companyzero/ttk/blob/0b227f5567b95800cf73c67a7a5220226685ef02/widget.go#L53-L59", "partition": "valid"} +{"repo": "companyzero/ttk", "path": "label.go", "func_name": "SetText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetText sets the label caption. This will not be displayed immediately.\n// SetText shall be called from queue context.", "docstring_tokens": ["SetText", "sets", "the", "label", "caption", ".", "This", "will", "not", "be", "displayed", "immediately", ".", "SetText", "shall", "be", "called", "from", "queue", "context", "."], "sha": "0b227f5567b95800cf73c67a7a5220226685ef02", "url": "https://github.com/companyzero/ttk/blob/0b227f5567b95800cf73c67a7a5220226685ef02/label.go#L128-L130", "partition": "valid"} +{"repo": "companyzero/ttk", "path": "label.go", "func_name": "AddLabel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddLabel is a convenience function to add a new label to a window. It wraps\n// the AddWidget call. AddLabel must be called from queue.", "docstring_tokens": ["AddLabel", "is", "a", "convenience", "function", "to", "add", "a", "new", "label", "to", "a", "window", ".", "It", "wraps", "the", "AddWidget", "call", ".", "AddLabel", "must", "be", "called", "from", "queue", "."], "sha": "0b227f5567b95800cf73c67a7a5220226685ef02", "url": "https://github.com/companyzero/ttk/blob/0b227f5567b95800cf73c67a7a5220226685ef02/label.go#L134-L143", "partition": "valid"} +{"repo": "companyzero/ttk", "path": "window.go", "func_name": "printf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// printf prints into the backend buffer.\n// This will not show immediately.\n// printf shall be called from queue context.", "docstring_tokens": ["printf", "prints", "into", "the", "backend", "buffer", ".", "This", "will", "not", "show", "immediately", ".", "printf", "shall", "be", "called", "from", "queue", "context", "."], "sha": "0b227f5567b95800cf73c67a7a5220226685ef02", "url": "https://github.com/companyzero/ttk/blob/0b227f5567b95800cf73c67a7a5220226685ef02/window.go#L53-L85", "partition": "valid"} +{"repo": "companyzero/ttk", "path": "window.go", "func_name": "setCell", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setCell sets the content of the window cell at the x and y coordinate.\n// setCell shall be called from queue context.", "docstring_tokens": ["setCell", "sets", "the", "content", "of", "the", "window", "cell", "at", "the", "x", "and", "y", "coordinate", ".", "setCell", "shall", "be", "called", "from", "queue", "context", "."], "sha": "0b227f5567b95800cf73c67a7a5220226685ef02", "url": "https://github.com/companyzero/ttk/blob/0b227f5567b95800cf73c67a7a5220226685ef02/window.go#L89-L95", "partition": "valid"} +{"repo": "companyzero/ttk", "path": "window.go", "func_name": "resize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resize sets new x and y maxima.\n// resize shall be called from queue context.", "docstring_tokens": ["resize", "sets", "new", "x", "and", "y", "maxima", ".", "resize", "shall", "be", "called", "from", "queue", "context", "."], "sha": "0b227f5567b95800cf73c67a7a5220226685ef02", "url": "https://github.com/companyzero/ttk/blob/0b227f5567b95800cf73c67a7a5220226685ef02/window.go#L109-L118", "partition": "valid"} +{"repo": "companyzero/ttk", "path": "window.go", "func_name": "render", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// render calls the user provided Render and than renders the widgets in the\n// window.", "docstring_tokens": ["render", "calls", "the", "user", "provided", "Render", "and", "than", "renders", "the", "widgets", "in", "the", "window", "."], "sha": "0b227f5567b95800cf73c67a7a5220226685ef02", "url": "https://github.com/companyzero/ttk/blob/0b227f5567b95800cf73c67a7a5220226685ef02/window.go#L122-L132", "partition": "valid"} +{"repo": "companyzero/ttk", "path": "window.go", "func_name": "focusWidget", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// focusWidget focuses on the current widget. If focus is -1 it'll focus on\n// the first available widget.\n// focusWidget shall be called from queue context.", "docstring_tokens": ["focusWidget", "focuses", "on", "the", "current", "widget", ".", "If", "focus", "is", "-", "1", "it", "ll", "focus", "on", "the", "first", "available", "widget", ".", "focusWidget", "shall", "be", "called", "from", "queue", "context", "."], "sha": "0b227f5567b95800cf73c67a7a5220226685ef02", "url": "https://github.com/companyzero/ttk/blob/0b227f5567b95800cf73c67a7a5220226685ef02/window.go#L137-L158", "partition": "valid"} +{"repo": "companyzero/ttk", "path": "window.go", "func_name": "focusPrevious", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// focusPrevious focuses on the previous available widget.\n// focusPrevious shall be called from queue context.", "docstring_tokens": ["focusPrevious", "focuses", "on", "the", "previous", "available", "widget", ".", "focusPrevious", "shall", "be", "called", "from", "queue", "context", "."], "sha": "0b227f5567b95800cf73c67a7a5220226685ef02", "url": "https://github.com/companyzero/ttk/blob/0b227f5567b95800cf73c67a7a5220226685ef02/window.go#L195-L228", "partition": "valid"} +{"repo": "companyzero/ttk", "path": "window.go", "func_name": "keyHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// keyHandler routes event to proper widget. This is called from queue context\n// so be careful to not use blocking calls.", "docstring_tokens": ["keyHandler", "routes", "event", "to", "proper", "widget", ".", "This", "is", "called", "from", "queue", "context", "so", "be", "careful", "to", "not", "use", "blocking", "calls", "."], "sha": "0b227f5567b95800cf73c67a7a5220226685ef02", "url": "https://github.com/companyzero/ttk/blob/0b227f5567b95800cf73c67a7a5220226685ef02/window.go#L240-L245", "partition": "valid"} +{"repo": "companyzero/ttk", "path": "ttk.go", "func_name": "Color", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Color creates an ANSI compatible escape sequence that encodes colors and\n// attributes.", "docstring_tokens": ["Color", "creates", "an", "ANSI", "compatible", "escape", "sequence", "that", "encodes", "colors", "and", "attributes", "."], "sha": "0b227f5567b95800cf73c67a7a5220226685ef02", "url": "https://github.com/companyzero/ttk/blob/0b227f5567b95800cf73c67a7a5220226685ef02/ttk.go#L50-L91", "partition": "valid"} +{"repo": "companyzero/ttk", "path": "ttk.go", "func_name": "EscapedLen", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EscapedLen returns total length of all escape sequences in a given string.", "docstring_tokens": ["EscapedLen", "returns", "total", "length", "of", "all", "escape", "sequences", "in", "a", "given", "string", "."], "sha": "0b227f5567b95800cf73c67a7a5220226685ef02", "url": "https://github.com/companyzero/ttk/blob/0b227f5567b95800cf73c67a7a5220226685ef02/ttk.go#L159-L180", "partition": "valid"} +{"repo": "companyzero/ttk", "path": "ttk.go", "func_name": "Unescape", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Unescape returns the unescaped string.", "docstring_tokens": ["Unescape", "returns", "the", "unescaped", "string", "."], "sha": "0b227f5567b95800cf73c67a7a5220226685ef02", "url": "https://github.com/companyzero/ttk/blob/0b227f5567b95800cf73c67a7a5220226685ef02/ttk.go#L183-L205", "partition": "valid"} +{"repo": "companyzero/ttk", "path": "ttk.go", "func_name": "init", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// init sets up all global variables and prepares ttk for use.", "docstring_tokens": ["init", "sets", "up", "all", "global", "variables", "and", "prepares", "ttk", "for", "use", "."], "sha": "0b227f5567b95800cf73c67a7a5220226685ef02", "url": "https://github.com/companyzero/ttk/blob/0b227f5567b95800cf73c67a7a5220226685ef02/ttk.go#L253-L305", "partition": "valid"} +{"repo": "companyzero/ttk", "path": "ttk.go", "func_name": "initKeyHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// initKeyHandler starts the internal key handler.\n// Must be called with mutex held and as a go routine.", "docstring_tokens": ["initKeyHandler", "starts", "the", "internal", "key", "handler", ".", "Must", "be", "called", "with", "mutex", "held", "and", "as", "a", "go", "routine", "."], "sha": "0b227f5567b95800cf73c67a7a5220226685ef02", "url": "https://github.com/companyzero/ttk/blob/0b227f5567b95800cf73c67a7a5220226685ef02/ttk.go#L309-L352", "partition": "valid"} +{"repo": "companyzero/ttk", "path": "ttk.go", "func_name": "Init", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Init switches the terminal to raw mode and commences managed window mode.\n// This function shall be called prior to any ttk calls.", "docstring_tokens": ["Init", "switches", "the", "terminal", "to", "raw", "mode", "and", "commences", "managed", "window", "mode", ".", "This", "function", "shall", "be", "called", "prior", "to", "any", "ttk", "calls", "."], "sha": "0b227f5567b95800cf73c67a7a5220226685ef02", "url": "https://github.com/companyzero/ttk/blob/0b227f5567b95800cf73c67a7a5220226685ef02/ttk.go#L356-L387", "partition": "valid"} +{"repo": "companyzero/ttk", "path": "ttk.go", "func_name": "Deinit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Deinit switches the terminal back to cooked mode and it terminates managed\n// window mode. Init must be called again if a switch is required again.\n// Deinit shall be called on application exit; failing to do so may leave the\n// terminal corrupted. If that does happen typing \"reset\" on the shell usually\n// fixes this problem.", "docstring_tokens": ["Deinit", "switches", "the", "terminal", "back", "to", "cooked", "mode", "and", "it", "terminates", "managed", "window", "mode", ".", "Init", "must", "be", "called", "again", "if", "a", "switch", "is", "required", "again", ".", "Deinit", "shall", "be", "called", "on", "application", "exit", ";", "failing", "to", "do", "so", "may", "leave", "the", "terminal", "corrupted", ".", "If", "that", "does", "happen", "typing", "reset", "on", "the", "shell", "usually", "fixes", "this", "problem", "."], "sha": "0b227f5567b95800cf73c67a7a5220226685ef02", "url": "https://github.com/companyzero/ttk/blob/0b227f5567b95800cf73c67a7a5220226685ef02/ttk.go#L394-L409", "partition": "valid"} +{"repo": "companyzero/ttk", "path": "ttk.go", "func_name": "NewWindow", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewWindow creates a new window type.", "docstring_tokens": ["NewWindow", "creates", "a", "new", "window", "type", "."], "sha": "0b227f5567b95800cf73c67a7a5220226685ef02", "url": "https://github.com/companyzero/ttk/blob/0b227f5567b95800cf73c67a7a5220226685ef02/ttk.go#L424-L443", "partition": "valid"} +{"repo": "companyzero/ttk", "path": "ttk.go", "func_name": "flush", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flush copies focused window backing store onto the physical screen.\n// flush shall be called from queue context.", "docstring_tokens": ["flush", "copies", "focused", "window", "backing", "store", "onto", "the", "physical", "screen", ".", "flush", "shall", "be", "called", "from", "queue", "context", "."], "sha": "0b227f5567b95800cf73c67a7a5220226685ef02", "url": "https://github.com/companyzero/ttk/blob/0b227f5567b95800cf73c67a7a5220226685ef02/ttk.go#L477-L500", "partition": "valid"} +{"repo": "companyzero/ttk", "path": "ttk.go", "func_name": "focusWindow", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// focus on provided window. This will implicitly focus on a window widget\n// that can have focus. Render and flush it onto the terminal.\n// focus shall be called from queue context.", "docstring_tokens": ["focus", "on", "provided", "window", ".", "This", "will", "implicitly", "focus", "on", "a", "window", "widget", "that", "can", "have", "focus", ".", "Render", "and", "flush", "it", "onto", "the", "terminal", ".", "focus", "shall", "be", "called", "from", "queue", "context", "."], "sha": "0b227f5567b95800cf73c67a7a5220226685ef02", "url": "https://github.com/companyzero/ttk/blob/0b227f5567b95800cf73c67a7a5220226685ef02/ttk.go#L518-L533", "partition": "valid"} +{"repo": "companyzero/ttk", "path": "ttk.go", "func_name": "resizeAndRender", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resizeAndRender resizes a window and renders it.", "docstring_tokens": ["resizeAndRender", "resizes", "a", "window", "and", "renders", "it", "."], "sha": "0b227f5567b95800cf73c67a7a5220226685ef02", "url": "https://github.com/companyzero/ttk/blob/0b227f5567b95800cf73c67a7a5220226685ef02/ttk.go#L536-L548", "partition": "valid"} +{"repo": "companyzero/ttk", "path": "ttk.go", "func_name": "Panic", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Panic application but deinit first so that the terminal will not be corrupt.", "docstring_tokens": ["Panic", "application", "but", "deinit", "first", "so", "that", "the", "terminal", "will", "not", "be", "corrupt", "."], "sha": "0b227f5567b95800cf73c67a7a5220226685ef02", "url": "https://github.com/companyzero/ttk/blob/0b227f5567b95800cf73c67a7a5220226685ef02/ttk.go#L568-L572", "partition": "valid"} +{"repo": "companyzero/ttk", "path": "ttk.go", "func_name": "Exit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Exit application but deinit first so that the terminal will not be corrupt.", "docstring_tokens": ["Exit", "application", "but", "deinit", "first", "so", "that", "the", "terminal", "will", "not", "be", "corrupt", "."], "sha": "0b227f5567b95800cf73c67a7a5220226685ef02", "url": "https://github.com/companyzero/ttk/blob/0b227f5567b95800cf73c67a7a5220226685ef02/ttk.go#L575-L579", "partition": "valid"} +{"repo": "companyzero/ttk", "path": "list.go", "func_name": "AddList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddList is a convenience function to add a new list to a window. It wraps\n// the AddWidget call. AddList must be called from queue.", "docstring_tokens": ["AddList", "is", "a", "convenience", "function", "to", "add", "a", "new", "list", "to", "a", "window", ".", "It", "wraps", "the", "AddWidget", "call", ".", "AddList", "must", "be", "called", "from", "queue", "."], "sha": "0b227f5567b95800cf73c67a7a5220226685ef02", "url": "https://github.com/companyzero/ttk/blob/0b227f5567b95800cf73c67a7a5220226685ef02/list.go#L148-L159", "partition": "valid"} +{"repo": "companyzero/ttk", "path": "list.go", "func_name": "Append", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Append adds a line of text to the list. Append must be called from queue.", "docstring_tokens": ["Append", "adds", "a", "line", "of", "text", "to", "the", "list", ".", "Append", "must", "be", "called", "from", "queue", "."], "sha": "0b227f5567b95800cf73c67a7a5220226685ef02", "url": "https://github.com/companyzero/ttk/blob/0b227f5567b95800cf73c67a7a5220226685ef02/list.go#L162-L174", "partition": "valid"} +{"repo": "companyzero/ttk", "path": "edit.go", "func_name": "Focus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Focus implements the interface. This is called from queue context\n// so be careful to not use blocking calls.", "docstring_tokens": ["Focus", "implements", "the", "interface", ".", "This", "is", "called", "from", "queue", "context", "so", "be", "careful", "to", "not", "use", "blocking", "calls", "."], "sha": "0b227f5567b95800cf73c67a7a5220226685ef02", "url": "https://github.com/companyzero/ttk/blob/0b227f5567b95800cf73c67a7a5220226685ef02/edit.go#L229-L237", "partition": "valid"} +{"repo": "companyzero/ttk", "path": "edit.go", "func_name": "SetText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetText sets the edit text. if end is set to true the cursor and text will\n// be set to the end of the string. This will not be displayed immediately.\n// SetText shall be called from queue context.", "docstring_tokens": ["SetText", "sets", "the", "edit", "text", ".", "if", "end", "is", "set", "to", "true", "the", "cursor", "and", "text", "will", "be", "set", "to", "the", "end", "of", "the", "string", ".", "This", "will", "not", "be", "displayed", "immediately", ".", "SetText", "shall", "be", "called", "from", "queue", "context", "."], "sha": "0b227f5567b95800cf73c67a7a5220226685ef02", "url": "https://github.com/companyzero/ttk/blob/0b227f5567b95800cf73c67a7a5220226685ef02/edit.go#L262-L275", "partition": "valid"} +{"repo": "companyzero/ttk", "path": "edit.go", "func_name": "AddEdit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddEdit is a convenience function to add a new edit to a window. Capacity\n// and width determine the maxima of the returned value. It wraps the\n// AddWidget call. AddEdit must be called from queue.", "docstring_tokens": ["AddEdit", "is", "a", "convenience", "function", "to", "add", "a", "new", "edit", "to", "a", "window", ".", "Capacity", "and", "width", "determine", "the", "maxima", "of", "the", "returned", "value", ".", "It", "wraps", "the", "AddWidget", "call", ".", "AddEdit", "must", "be", "called", "from", "queue", "."], "sha": "0b227f5567b95800cf73c67a7a5220226685ef02", "url": "https://github.com/companyzero/ttk/blob/0b227f5567b95800cf73c67a7a5220226685ef02/edit.go#L332-L360", "partition": "valid"} +{"repo": "nuagenetworks/go-bambou", "path": "bambou/session.go", "func_name": "makeAuthorizationHeaders", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Used for user & password based authentication", "docstring_tokens": ["Used", "for", "user", "&", "password", "based", "authentication"], "sha": "983799055125d5e8e9f312899147be457c1b8ec9", "url": "https://github.com/nuagenetworks/go-bambou/blob/983799055125d5e8e9f312899147be457c1b8ec9/bambou/session.go#L128-L148", "partition": "valid"} +{"repo": "nuagenetworks/go-bambou", "path": "bambou/session.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start starts the session.\n// At that point the authentication will be done.", "docstring_tokens": ["Start", "starts", "the", "session", ".", "At", "that", "point", "the", "authentication", "will", "be", "done", "."], "sha": "983799055125d5e8e9f312899147be457c1b8ec9", "url": "https://github.com/nuagenetworks/go-bambou/blob/983799055125d5e8e9f312899147be457c1b8ec9/bambou/session.go#L301-L312", "partition": "valid"} +{"repo": "nuagenetworks/go-bambou", "path": "bambou/session.go", "func_name": "FetchEntity", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FetchEntity fetchs the given Identifiable from the server.", "docstring_tokens": ["FetchEntity", "fetchs", "the", "given", "Identifiable", "from", "the", "server", "."], "sha": "983799055125d5e8e9f312899147be457c1b8ec9", "url": "https://github.com/nuagenetworks/go-bambou/blob/983799055125d5e8e9f312899147be457c1b8ec9/bambou/session.go#L323-L350", "partition": "valid"} +{"repo": "nuagenetworks/go-bambou", "path": "bambou/session.go", "func_name": "SaveEntity", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SaveEntity saves the given Identifiable into the server.", "docstring_tokens": ["SaveEntity", "saves", "the", "given", "Identifiable", "into", "the", "server", "."], "sha": "983799055125d5e8e9f312899147be457c1b8ec9", "url": "https://github.com/nuagenetworks/go-bambou/blob/983799055125d5e8e9f312899147be457c1b8ec9/bambou/session.go#L353-L388", "partition": "valid"} +{"repo": "nuagenetworks/go-bambou", "path": "bambou/session.go", "func_name": "DeleteEntity", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteEntity deletes the given Identifiable from the server.", "docstring_tokens": ["DeleteEntity", "deletes", "the", "given", "Identifiable", "from", "the", "server", "."], "sha": "983799055125d5e8e9f312899147be457c1b8ec9", "url": "https://github.com/nuagenetworks/go-bambou/blob/983799055125d5e8e9f312899147be457c1b8ec9/bambou/session.go#L391-L412", "partition": "valid"} +{"repo": "nuagenetworks/go-bambou", "path": "bambou/session.go", "func_name": "FetchChildren", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FetchChildren fetches the children with of given parent identified by the given Identity.", "docstring_tokens": ["FetchChildren", "fetches", "the", "children", "with", "of", "given", "parent", "identified", "by", "the", "given", "Identity", "."], "sha": "983799055125d5e8e9f312899147be457c1b8ec9", "url": "https://github.com/nuagenetworks/go-bambou/blob/983799055125d5e8e9f312899147be457c1b8ec9/bambou/session.go#L415-L445", "partition": "valid"} +{"repo": "nuagenetworks/go-bambou", "path": "bambou/session.go", "func_name": "CreateChild", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateChild creates a new child Identifiable under the given parent Identifiable in the server.", "docstring_tokens": ["CreateChild", "creates", "a", "new", "child", "Identifiable", "under", "the", "given", "parent", "Identifiable", "in", "the", "server", "."], "sha": "983799055125d5e8e9f312899147be457c1b8ec9", "url": "https://github.com/nuagenetworks/go-bambou/blob/983799055125d5e8e9f312899147be457c1b8ec9/bambou/session.go#L448-L480", "partition": "valid"} +{"repo": "nuagenetworks/go-bambou", "path": "bambou/session.go", "func_name": "AssignChildren", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AssignChildren assigns the list of given child Identifiables to the given Identifiable parent in the server.", "docstring_tokens": ["AssignChildren", "assigns", "the", "list", "of", "given", "child", "Identifiables", "to", "the", "given", "Identifiable", "parent", "in", "the", "server", "."], "sha": "983799055125d5e8e9f312899147be457c1b8ec9", "url": "https://github.com/nuagenetworks/go-bambou/blob/983799055125d5e8e9f312899147be457c1b8ec9/bambou/session.go#L483-L515", "partition": "valid"} +{"repo": "nuagenetworks/go-bambou", "path": "bambou/session.go", "func_name": "NextEvent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NextEvent will return the next notification from the backend as it occurs and will\n// send it to the correct channel.", "docstring_tokens": ["NextEvent", "will", "return", "the", "next", "notification", "from", "the", "backend", "as", "it", "occurs", "and", "will", "send", "it", "to", "the", "correct", "channel", "."], "sha": "983799055125d5e8e9f312899147be457c1b8ec9", "url": "https://github.com/nuagenetworks/go-bambou/blob/983799055125d5e8e9f312899147be457c1b8ec9/bambou/session.go#L519-L547", "partition": "valid"} +{"repo": "nuagenetworks/go-bambou", "path": "bambou/identity.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns the string representation of the identity.", "docstring_tokens": ["String", "returns", "the", "string", "representation", "of", "the", "identity", "."], "sha": "983799055125d5e8e9f312899147be457c1b8ec9", "url": "https://github.com/nuagenetworks/go-bambou/blob/983799055125d5e8e9f312899147be457c1b8ec9/bambou/identity.go#L67-L70", "partition": "valid"} +{"repo": "nuagenetworks/go-bambou", "path": "bambou/pushcenter.go", "func_name": "NewPushCenter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPushCenter creates a new PushCenter.", "docstring_tokens": ["NewPushCenter", "creates", "a", "new", "PushCenter", "."], "sha": "983799055125d5e8e9f312899147be457c1b8ec9", "url": "https://github.com/nuagenetworks/go-bambou/blob/983799055125d5e8e9f312899147be457c1b8ec9/bambou/pushcenter.go#L56-L64", "partition": "valid"} +{"repo": "nuagenetworks/go-bambou", "path": "bambou/pushcenter.go", "func_name": "RegisterHandlerForIdentity", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterHandlerForIdentity registers the given EventHandler for the given Entity Identity.\n// You can pass the bambou.AllIdentity as identity to register the handler\n// for all events. If you pass a handler for an Identity that is already registered\n// the previous handler will be silently overwriten.", "docstring_tokens": ["RegisterHandlerForIdentity", "registers", "the", "given", "EventHandler", "for", "the", "given", "Entity", "Identity", ".", "You", "can", "pass", "the", "bambou", ".", "AllIdentity", "as", "identity", "to", "register", "the", "handler", "for", "all", "events", ".", "If", "you", "pass", "a", "handler", "for", "an", "Identity", "that", "is", "already", "registered", "the", "previous", "handler", "will", "be", "silently", "overwriten", "."], "sha": "983799055125d5e8e9f312899147be457c1b8ec9", "url": "https://github.com/nuagenetworks/go-bambou/blob/983799055125d5e8e9f312899147be457c1b8ec9/bambou/pushcenter.go#L70-L78", "partition": "valid"} +{"repo": "nuagenetworks/go-bambou", "path": "bambou/pushcenter.go", "func_name": "UnregisterHandlerForIdentity", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnregisterHandlerForIdentity unegisters the given EventHandler for the given Entity Identity.", "docstring_tokens": ["UnregisterHandlerForIdentity", "unegisters", "the", "given", "EventHandler", "for", "the", "given", "Entity", "Identity", "."], "sha": "983799055125d5e8e9f312899147be457c1b8ec9", "url": "https://github.com/nuagenetworks/go-bambou/blob/983799055125d5e8e9f312899147be457c1b8ec9/bambou/pushcenter.go#L81-L91", "partition": "valid"} +{"repo": "nuagenetworks/go-bambou", "path": "bambou/pushcenter.go", "func_name": "HasHandlerForIdentity", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasHandlerForIdentity verifies if the given identity has a registered handler.", "docstring_tokens": ["HasHandlerForIdentity", "verifies", "if", "the", "given", "identity", "has", "a", "registered", "handler", "."], "sha": "983799055125d5e8e9f312899147be457c1b8ec9", "url": "https://github.com/nuagenetworks/go-bambou/blob/983799055125d5e8e9f312899147be457c1b8ec9/bambou/pushcenter.go#L94-L101", "partition": "valid"} +{"repo": "nuagenetworks/go-bambou", "path": "bambou/pushcenter.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start starts the Push Center.", "docstring_tokens": ["Start", "starts", "the", "Push", "Center", "."], "sha": "983799055125d5e8e9f312899147be457c1b8ec9", "url": "https://github.com/nuagenetworks/go-bambou/blob/983799055125d5e8e9f312899147be457c1b8ec9/bambou/pushcenter.go#L104-L142", "partition": "valid"} +{"repo": "nuagenetworks/go-bambou", "path": "bambou/pushcenter.go", "func_name": "Stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stop stops a running PushCenter.", "docstring_tokens": ["Stop", "stops", "a", "running", "PushCenter", "."], "sha": "983799055125d5e8e9f312899147be457c1b8ec9", "url": "https://github.com/nuagenetworks/go-bambou/blob/983799055125d5e8e9f312899147be457c1b8ec9/bambou/pushcenter.go#L145-L155", "partition": "valid"} +{"repo": "nuagenetworks/go-bambou", "path": "bambou/logger.go", "func_name": "Logger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Logger returns the defaut Bambou logger.", "docstring_tokens": ["Logger", "returns", "the", "defaut", "Bambou", "logger", "."], "sha": "983799055125d5e8e9f312899147be457c1b8ec9", "url": "https://github.com/nuagenetworks/go-bambou/blob/983799055125d5e8e9f312899147be457c1b8ec9/bambou/logger.go#L33-L42", "partition": "valid"} +{"repo": "nuagenetworks/go-bambou", "path": "bambou/fetchinginfo.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns the string representation of the FetchingInfo.", "docstring_tokens": ["String", "returns", "the", "string", "representation", "of", "the", "FetchingInfo", "."], "sha": "983799055125d5e8e9f312899147be457c1b8ec9", "url": "https://github.com/nuagenetworks/go-bambou/blob/983799055125d5e8e9f312899147be457c1b8ec9/bambou/fetchinginfo.go#L53-L56", "partition": "valid"} +{"repo": "bsm/instruments", "path": "datadog/datadog.go", "func_name": "NewClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClient creates a new API client.", "docstring_tokens": ["NewClient", "creates", "a", "new", "API", "client", "."], "sha": "fb31d30b31aa781394ed30a5df2881722d70e251", "url": "https://github.com/bsm/instruments/blob/fb31d30b31aa781394ed30a5df2881722d70e251/datadog/datadog.go#L40-L56", "partition": "valid"} +{"repo": "bsm/instruments", "path": "datadog/datadog.go", "func_name": "Post", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Post delivers a metrics snapshot to datadog", "docstring_tokens": ["Post", "delivers", "a", "metrics", "snapshot", "to", "datadog"], "sha": "fb31d30b31aa781394ed30a5df2881722d70e251", "url": "https://github.com/bsm/instruments/blob/fb31d30b31aa781394ed30a5df2881722d70e251/datadog/datadog.go#L59-L85", "partition": "valid"} +{"repo": "bsm/instruments", "path": "util.go", "func_name": "MetricID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MetricID takes a name and tags and generates a consistent\n// metric identifier", "docstring_tokens": ["MetricID", "takes", "a", "name", "and", "tags", "and", "generates", "a", "consistent", "metric", "identifier"], "sha": "fb31d30b31aa781394ed30a5df2881722d70e251", "url": "https://github.com/bsm/instruments/blob/fb31d30b31aa781394ed30a5df2881722d70e251/util.go#L13-L19", "partition": "valid"} +{"repo": "bsm/instruments", "path": "util.go", "func_name": "SplitMetricID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SplitMetricID takes a metric ID ans splits it into\n// name and tags", "docstring_tokens": ["SplitMetricID", "takes", "a", "metric", "ID", "ans", "splits", "it", "into", "name", "and", "tags"], "sha": "fb31d30b31aa781394ed30a5df2881722d70e251", "url": "https://github.com/bsm/instruments/blob/fb31d30b31aa781394ed30a5df2881722d70e251/util.go#L23-L33", "partition": "valid"} +{"repo": "bsm/instruments", "path": "instruments.go", "func_name": "NewRateScale", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRateScale creates a new rate instruments with the given unit.", "docstring_tokens": ["NewRateScale", "creates", "a", "new", "rate", "instruments", "with", "the", "given", "unit", "."], "sha": "fb31d30b31aa781394ed30a5df2881722d70e251", "url": "https://github.com/bsm/instruments/blob/fb31d30b31aa781394ed30a5df2881722d70e251/instruments.go#L80-L85", "partition": "valid"} +{"repo": "bsm/instruments", "path": "instruments.go", "func_name": "Snapshot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Snapshot returns the number of values per second since the last snapshot,\n// and reset the count to zero.", "docstring_tokens": ["Snapshot", "returns", "the", "number", "of", "values", "per", "second", "since", "the", "last", "snapshot", "and", "reset", "the", "count", "to", "zero", "."], "sha": "fb31d30b31aa781394ed30a5df2881722d70e251", "url": "https://github.com/bsm/instruments/blob/fb31d30b31aa781394ed30a5df2881722d70e251/instruments.go#L94-L98", "partition": "valid"} +{"repo": "bsm/instruments", "path": "instruments.go", "func_name": "NewDeriveScale", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDeriveScale creates a new derive instruments with the given unit.", "docstring_tokens": ["NewDeriveScale", "creates", "a", "new", "derive", "instruments", "with", "the", "given", "unit", "."], "sha": "fb31d30b31aa781394ed30a5df2881722d70e251", "url": "https://github.com/bsm/instruments/blob/fb31d30b31aa781394ed30a5df2881722d70e251/instruments.go#L114-L122", "partition": "valid"} +{"repo": "bsm/instruments", "path": "instruments.go", "func_name": "Update", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Update update rate value based on the stored previous value.", "docstring_tokens": ["Update", "update", "rate", "value", "based", "on", "the", "stored", "previous", "value", "."], "sha": "fb31d30b31aa781394ed30a5df2881722d70e251", "url": "https://github.com/bsm/instruments/blob/fb31d30b31aa781394ed30a5df2881722d70e251/instruments.go#L125-L128", "partition": "valid"} +{"repo": "bsm/instruments", "path": "instruments.go", "func_name": "Snapshot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Snapshot returns a Distribution", "docstring_tokens": ["Snapshot", "returns", "a", "Distribution"], "sha": "fb31d30b31aa781394ed30a5df2881722d70e251", "url": "https://github.com/bsm/instruments/blob/fb31d30b31aa781394ed30a5df2881722d70e251/instruments.go#L160-L166", "partition": "valid"} +{"repo": "bsm/instruments", "path": "instruments.go", "func_name": "Update", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Update updates the current stored value.", "docstring_tokens": ["Update", "updates", "the", "current", "stored", "value", "."], "sha": "fb31d30b31aa781394ed30a5df2881722d70e251", "url": "https://github.com/bsm/instruments/blob/fb31d30b31aa781394ed30a5df2881722d70e251/instruments.go#L181-L183", "partition": "valid"} +{"repo": "bsm/instruments", "path": "instruments.go", "func_name": "Snapshot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Snapshot returns the current value.", "docstring_tokens": ["Snapshot", "returns", "the", "current", "value", "."], "sha": "fb31d30b31aa781394ed30a5df2881722d70e251", "url": "https://github.com/bsm/instruments/blob/fb31d30b31aa781394ed30a5df2881722d70e251/instruments.go#L186-L189", "partition": "valid"} +{"repo": "bsm/instruments", "path": "registry.go", "func_name": "NewUnstarted", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New creates a new Registry without a background flush thread.", "docstring_tokens": ["New", "creates", "a", "new", "Registry", "without", "a", "background", "flush", "thread", "."], "sha": "fb31d30b31aa781394ed30a5df2881722d70e251", "url": "https://github.com/bsm/instruments/blob/fb31d30b31aa781394ed30a5df2881722d70e251/registry.go#L51-L57", "partition": "valid"} +{"repo": "bsm/instruments", "path": "registry.go", "func_name": "Subscribe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Subscribe attaches a reporter to the Registry.", "docstring_tokens": ["Subscribe", "attaches", "a", "reporter", "to", "the", "Registry", "."], "sha": "fb31d30b31aa781394ed30a5df2881722d70e251", "url": "https://github.com/bsm/instruments/blob/fb31d30b31aa781394ed30a5df2881722d70e251/registry.go#L60-L64", "partition": "valid"} +{"repo": "bsm/instruments", "path": "registry.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get returns an instrument from the Registry.", "docstring_tokens": ["Get", "returns", "an", "instrument", "from", "the", "Registry", "."], "sha": "fb31d30b31aa781394ed30a5df2881722d70e251", "url": "https://github.com/bsm/instruments/blob/fb31d30b31aa781394ed30a5df2881722d70e251/registry.go#L67-L73", "partition": "valid"} +{"repo": "bsm/instruments", "path": "registry.go", "func_name": "Register", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Register registers a new instrument.", "docstring_tokens": ["Register", "registers", "a", "new", "instrument", "."], "sha": "fb31d30b31aa781394ed30a5df2881722d70e251", "url": "https://github.com/bsm/instruments/blob/fb31d30b31aa781394ed30a5df2881722d70e251/registry.go#L76-L84", "partition": "valid"} +{"repo": "bsm/instruments", "path": "registry.go", "func_name": "Fetch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fetch returns an instrument from the Registry or creates a new one\n// using the provided factory.", "docstring_tokens": ["Fetch", "returns", "an", "instrument", "from", "the", "Registry", "or", "creates", "a", "new", "one", "using", "the", "provided", "factory", "."], "sha": "fb31d30b31aa781394ed30a5df2881722d70e251", "url": "https://github.com/bsm/instruments/blob/fb31d30b31aa781394ed30a5df2881722d70e251/registry.go#L96-L116", "partition": "valid"} +{"repo": "bsm/instruments", "path": "registry.go", "func_name": "Size", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Size returns the numbers of instruments in the registry.", "docstring_tokens": ["Size", "returns", "the", "numbers", "of", "instruments", "in", "the", "registry", "."], "sha": "fb31d30b31aa781394ed30a5df2881722d70e251", "url": "https://github.com/bsm/instruments/blob/fb31d30b31aa781394ed30a5df2881722d70e251/registry.go#L119-L124", "partition": "valid"} +{"repo": "bsm/instruments", "path": "registry.go", "func_name": "Tags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Tags returns global registry tags", "docstring_tokens": ["Tags", "returns", "global", "registry", "tags"], "sha": "fb31d30b31aa781394ed30a5df2881722d70e251", "url": "https://github.com/bsm/instruments/blob/fb31d30b31aa781394ed30a5df2881722d70e251/registry.go#L178-L183", "partition": "valid"} +{"repo": "bsm/instruments", "path": "registry.go", "func_name": "SetTags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetTags allows to set tags", "docstring_tokens": ["SetTags", "allows", "to", "set", "tags"], "sha": "fb31d30b31aa781394ed30a5df2881722d70e251", "url": "https://github.com/bsm/instruments/blob/fb31d30b31aa781394ed30a5df2881722d70e251/registry.go#L186-L190", "partition": "valid"} +{"repo": "bsm/instruments", "path": "registry.go", "func_name": "AddTags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddTags allows to add tags", "docstring_tokens": ["AddTags", "allows", "to", "add", "tags"], "sha": "fb31d30b31aa781394ed30a5df2881722d70e251", "url": "https://github.com/bsm/instruments/blob/fb31d30b31aa781394ed30a5df2881722d70e251/registry.go#L193-L197", "partition": "valid"} +{"repo": "bsm/instruments", "path": "registry.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close flushes all pending data to reporters\n// and releases resources.", "docstring_tokens": ["Close", "flushes", "all", "pending", "data", "to", "reporters", "and", "releases", "resources", "."], "sha": "fb31d30b31aa781394ed30a5df2881722d70e251", "url": "https://github.com/bsm/instruments/blob/fb31d30b31aa781394ed30a5df2881722d70e251/registry.go#L201-L207", "partition": "valid"} +{"repo": "bsm/instruments", "path": "datadog/reporter.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New creates a new reporter.", "docstring_tokens": ["New", "creates", "a", "new", "reporter", "."], "sha": "fb31d30b31aa781394ed30a5df2881722d70e251", "url": "https://github.com/bsm/instruments/blob/fb31d30b31aa781394ed30a5df2881722d70e251/datadog/reporter.go#L29-L37", "partition": "valid"} +{"repo": "bsm/instruments", "path": "datadog/reporter.go", "func_name": "Metric", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Metric appends a new metric to the reporter. The value v must be either an\n// int64 or float64, otherwise an error is returned", "docstring_tokens": ["Metric", "appends", "a", "new", "metric", "to", "the", "reporter", ".", "The", "value", "v", "must", "be", "either", "an", "int64", "or", "float64", "otherwise", "an", "error", "is", "returned"], "sha": "fb31d30b31aa781394ed30a5df2881722d70e251", "url": "https://github.com/bsm/instruments/blob/fb31d30b31aa781394ed30a5df2881722d70e251/datadog/reporter.go#L47-L54", "partition": "valid"} +{"repo": "osiloke/gostore", "path": "rethink.go", "func_name": "FilterBefore", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//FilterBefore returns rows created before a provided key. It accepts a filter and result shaping arguments", "docstring_tokens": ["FilterBefore", "returns", "rows", "created", "before", "a", "provided", "key", ".", "It", "accepts", "a", "filter", "and", "result", "shaping", "arguments"], "sha": "cbd41f2bd9ef0bd1290c6dc347882845b5268f6b", "url": "https://github.com/osiloke/gostore/blob/cbd41f2bd9ef0bd1290c6dc347882845b5268f6b/rethink.go#L535-L552", "partition": "valid"} +{"repo": "abiosoft/goutils", "path": "env/env.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set sets the environment key to value.", "docstring_tokens": ["Set", "sets", "the", "environment", "key", "to", "value", "."], "sha": "af27f2043be5f6bf2388ddb35cc93a70b9037365", "url": "https://github.com/abiosoft/goutils/blob/af27f2043be5f6bf2388ddb35cc93a70b9037365/env/env.go#L14-L27", "partition": "valid"} +{"repo": "abiosoft/goutils", "path": "env/env.go", "func_name": "SetStr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetStr sets environment variable from key=val string format.", "docstring_tokens": ["SetStr", "sets", "environment", "variable", "from", "key", "=", "val", "string", "format", "."], "sha": "af27f2043be5f6bf2388ddb35cc93a70b9037365", "url": "https://github.com/abiosoft/goutils/blob/af27f2043be5f6bf2388ddb35cc93a70b9037365/env/env.go#L30-L35", "partition": "valid"} +{"repo": "abiosoft/goutils", "path": "env/env.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get retrieves the environment variable key", "docstring_tokens": ["Get", "retrieves", "the", "environment", "variable", "key"], "sha": "af27f2043be5f6bf2388ddb35cc93a70b9037365", "url": "https://github.com/abiosoft/goutils/blob/af27f2043be5f6bf2388ddb35cc93a70b9037365/env/env.go#L38-L49", "partition": "valid"} +{"repo": "abiosoft/goutils", "path": "env/env.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns key=val format of the environment variables.\n// Each on a line.", "docstring_tokens": ["String", "returns", "key", "=", "val", "format", "of", "the", "environment", "variables", ".", "Each", "on", "a", "line", "."], "sha": "af27f2043be5f6bf2388ddb35cc93a70b9037365", "url": "https://github.com/abiosoft/goutils/blob/af27f2043be5f6bf2388ddb35cc93a70b9037365/env/env.go#L53-L63", "partition": "valid"} +{"repo": "abiosoft/goutils", "path": "set/set.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add adds a value to the set.", "docstring_tokens": ["Add", "adds", "a", "value", "to", "the", "set", "."], "sha": "af27f2043be5f6bf2388ddb35cc93a70b9037365", "url": "https://github.com/abiosoft/goutils/blob/af27f2043be5f6bf2388ddb35cc93a70b9037365/set/set.go#L22-L26", "partition": "valid"} +{"repo": "abiosoft/goutils", "path": "set/set.go", "func_name": "AddAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddAll adds all values to the set distinctly.", "docstring_tokens": ["AddAll", "adds", "all", "values", "to", "the", "set", "distinctly", "."], "sha": "af27f2043be5f6bf2388ddb35cc93a70b9037365", "url": "https://github.com/abiosoft/goutils/blob/af27f2043be5f6bf2388ddb35cc93a70b9037365/set/set.go#L29-L35", "partition": "valid"} +{"repo": "abiosoft/goutils", "path": "set/set.go", "func_name": "Remove", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Remove removes value from the set if it exists in the set.", "docstring_tokens": ["Remove", "removes", "value", "from", "the", "set", "if", "it", "exists", "in", "the", "set", "."], "sha": "af27f2043be5f6bf2388ddb35cc93a70b9037365", "url": "https://github.com/abiosoft/goutils/blob/af27f2043be5f6bf2388ddb35cc93a70b9037365/set/set.go#L43-L47", "partition": "valid"} +{"repo": "abiosoft/goutils", "path": "set/set.go", "func_name": "RemoveAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveAll removes all values from the set if they exist in the set.", "docstring_tokens": ["RemoveAll", "removes", "all", "values", "from", "the", "set", "if", "they", "exist", "in", "the", "set", "."], "sha": "af27f2043be5f6bf2388ddb35cc93a70b9037365", "url": "https://github.com/abiosoft/goutils/blob/af27f2043be5f6bf2388ddb35cc93a70b9037365/set/set.go#L50-L56", "partition": "valid"} +{"repo": "abiosoft/goutils", "path": "set/set.go", "func_name": "Contains", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Contains check if value exists in the set.", "docstring_tokens": ["Contains", "check", "if", "value", "exists", "in", "the", "set", "."], "sha": "af27f2043be5f6bf2388ddb35cc93a70b9037365", "url": "https://github.com/abiosoft/goutils/blob/af27f2043be5f6bf2388ddb35cc93a70b9037365/set/set.go#L65-L70", "partition": "valid"} +{"repo": "abiosoft/goutils", "path": "set/set.go", "func_name": "ContainsAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainsAll checks if all values exist in the set.", "docstring_tokens": ["ContainsAll", "checks", "if", "all", "values", "exist", "in", "the", "set", "."], "sha": "af27f2043be5f6bf2388ddb35cc93a70b9037365", "url": "https://github.com/abiosoft/goutils/blob/af27f2043be5f6bf2388ddb35cc93a70b9037365/set/set.go#L73-L83", "partition": "valid"} +{"repo": "abiosoft/goutils", "path": "set/set.go", "func_name": "ContainsFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainsFunc iterates all the items in the set and passes\n// each to f. It returns true the first time a call to f returns\n// true and false if no call to f returns true.", "docstring_tokens": ["ContainsFunc", "iterates", "all", "the", "items", "in", "the", "set", "and", "passes", "each", "to", "f", ".", "It", "returns", "true", "the", "first", "time", "a", "call", "to", "f", "returns", "true", "and", "false", "if", "no", "call", "to", "f", "returns", "true", "."], "sha": "af27f2043be5f6bf2388ddb35cc93a70b9037365", "url": "https://github.com/abiosoft/goutils/blob/af27f2043be5f6bf2388ddb35cc93a70b9037365/set/set.go#L93-L102", "partition": "valid"} +{"repo": "abiosoft/goutils", "path": "set/set.go", "func_name": "Clear", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Clear empties the set.", "docstring_tokens": ["Clear", "empties", "the", "set", "."], "sha": "af27f2043be5f6bf2388ddb35cc93a70b9037365", "url": "https://github.com/abiosoft/goutils/blob/af27f2043be5f6bf2388ddb35cc93a70b9037365/set/set.go#L112-L116", "partition": "valid"} +{"repo": "abiosoft/goutils", "path": "set/set.go", "func_name": "Iterator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Iterator returns a new Iterator to iterate through values in the set.\n// Each call to this method creates a new Iterator. Therefore, the\n// returned Iterator should be assigned to a variable before usage.\n//\n// It is safe to create and use multiple Iterators in multiple goroutines.", "docstring_tokens": ["Iterator", "returns", "a", "new", "Iterator", "to", "iterate", "through", "values", "in", "the", "set", ".", "Each", "call", "to", "this", "method", "creates", "a", "new", "Iterator", ".", "Therefore", "the", "returned", "Iterator", "should", "be", "assigned", "to", "a", "variable", "before", "usage", ".", "It", "is", "safe", "to", "create", "and", "use", "multiple", "Iterators", "in", "multiple", "goroutines", "."], "sha": "af27f2043be5f6bf2388ddb35cc93a70b9037365", "url": "https://github.com/abiosoft/goutils/blob/af27f2043be5f6bf2388ddb35cc93a70b9037365/set/set.go#L123-L135", "partition": "valid"} +{"repo": "abiosoft/goutils", "path": "set/set.go", "func_name": "Items", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Items returns a slice of all items in the set.\n// Modification to the returned slice does not affect the structure of\n// the set. However, any item in the set that is a pointer will be affected\n// if modified.", "docstring_tokens": ["Items", "returns", "a", "slice", "of", "all", "items", "in", "the", "set", ".", "Modification", "to", "the", "returned", "slice", "does", "not", "affect", "the", "structure", "of", "the", "set", ".", "However", "any", "item", "in", "the", "set", "that", "is", "a", "pointer", "will", "be", "affected", "if", "modified", "."], "sha": "af27f2043be5f6bf2388ddb35cc93a70b9037365", "url": "https://github.com/abiosoft/goutils/blob/af27f2043be5f6bf2388ddb35cc93a70b9037365/set/set.go#L159-L169", "partition": "valid"} +{"repo": "abiosoft/goutils", "path": "set/set.go", "func_name": "ItemsFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ItemsFunc returns slice of all items that when passed to f, f returns true.\n// Modification to the returned slice does not affect the structure of\n// the set. However, any item in the set that is a pointer will be affected\n// if modified.", "docstring_tokens": ["ItemsFunc", "returns", "slice", "of", "all", "items", "that", "when", "passed", "to", "f", "f", "returns", "true", ".", "Modification", "to", "the", "returned", "slice", "does", "not", "affect", "the", "structure", "of", "the", "set", ".", "However", "any", "item", "in", "the", "set", "that", "is", "a", "pointer", "will", "be", "affected", "if", "modified", "."], "sha": "af27f2043be5f6bf2388ddb35cc93a70b9037365", "url": "https://github.com/abiosoft/goutils/blob/af27f2043be5f6bf2388ddb35cc93a70b9037365/set/set.go#L175-L185", "partition": "valid"} +{"repo": "Luzifer/go-holidays", "path": "holidays/holidays_us.go", "func_name": "fixWeekend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// If a holiday falls on a Saturday it is celebrated the preceding Friday;\n// if a holiday falls on a Sunday it is celebrated the following Monday.", "docstring_tokens": ["If", "a", "holiday", "falls", "on", "a", "Saturday", "it", "is", "celebrated", "the", "preceding", "Friday", ";", "if", "a", "holiday", "falls", "on", "a", "Sunday", "it", "is", "celebrated", "the", "following", "Monday", "."], "sha": "01d15a76cb89fcc701ac25eee25068f87825c503", "url": "https://github.com/Luzifer/go-holidays/blob/01d15a76cb89fcc701ac25eee25068f87825c503/holidays/holidays_us.go#L36-L45", "partition": "valid"} +{"repo": "Luzifer/go-holidays", "path": "holidays/holiday.go", "func_name": "GetHolidays", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetHolidays returns the holidays for the given ISO 3166-2 countryCode and year", "docstring_tokens": ["GetHolidays", "returns", "the", "holidays", "for", "the", "given", "ISO", "3166", "-", "2", "countryCode", "and", "year"], "sha": "01d15a76cb89fcc701ac25eee25068f87825c503", "url": "https://github.com/Luzifer/go-holidays/blob/01d15a76cb89fcc701ac25eee25068f87825c503/holidays/holiday.go#L56-L76", "partition": "valid"} +{"repo": "narup/gconfig", "path": "gconfig.go", "func_name": "GetInt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetInt returns int value for the given key", "docstring_tokens": ["GetInt", "returns", "int", "value", "for", "the", "given", "key"], "sha": "11dc8028576700914fe5ecf31d08eb7b6ece276d", "url": "https://github.com/narup/gconfig/blob/11dc8028576700914fe5ecf31d08eb7b6ece276d/gconfig.go#L79-L82", "partition": "valid"} +{"repo": "narup/gconfig", "path": "gconfig.go", "func_name": "GetFloat", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetFloat returns float value for the given key", "docstring_tokens": ["GetFloat", "returns", "float", "value", "for", "the", "given", "key"], "sha": "11dc8028576700914fe5ecf31d08eb7b6ece276d", "url": "https://github.com/narup/gconfig/blob/11dc8028576700914fe5ecf31d08eb7b6ece276d/gconfig.go#L85-L88", "partition": "valid"} +{"repo": "narup/gconfig", "path": "gconfig.go", "func_name": "GetBool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetBool returns bool value for the given key", "docstring_tokens": ["GetBool", "returns", "bool", "value", "for", "the", "given", "key"], "sha": "11dc8028576700914fe5ecf31d08eb7b6ece276d", "url": "https://github.com/narup/gconfig/blob/11dc8028576700914fe5ecf31d08eb7b6ece276d/gconfig.go#L91-L94", "partition": "valid"} +{"repo": "narup/gconfig", "path": "gconfig.go", "func_name": "Exists", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Exists checks if key exists", "docstring_tokens": ["Exists", "checks", "if", "key", "exists"], "sha": "11dc8028576700914fe5ecf31d08eb7b6ece276d", "url": "https://github.com/narup/gconfig/blob/11dc8028576700914fe5ecf31d08eb7b6ece276d/gconfig.go#L97-L103", "partition": "valid"} +{"repo": "narup/gconfig", "path": "gconfig.go", "func_name": "getValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getValue gets the raw value for a given key", "docstring_tokens": ["getValue", "gets", "the", "raw", "value", "for", "a", "given", "key"], "sha": "11dc8028576700914fe5ecf31d08eb7b6ece276d", "url": "https://github.com/narup/gconfig/blob/11dc8028576700914fe5ecf31d08eb7b6ece276d/gconfig.go#L118-L128", "partition": "valid"} +{"repo": "narup/gconfig", "path": "gconfig.go", "func_name": "Load", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Load reads all the properties and creates GConfig representation. It loads\n// config data based on passed in flags or environment variables. If none is\n// defined it uses default values.", "docstring_tokens": ["Load", "reads", "all", "the", "properties", "and", "creates", "GConfig", "representation", ".", "It", "loads", "config", "data", "based", "on", "passed", "in", "flags", "or", "environment", "variables", ".", "If", "none", "is", "defined", "it", "uses", "default", "values", "."], "sha": "11dc8028576700914fe5ecf31d08eb7b6ece276d", "url": "https://github.com/narup/gconfig/blob/11dc8028576700914fe5ecf31d08eb7b6ece276d/gconfig.go#L154-L197", "partition": "valid"} +{"repo": "narup/gconfig", "path": "gconfig.go", "func_name": "loadPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Check if location of config or properties file is set in the env variable\n//if no path is specified it will use the current directory", "docstring_tokens": ["Check", "if", "location", "of", "config", "or", "properties", "file", "is", "set", "in", "the", "env", "variable", "if", "no", "path", "is", "specified", "it", "will", "use", "the", "current", "directory"], "sha": "11dc8028576700914fe5ecf31d08eb7b6ece276d", "url": "https://github.com/narup/gconfig/blob/11dc8028576700914fe5ecf31d08eb7b6ece276d/gconfig.go#L247-L267", "partition": "valid"} +{"repo": "xyproto/mime", "path": "mime.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New creates a new Reader. The filename is a list of mimetypes and extensions.\n// If utf8 is true, \"; charset=utf-8\" will be added when setting http headers.", "docstring_tokens": ["New", "creates", "a", "new", "Reader", ".", "The", "filename", "is", "a", "list", "of", "mimetypes", "and", "extensions", ".", "If", "utf8", "is", "true", ";", "charset", "=", "utf", "-", "8", "will", "be", "added", "when", "setting", "http", "headers", "."], "sha": "f1da6d4ca4c9c872010240886cd72463be33b698", "url": "https://github.com/xyproto/mime/blob/f1da6d4ca4c9c872010240886cd72463be33b698/mime.go#L66-L68", "partition": "valid"} +{"repo": "xyproto/mime", "path": "mime.go", "func_name": "readMimetypes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read a mimetype text file. Return a hash map from ext to mimetype.", "docstring_tokens": ["Read", "a", "mimetype", "text", "file", ".", "Return", "a", "hash", "map", "from", "ext", "to", "mimetype", "."], "sha": "f1da6d4ca4c9c872010240886cd72463be33b698", "url": "https://github.com/xyproto/mime/blob/f1da6d4ca4c9c872010240886cd72463be33b698/mime.go#L71-L88", "partition": "valid"} +{"repo": "xyproto/mime", "path": "mime.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get returns the mimetype, or an empty string if no mimetype or mimetype source is found", "docstring_tokens": ["Get", "returns", "the", "mimetype", "or", "an", "empty", "string", "if", "no", "mimetype", "or", "mimetype", "source", "is", "found"], "sha": "f1da6d4ca4c9c872010240886cd72463be33b698", "url": "https://github.com/xyproto/mime/blob/f1da6d4ca4c9c872010240886cd72463be33b698/mime.go#L91-L124", "partition": "valid"} +{"repo": "xyproto/mime", "path": "mime.go", "func_name": "SetHeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetHeader sets the Content-Type for a given ResponseWriter and filename extension", "docstring_tokens": ["SetHeader", "sets", "the", "Content", "-", "Type", "for", "a", "given", "ResponseWriter", "and", "filename", "extension"], "sha": "f1da6d4ca4c9c872010240886cd72463be33b698", "url": "https://github.com/xyproto/mime/blob/f1da6d4ca4c9c872010240886cd72463be33b698/mime.go#L127-L137", "partition": "valid"} +{"repo": "pivotalservices/gtils", "path": "http/get_file_size.go", "func_name": "GetFileSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//GetFileSize - gets the filesize of a given path", "docstring_tokens": ["GetFileSize", "-", "gets", "the", "filesize", "of", "a", "given", "path"], "sha": "39e672ca7b9b4599009bdc3c8d67aff081da9dd7", "url": "https://github.com/pivotalservices/gtils/blob/39e672ca7b9b4599009bdc3c8d67aff081da9dd7/http/get_file_size.go#L6-L21", "partition": "valid"} +{"repo": "neptulon/neptulon", "path": "server.go", "func_name": "ListenAndServe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListenAndServe starts the Neptulon server. This function blocks until server is closed.", "docstring_tokens": ["ListenAndServe", "starts", "the", "Neptulon", "server", ".", "This", "function", "blocks", "until", "server", "is", "closed", "."], "sha": "1397d36ae289dbd9f065ab9dadccf47ce54d3aac", "url": "https://github.com/neptulon/neptulon/blob/1397d36ae289dbd9f065ab9dadccf47ce54d3aac/server.go#L97-L122", "partition": "valid"} +{"repo": "neptulon/neptulon", "path": "server.go", "func_name": "SendRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SendRequest sends a JSON-RPC request through the connection denoted by the connection ID with an auto generated request ID.\n// resHandler is called when a response is returned.", "docstring_tokens": ["SendRequest", "sends", "a", "JSON", "-", "RPC", "request", "through", "the", "connection", "denoted", "by", "the", "connection", "ID", "with", "an", "auto", "generated", "request", "ID", ".", "resHandler", "is", "called", "when", "a", "response", "is", "returned", "."], "sha": "1397d36ae289dbd9f065ab9dadccf47ce54d3aac", "url": "https://github.com/neptulon/neptulon/blob/1397d36ae289dbd9f065ab9dadccf47ce54d3aac/server.go#L126-L139", "partition": "valid"} +{"repo": "neptulon/neptulon", "path": "server.go", "func_name": "SendRequestArr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SendRequestArr sends a JSON-RPC request through the connection denoted by the connection ID, with array params and auto generated request ID.\n// resHandler is called when a response is returned.", "docstring_tokens": ["SendRequestArr", "sends", "a", "JSON", "-", "RPC", "request", "through", "the", "connection", "denoted", "by", "the", "connection", "ID", "with", "array", "params", "and", "auto", "generated", "request", "ID", ".", "resHandler", "is", "called", "when", "a", "response", "is", "returned", "."], "sha": "1397d36ae289dbd9f065ab9dadccf47ce54d3aac", "url": "https://github.com/neptulon/neptulon/blob/1397d36ae289dbd9f065ab9dadccf47ce54d3aac/server.go#L143-L145", "partition": "valid"} +{"repo": "neptulon/neptulon", "path": "server.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close closes the network listener and the active connections.", "docstring_tokens": ["Close", "closes", "the", "network", "listener", "and", "the", "active", "connections", "."], "sha": "1397d36ae289dbd9f065ab9dadccf47ce54d3aac", "url": "https://github.com/neptulon/neptulon/blob/1397d36ae289dbd9f065ab9dadccf47ce54d3aac/server.go#L148-L167", "partition": "valid"} +{"repo": "neptulon/neptulon", "path": "server.go", "func_name": "wsConnHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// wsHandler handles incoming websocket connections.", "docstring_tokens": ["wsHandler", "handles", "incoming", "websocket", "connections", "."], "sha": "1397d36ae289dbd9f065ab9dadccf47ce54d3aac", "url": "https://github.com/neptulon/neptulon/blob/1397d36ae289dbd9f065ab9dadccf47ce54d3aac/server.go#L177-L195", "partition": "valid"} +{"repo": "pivotalservices/gtils", "path": "storage/s3.go", "func_name": "SafeCreateS3Bucket", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//SafeCreateS3Bucket creates an s3 bucket for storing files to an s3-compatible blobstore", "docstring_tokens": ["SafeCreateS3Bucket", "creates", "an", "s3", "bucket", "for", "storing", "files", "to", "an", "s3", "-", "compatible", "blobstore"], "sha": "39e672ca7b9b4599009bdc3c8d67aff081da9dd7", "url": "https://github.com/pivotalservices/gtils/blob/39e672ca7b9b4599009bdc3c8d67aff081da9dd7/storage/s3.go#L21-L49", "partition": "valid"} +{"repo": "pivotalservices/gtils", "path": "storage/s3.go", "func_name": "NewWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//NewWriter - get a new s3 writer", "docstring_tokens": ["NewWriter", "-", "get", "a", "new", "s3", "writer"], "sha": "39e672ca7b9b4599009bdc3c8d67aff081da9dd7", "url": "https://github.com/pivotalservices/gtils/blob/39e672ca7b9b4599009bdc3c8d67aff081da9dd7/storage/s3.go#L52-L54", "partition": "valid"} +{"repo": "pivotalservices/gtils", "path": "storage/s3.go", "func_name": "NewReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//NewReader - get a new s3 reader", "docstring_tokens": ["NewReader", "-", "get", "a", "new", "s3", "reader"], "sha": "39e672ca7b9b4599009bdc3c8d67aff081da9dd7", "url": "https://github.com/pivotalservices/gtils/blob/39e672ca7b9b4599009bdc3c8d67aff081da9dd7/storage/s3.go#L57-L60", "partition": "valid"} +{"repo": "pivotalservices/gtils", "path": "storage/s3.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Delete - delete an s3 bucket", "docstring_tokens": ["Delete", "-", "delete", "an", "s3", "bucket"], "sha": "39e672ca7b9b4599009bdc3c8d67aff081da9dd7", "url": "https://github.com/pivotalservices/gtils/blob/39e672ca7b9b4599009bdc3c8d67aff081da9dd7/storage/s3.go#L63-L65", "partition": "valid"} +{"repo": "neptulon/neptulon", "path": "middleware/cert_auth.go", "func_name": "CertAtuh", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CertAtuh is TLS client-certificate authentication.\n// If successful, certificate common name will stored with the key \"userid\" in session.\n// If unsuccessful, connection will be closed right away.", "docstring_tokens": ["CertAtuh", "is", "TLS", "client", "-", "certificate", "authentication", ".", "If", "successful", "certificate", "common", "name", "will", "stored", "with", "the", "key", "userid", "in", "session", ".", "If", "unsuccessful", "connection", "will", "be", "closed", "right", "away", "."], "sha": "1397d36ae289dbd9f065ab9dadccf47ce54d3aac", "url": "https://github.com/neptulon/neptulon/blob/1397d36ae289dbd9f065ab9dadccf47ce54d3aac/middleware/cert_auth.go#L8-L26", "partition": "valid"} +{"repo": "neptulon/neptulon", "path": "ctx.go", "func_name": "Params", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Params reads request parameters into given object.\n// Object should be passed by reference.", "docstring_tokens": ["Params", "reads", "request", "parameters", "into", "given", "object", ".", "Object", "should", "be", "passed", "by", "reference", "."], "sha": "1397d36ae289dbd9f065ab9dadccf47ce54d3aac", "url": "https://github.com/neptulon/neptulon/blob/1397d36ae289dbd9f065ab9dadccf47ce54d3aac/ctx.go#L39-L49", "partition": "valid"} +{"repo": "neptulon/neptulon", "path": "ctx.go", "func_name": "Next", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Next executes the next middleware in the middleware stack.", "docstring_tokens": ["Next", "executes", "the", "next", "middleware", "in", "the", "middleware", "stack", "."], "sha": "1397d36ae289dbd9f065ab9dadccf47ce54d3aac", "url": "https://github.com/neptulon/neptulon/blob/1397d36ae289dbd9f065ab9dadccf47ce54d3aac/ctx.go#L52-L61", "partition": "valid"} +{"repo": "neptulon/neptulon", "path": "ctx.go", "func_name": "Result", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Result reads response result data into given object.\n// Object should be passed by reference.", "docstring_tokens": ["Result", "reads", "response", "result", "data", "into", "given", "object", ".", "Object", "should", "be", "passed", "by", "reference", "."], "sha": "1397d36ae289dbd9f065ab9dadccf47ce54d3aac", "url": "https://github.com/neptulon/neptulon/blob/1397d36ae289dbd9f065ab9dadccf47ce54d3aac/ctx.go#L97-L109", "partition": "valid"} +{"repo": "neptulon/neptulon", "path": "ctx.go", "func_name": "ErrorData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ErrorData reads the error response data into given object.\n// Object should be passed by reference.", "docstring_tokens": ["ErrorData", "reads", "the", "error", "response", "data", "into", "given", "object", ".", "Object", "should", "be", "passed", "by", "reference", "."], "sha": "1397d36ae289dbd9f065ab9dadccf47ce54d3aac", "url": "https://github.com/neptulon/neptulon/blob/1397d36ae289dbd9f065ab9dadccf47ce54d3aac/ctx.go#L113-L125", "partition": "valid"} +{"repo": "ThatsMrTalbot/scaffold", "path": "middleware.go", "func_name": "MiddlewareList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MiddlewareList list creates a single middlware callback from an array", "docstring_tokens": ["MiddlewareList", "list", "creates", "a", "single", "middlware", "callback", "from", "an", "array"], "sha": "464f0ff788e441a27bc3acb920f747306c1dfdee", "url": "https://github.com/ThatsMrTalbot/scaffold/blob/464f0ff788e441a27bc3acb920f747306c1dfdee/middleware.go#L7-L14", "partition": "valid"} +{"repo": "pivotalservices/gtils", "path": "log/logapi.go", "func_name": "LogFactory", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//LogFactory - a log creator", "docstring_tokens": ["LogFactory", "-", "a", "log", "creator"], "sha": "39e672ca7b9b4599009bdc3c8d67aff081da9dd7", "url": "https://github.com/pivotalservices/gtils/blob/39e672ca7b9b4599009bdc3c8d67aff081da9dd7/log/logapi.go#L70-L76", "partition": "valid"} +{"repo": "neptulon/neptulon", "path": "middleware/router.go", "func_name": "NewRouter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRouter creates a new router instance.", "docstring_tokens": ["NewRouter", "creates", "a", "new", "router", "instance", "."], "sha": "1397d36ae289dbd9f065ab9dadccf47ce54d3aac", "url": "https://github.com/neptulon/neptulon/blob/1397d36ae289dbd9f065ab9dadccf47ce54d3aac/middleware/router.go#L11-L13", "partition": "valid"} +{"repo": "neptulon/neptulon", "path": "middleware/router.go", "func_name": "Request", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Request adds a new request route registry.", "docstring_tokens": ["Request", "adds", "a", "new", "request", "route", "registry", "."], "sha": "1397d36ae289dbd9f065ab9dadccf47ce54d3aac", "url": "https://github.com/neptulon/neptulon/blob/1397d36ae289dbd9f065ab9dadccf47ce54d3aac/middleware/router.go#L16-L18", "partition": "valid"} +{"repo": "neptulon/neptulon", "path": "middleware/router.go", "func_name": "Middleware", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Middleware is the Neptulon middleware method.", "docstring_tokens": ["Middleware", "is", "the", "Neptulon", "middleware", "method", "."], "sha": "1397d36ae289dbd9f065ab9dadccf47ce54d3aac", "url": "https://github.com/neptulon/neptulon/blob/1397d36ae289dbd9f065ab9dadccf47ce54d3aac/middleware/router.go#L21-L27", "partition": "valid"} +{"repo": "ThatsMrTalbot/scaffold", "path": "handler.go", "func_name": "NotFound", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NotFound wraps http.NotFound", "docstring_tokens": ["NotFound", "wraps", "http", ".", "NotFound"], "sha": "464f0ff788e441a27bc3acb920f747306c1dfdee", "url": "https://github.com/ThatsMrTalbot/scaffold/blob/464f0ff788e441a27bc3acb920f747306c1dfdee/handler.go#L33-L35", "partition": "valid"} +{"repo": "pivotalservices/gtils", "path": "persistence/mysqldump.go", "func_name": "NewMysqlDump", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//NewMysqlDump - will initialize a mysqldump for local execution", "docstring_tokens": ["NewMysqlDump", "-", "will", "initialize", "a", "mysqldump", "for", "local", "execution"], "sha": "39e672ca7b9b4599009bdc3c8d67aff081da9dd7", "url": "https://github.com/pivotalservices/gtils/blob/39e672ca7b9b4599009bdc3c8d67aff081da9dd7/persistence/mysqldump.go#L13-L22", "partition": "valid"} +{"repo": "pivotalservices/gtils", "path": "persistence/mysqldump.go", "func_name": "NewRemoteMysqlDump", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//NewRemoteMysqlDump - will initialize a mysqldmp for remote execution", "docstring_tokens": ["NewRemoteMysqlDump", "-", "will", "initialize", "a", "mysqldmp", "for", "remote", "execution"], "sha": "39e672ca7b9b4599009bdc3c8d67aff081da9dd7", "url": "https://github.com/pivotalservices/gtils/blob/39e672ca7b9b4599009bdc3c8d67aff081da9dd7/persistence/mysqldump.go#L44-L46", "partition": "valid"} +{"repo": "pivotalservices/gtils", "path": "persistence/mysqldump.go", "func_name": "Import", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Import - will import to mysql from the given reader", "docstring_tokens": ["Import", "-", "will", "import", "to", "mysql", "from", "the", "given", "reader"], "sha": "39e672ca7b9b4599009bdc3c8d67aff081da9dd7", "url": "https://github.com/pivotalservices/gtils/blob/39e672ca7b9b4599009bdc3c8d67aff081da9dd7/persistence/mysqldump.go#L49-L65", "partition": "valid"} +{"repo": "pivotalservices/gtils", "path": "persistence/mysqldump.go", "func_name": "Dump", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Dump - will dump a mysql to the given writer", "docstring_tokens": ["Dump", "-", "will", "dump", "a", "mysql", "to", "the", "given", "writer"], "sha": "39e672ca7b9b4599009bdc3c8d67aff081da9dd7", "url": "https://github.com/pivotalservices/gtils/blob/39e672ca7b9b4599009bdc3c8d67aff081da9dd7/persistence/mysqldump.go#L68-L72", "partition": "valid"} +{"repo": "pivotalservices/gtils", "path": "command/remote_execute.go", "func_name": "NewRemoteExecutor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//NewRemoteExecutor - This method creates executor based on ssh, it has concrete ssh reference", "docstring_tokens": ["NewRemoteExecutor", "-", "This", "method", "creates", "executor", "based", "on", "ssh", "it", "has", "concrete", "ssh", "reference"], "sha": "39e672ca7b9b4599009bdc3c8d67aff081da9dd7", "url": "https://github.com/pivotalservices/gtils/blob/39e672ca7b9b4599009bdc3c8d67aff081da9dd7/command/remote_execute.go#L72-L89", "partition": "valid"} +{"repo": "pivotalservices/gtils", "path": "command/remote_execute.go", "func_name": "Execute", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Execute - Copy the output from a command to the specified io.Writer", "docstring_tokens": ["Execute", "-", "Copy", "the", "output", "from", "a", "command", "to", "the", "specified", "io", ".", "Writer"], "sha": "39e672ca7b9b4599009bdc3c8d67aff081da9dd7", "url": "https://github.com/pivotalservices/gtils/blob/39e672ca7b9b4599009bdc3c8d67aff081da9dd7/command/remote_execute.go#L100-L128", "partition": "valid"} +{"repo": "ThatsMrTalbot/scaffold", "path": "example/hello.go", "func_name": "World", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// World is a handler", "docstring_tokens": ["World", "is", "a", "handler"], "sha": "464f0ff788e441a27bc3acb920f747306c1dfdee", "url": "https://github.com/ThatsMrTalbot/scaffold/blob/464f0ff788e441a27bc3acb920f747306c1dfdee/example/hello.go#L16-L18", "partition": "valid"} +{"repo": "ThatsMrTalbot/scaffold", "path": "example/hello.go", "func_name": "Name", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Name is a handler", "docstring_tokens": ["Name", "is", "a", "handler"], "sha": "464f0ff788e441a27bc3acb920f747306c1dfdee", "url": "https://github.com/ThatsMrTalbot/scaffold/blob/464f0ff788e441a27bc3acb920f747306c1dfdee/example/hello.go#L21-L26", "partition": "valid"} +{"repo": "pivotalservices/gtils", "path": "persistence/pgdump.go", "func_name": "NewPgDump", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//NewPgDump - a pgdump object initialized for local fs", "docstring_tokens": ["NewPgDump", "-", "a", "pgdump", "object", "initialized", "for", "local", "fs"], "sha": "39e672ca7b9b4599009bdc3c8d67aff081da9dd7", "url": "https://github.com/pivotalservices/gtils/blob/39e672ca7b9b4599009bdc3c8d67aff081da9dd7/persistence/pgdump.go#L13-L23", "partition": "valid"} +{"repo": "pivotalservices/gtils", "path": "persistence/pgdump.go", "func_name": "NewPgRemoteDump", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//NewPgRemoteDump - a pgdump initialized for remote fs", "docstring_tokens": ["NewPgRemoteDump", "-", "a", "pgdump", "initialized", "for", "remote", "fs"], "sha": "39e672ca7b9b4599009bdc3c8d67aff081da9dd7", "url": "https://github.com/pivotalservices/gtils/blob/39e672ca7b9b4599009bdc3c8d67aff081da9dd7/persistence/pgdump.go#L41-L43", "partition": "valid"} +{"repo": "pivotalservices/gtils", "path": "persistence/pgdump.go", "func_name": "Import", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Import - allows us to import a pgdmp file in the form of a reader", "docstring_tokens": ["Import", "-", "allows", "us", "to", "import", "a", "pgdmp", "file", "in", "the", "form", "of", "a", "reader"], "sha": "39e672ca7b9b4599009bdc3c8d67aff081da9dd7", "url": "https://github.com/pivotalservices/gtils/blob/39e672ca7b9b4599009bdc3c8d67aff081da9dd7/persistence/pgdump.go#L46-L53", "partition": "valid"} +{"repo": "rendom/ircFormat", "path": "ircFormat.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New creates IrcText object and take your text as argument.", "docstring_tokens": ["New", "creates", "IrcText", "object", "and", "take", "your", "text", "as", "argument", "."], "sha": "9f22378dd803ea25298527f1908d7434d9fa55a6", "url": "https://github.com/rendom/ircFormat/blob/9f22378dd803ea25298527f1908d7434d9fa55a6/ircFormat.go#L45-L47", "partition": "valid"} +{"repo": "rendom/ircFormat", "path": "ircFormat.go", "func_name": "SetFg", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetFg sets foreground color", "docstring_tokens": ["SetFg", "sets", "foreground", "color"], "sha": "9f22378dd803ea25298527f1908d7434d9fa55a6", "url": "https://github.com/rendom/ircFormat/blob/9f22378dd803ea25298527f1908d7434d9fa55a6/ircFormat.go#L50-L53", "partition": "valid"} +{"repo": "rendom/ircFormat", "path": "ircFormat.go", "func_name": "SetBg", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetBg sets background color", "docstring_tokens": ["SetBg", "sets", "background", "color"], "sha": "9f22378dd803ea25298527f1908d7434d9fa55a6", "url": "https://github.com/rendom/ircFormat/blob/9f22378dd803ea25298527f1908d7434d9fa55a6/ircFormat.go#L56-L59", "partition": "valid"} +{"repo": "ThatsMrTalbot/scaffold", "path": "errors/builder.go", "func_name": "HandlerBuilder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HandlerBuilder can be used to create a scaffold.Handler based on a Handler", "docstring_tokens": ["HandlerBuilder", "can", "be", "used", "to", "create", "a", "scaffold", ".", "Handler", "based", "on", "a", "Handler"], "sha": "464f0ff788e441a27bc3acb920f747306c1dfdee", "url": "https://github.com/ThatsMrTalbot/scaffold/blob/464f0ff788e441a27bc3acb920f747306c1dfdee/errors/builder.go#L27-L36", "partition": "valid"} +{"repo": "neptulon/neptulon", "path": "middleware/logger.go", "func_name": "LoggerWithPrefix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoggerWithPrefix appends given prefix to log strings.", "docstring_tokens": ["LoggerWithPrefix", "appends", "given", "prefix", "to", "log", "strings", "."], "sha": "1397d36ae289dbd9f065ab9dadccf47ce54d3aac", "url": "https://github.com/neptulon/neptulon/blob/1397d36ae289dbd9f065ab9dadccf47ce54d3aac/middleware/logger.go#L18-L41", "partition": "valid"} +{"repo": "ThatsMrTalbot/scaffold", "path": "encoding/encoder.go", "func_name": "NewEncoder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewEncoder creates encoder", "docstring_tokens": ["NewEncoder", "creates", "encoder"], "sha": "464f0ff788e441a27bc3acb920f747306c1dfdee", "url": "https://github.com/ThatsMrTalbot/scaffold/blob/464f0ff788e441a27bc3acb920f747306c1dfdee/encoding/encoder.go#L25-L37", "partition": "valid"} +{"repo": "ThatsMrTalbot/scaffold", "path": "encoding/encoder.go", "func_name": "Parser", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Parser returns a parser based on the mime, if none can be matched the\n// default is returned", "docstring_tokens": ["Parser", "returns", "a", "parser", "based", "on", "the", "mime", "if", "none", "can", "be", "matched", "the", "default", "is", "returned"], "sha": "464f0ff788e441a27bc3acb920f747306c1dfdee", "url": "https://github.com/ThatsMrTalbot/scaffold/blob/464f0ff788e441a27bc3acb920f747306c1dfdee/encoding/encoder.go#L41-L54", "partition": "valid"} +{"repo": "ThatsMrTalbot/scaffold", "path": "encoding/encoder.go", "func_name": "Responder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Responder returns a responder based on the mime, if none can be matched the\n// default is returned", "docstring_tokens": ["Responder", "returns", "a", "responder", "based", "on", "the", "mime", "if", "none", "can", "be", "matched", "the", "default", "is", "returned"], "sha": "464f0ff788e441a27bc3acb920f747306c1dfdee", "url": "https://github.com/ThatsMrTalbot/scaffold/blob/464f0ff788e441a27bc3acb920f747306c1dfdee/encoding/encoder.go#L58-L71", "partition": "valid"} +{"repo": "ThatsMrTalbot/scaffold", "path": "errors/error.go", "func_name": "NewErrorStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewErrorStatus creates an error that implements ErrorStatus based off a\n// string", "docstring_tokens": ["NewErrorStatus", "creates", "an", "error", "that", "implements", "ErrorStatus", "based", "off", "a", "string"], "sha": "464f0ff788e441a27bc3acb920f747306c1dfdee", "url": "https://github.com/ThatsMrTalbot/scaffold/blob/464f0ff788e441a27bc3acb920f747306c1dfdee/errors/error.go#L18-L23", "partition": "valid"} +{"repo": "ThatsMrTalbot/scaffold", "path": "errors/error.go", "func_name": "ConvertErrorStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ConvertErrorStatus creates an error that implements ErrorStatus based off an\n// error", "docstring_tokens": ["ConvertErrorStatus", "creates", "an", "error", "that", "implements", "ErrorStatus", "based", "off", "an", "error"], "sha": "464f0ff788e441a27bc3acb920f747306c1dfdee", "url": "https://github.com/ThatsMrTalbot/scaffold/blob/464f0ff788e441a27bc3acb920f747306c1dfdee/errors/error.go#L27-L32", "partition": "valid"} +{"repo": "landaire/pbo", "path": "header.go", "func_name": "Read", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Implement the io.Reader interface", "docstring_tokens": ["Implement", "the", "io", ".", "Reader", "interface"], "sha": "e65856dfad6966a0039c0da762e8177ccfa44996", "url": "https://github.com/landaire/pbo/blob/e65856dfad6966a0039c0da762e8177ccfa44996/header.go#L40-L57", "partition": "valid"} +{"repo": "landaire/pbo", "path": "header.go", "func_name": "EntrySize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Gets the length of the entry block", "docstring_tokens": ["Gets", "the", "length", "of", "the", "entry", "block"], "sha": "e65856dfad6966a0039c0da762e8177ccfa44996", "url": "https://github.com/landaire/pbo/blob/e65856dfad6966a0039c0da762e8177ccfa44996/header.go#L118-L130", "partition": "valid"} +{"repo": "pivotalservices/gtils", "path": "log/lager.go", "func_name": "NewLager", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//NewLager - constructor for a Logger object", "docstring_tokens": ["NewLager", "-", "constructor", "for", "a", "Logger", "object"], "sha": "39e672ca7b9b4599009bdc3c8d67aff081da9dd7", "url": "https://github.com/pivotalservices/gtils/blob/39e672ca7b9b4599009bdc3c8d67aff081da9dd7/log/lager.go#L10-L30", "partition": "valid"} +{"repo": "ThatsMrTalbot/scaffold", "path": "url.go", "func_name": "URLParts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// URLParts spliths a path into parts and caches it in the context", "docstring_tokens": ["URLParts", "spliths", "a", "path", "into", "parts", "and", "caches", "it", "in", "the", "context"], "sha": "464f0ff788e441a27bc3acb920f747306c1dfdee", "url": "https://github.com/ThatsMrTalbot/scaffold/blob/464f0ff788e441a27bc3acb920f747306c1dfdee/url.go#L31-L44", "partition": "valid"} +{"repo": "ThatsMrTalbot/scaffold", "path": "url.go", "func_name": "URLPart", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// URLPart returns a part of the url and caches it in the context", "docstring_tokens": ["URLPart", "returns", "a", "part", "of", "the", "url", "and", "caches", "it", "in", "the", "context"], "sha": "464f0ff788e441a27bc3acb920f747306c1dfdee", "url": "https://github.com/ThatsMrTalbot/scaffold/blob/464f0ff788e441a27bc3acb920f747306c1dfdee/url.go#L47-L53", "partition": "valid"} +{"repo": "ThatsMrTalbot/scaffold", "path": "param.go", "func_name": "StoreParam", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//StoreParam stores a variable in a context", "docstring_tokens": ["StoreParam", "stores", "a", "variable", "in", "a", "context"], "sha": "464f0ff788e441a27bc3acb920f747306c1dfdee", "url": "https://github.com/ThatsMrTalbot/scaffold/blob/464f0ff788e441a27bc3acb920f747306c1dfdee/param.go#L18-L21", "partition": "valid"} +{"repo": "ThatsMrTalbot/scaffold", "path": "param.go", "func_name": "GetParam", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetParam retrieves a param from a context", "docstring_tokens": ["GetParam", "retrieves", "a", "param", "from", "a", "context"], "sha": "464f0ff788e441a27bc3acb920f747306c1dfdee", "url": "https://github.com/ThatsMrTalbot/scaffold/blob/464f0ff788e441a27bc3acb920f747306c1dfdee/param.go#L24-L30", "partition": "valid"} +{"repo": "ThatsMrTalbot/scaffold", "path": "param.go", "func_name": "Int32", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Int32 returns param as int32", "docstring_tokens": ["Int32", "returns", "param", "as", "int32"], "sha": "464f0ff788e441a27bc3acb920f747306c1dfdee", "url": "https://github.com/ThatsMrTalbot/scaffold/blob/464f0ff788e441a27bc3acb920f747306c1dfdee/param.go#L43-L46", "partition": "valid"} +{"repo": "ThatsMrTalbot/scaffold", "path": "param.go", "func_name": "UInt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UInt returns param as uint", "docstring_tokens": ["UInt", "returns", "param", "as", "uint"], "sha": "464f0ff788e441a27bc3acb920f747306c1dfdee", "url": "https://github.com/ThatsMrTalbot/scaffold/blob/464f0ff788e441a27bc3acb920f747306c1dfdee/param.go#L54-L57", "partition": "valid"} +{"repo": "ThatsMrTalbot/scaffold", "path": "param.go", "func_name": "UInt32", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UInt32 returns param as uint32", "docstring_tokens": ["UInt32", "returns", "param", "as", "uint32"], "sha": "464f0ff788e441a27bc3acb920f747306c1dfdee", "url": "https://github.com/ThatsMrTalbot/scaffold/blob/464f0ff788e441a27bc3acb920f747306c1dfdee/param.go#L60-L63", "partition": "valid"} +{"repo": "ThatsMrTalbot/scaffold", "path": "param.go", "func_name": "Float32", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Float32 returns param as float32", "docstring_tokens": ["Float32", "returns", "param", "as", "float32"], "sha": "464f0ff788e441a27bc3acb920f747306c1dfdee", "url": "https://github.com/ThatsMrTalbot/scaffold/blob/464f0ff788e441a27bc3acb920f747306c1dfdee/param.go#L71-L74", "partition": "valid"} +{"repo": "pivotalservices/gtils", "path": "osutils/remote_operations.go", "func_name": "UploadFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//UploadFile - allows us to upload the contents of the given reader", "docstring_tokens": ["UploadFile", "-", "allows", "us", "to", "upload", "the", "contents", "of", "the", "given", "reader"], "sha": "39e672ca7b9b4599009bdc3c8d67aff081da9dd7", "url": "https://github.com/pivotalservices/gtils/blob/39e672ca7b9b4599009bdc3c8d67aff081da9dd7/osutils/remote_operations.go#L42-L50", "partition": "valid"} +{"repo": "pivotalservices/gtils", "path": "osutils/remote_operations.go", "func_name": "RemoveRemoteFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//RemoveRemoteFile - get a file from a remote system and return a writecloser to it", "docstring_tokens": ["RemoveRemoteFile", "-", "get", "a", "file", "from", "a", "remote", "system", "and", "return", "a", "writecloser", "to", "it"], "sha": "39e672ca7b9b4599009bdc3c8d67aff081da9dd7", "url": "https://github.com/pivotalservices/gtils/blob/39e672ca7b9b4599009bdc3c8d67aff081da9dd7/osutils/remote_operations.go#L81-L90", "partition": "valid"} +{"repo": "pivotalservices/gtils", "path": "osutils/remote_operations.go", "func_name": "GetRemoteFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//GetRemoteFile - get a file from a remote system and return a writecloser to it", "docstring_tokens": ["GetRemoteFile", "-", "get", "a", "file", "from", "a", "remote", "system", "and", "return", "a", "writecloser", "to", "it"], "sha": "39e672ca7b9b4599009bdc3c8d67aff081da9dd7", "url": "https://github.com/pivotalservices/gtils/blob/39e672ca7b9b4599009bdc3c8d67aff081da9dd7/osutils/remote_operations.go#L93-L102", "partition": "valid"} +{"repo": "neptulon/neptulon", "path": "conn.go", "func_name": "NewConn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewConn creates a new Conn object.", "docstring_tokens": ["NewConn", "creates", "a", "new", "Conn", "object", "."], "sha": "1397d36ae289dbd9f065ab9dadccf47ce54d3aac", "url": "https://github.com/neptulon/neptulon/blob/1397d36ae289dbd9f065ab9dadccf47ce54d3aac/conn.go#L40-L55", "partition": "valid"} +{"repo": "neptulon/neptulon", "path": "conn.go", "func_name": "RemoteAddr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoteAddr returns the remote network address.", "docstring_tokens": ["RemoteAddr", "returns", "the", "remote", "network", "address", "."], "sha": "1397d36ae289dbd9f065ab9dadccf47ce54d3aac", "url": "https://github.com/neptulon/neptulon/blob/1397d36ae289dbd9f065ab9dadccf47ce54d3aac/conn.go#L102-L109", "partition": "valid"} +{"repo": "neptulon/neptulon", "path": "conn.go", "func_name": "SendRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SendRequest sends a JSON-RPC request through the connection with an auto generated request ID.\n// resHandler is called when a response is returned.", "docstring_tokens": ["SendRequest", "sends", "a", "JSON", "-", "RPC", "request", "through", "the", "connection", "with", "an", "auto", "generated", "request", "ID", ".", "resHandler", "is", "called", "when", "a", "response", "is", "returned", "."], "sha": "1397d36ae289dbd9f065ab9dadccf47ce54d3aac", "url": "https://github.com/neptulon/neptulon/blob/1397d36ae289dbd9f065ab9dadccf47ce54d3aac/conn.go#L113-L126", "partition": "valid"} +{"repo": "neptulon/neptulon", "path": "conn.go", "func_name": "SendRequestArr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SendRequestArr sends a JSON-RPC request through the connection, with array params and auto generated request ID.\n// resHandler is called when a response is returned.", "docstring_tokens": ["SendRequestArr", "sends", "a", "JSON", "-", "RPC", "request", "through", "the", "connection", "with", "array", "params", "and", "auto", "generated", "request", "ID", ".", "resHandler", "is", "called", "when", "a", "response", "is", "returned", "."], "sha": "1397d36ae289dbd9f065ab9dadccf47ce54d3aac", "url": "https://github.com/neptulon/neptulon/blob/1397d36ae289dbd9f065ab9dadccf47ce54d3aac/conn.go#L130-L132", "partition": "valid"} +{"repo": "neptulon/neptulon", "path": "conn.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close closes the connection.", "docstring_tokens": ["Close", "closes", "the", "connection", "."], "sha": "1397d36ae289dbd9f065ab9dadccf47ce54d3aac", "url": "https://github.com/neptulon/neptulon/blob/1397d36ae289dbd9f065ab9dadccf47ce54d3aac/conn.go#L135-L142", "partition": "valid"} +{"repo": "neptulon/neptulon", "path": "conn.go", "func_name": "sendResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SendResponse sends a JSON-RPC response message through the connection.", "docstring_tokens": ["SendResponse", "sends", "a", "JSON", "-", "RPC", "response", "message", "through", "the", "connection", "."], "sha": "1397d36ae289dbd9f065ab9dadccf47ce54d3aac", "url": "https://github.com/neptulon/neptulon/blob/1397d36ae289dbd9f065ab9dadccf47ce54d3aac/conn.go#L160-L162", "partition": "valid"} +{"repo": "neptulon/neptulon", "path": "conn.go", "func_name": "send", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Send sends the given message through the connection.", "docstring_tokens": ["Send", "sends", "the", "given", "message", "through", "the", "connection", "."], "sha": "1397d36ae289dbd9f065ab9dadccf47ce54d3aac", "url": "https://github.com/neptulon/neptulon/blob/1397d36ae289dbd9f065ab9dadccf47ce54d3aac/conn.go#L165-L171", "partition": "valid"} +{"repo": "neptulon/neptulon", "path": "conn.go", "func_name": "receive", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Receive receives message from the connection.", "docstring_tokens": ["Receive", "receives", "message", "from", "the", "connection", "."], "sha": "1397d36ae289dbd9f065ab9dadccf47ce54d3aac", "url": "https://github.com/neptulon/neptulon/blob/1397d36ae289dbd9f065ab9dadccf47ce54d3aac/conn.go#L174-L180", "partition": "valid"} +{"repo": "neptulon/neptulon", "path": "conn.go", "func_name": "setConn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reuse an established websocket.Conn.", "docstring_tokens": ["Reuse", "an", "established", "websocket", ".", "Conn", "."], "sha": "1397d36ae289dbd9f065ab9dadccf47ce54d3aac", "url": "https://github.com/neptulon/neptulon/blob/1397d36ae289dbd9f065ab9dadccf47ce54d3aac/conn.go#L183-L190", "partition": "valid"} +{"repo": "neptulon/neptulon", "path": "conn.go", "func_name": "startReceive", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// startReceive starts receiving messages. This method blocks and does not return until the connection is closed.", "docstring_tokens": ["startReceive", "starts", "receiving", "messages", ".", "This", "method", "blocks", "and", "does", "not", "return", "until", "the", "connection", "is", "closed", "."], "sha": "1397d36ae289dbd9f065ab9dadccf47ce54d3aac", "url": "https://github.com/neptulon/neptulon/blob/1397d36ae289dbd9f065ab9dadccf47ce54d3aac/conn.go#L193-L269", "partition": "valid"} +{"repo": "landaire/pbo", "path": "pbo.go", "func_name": "NewPbo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reads the file given by path and returns\n// a Pbo pointer and err != nil if no errors occurred", "docstring_tokens": ["Reads", "the", "file", "given", "by", "path", "and", "returns", "a", "Pbo", "pointer", "and", "err", "!", "=", "nil", "if", "no", "errors", "occurred"], "sha": "e65856dfad6966a0039c0da762e8177ccfa44996", "url": "https://github.com/landaire/pbo/blob/e65856dfad6966a0039c0da762e8177ccfa44996/pbo.go#L17-L65", "partition": "valid"} +{"repo": "pivotalservices/gtils", "path": "mock/readwritecloser.go", "func_name": "NewReadWriteCloser", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//NewReadWriteCloser - a fake readwritecloser constructor", "docstring_tokens": ["NewReadWriteCloser", "-", "a", "fake", "readwritecloser", "constructor"], "sha": "39e672ca7b9b4599009bdc3c8d67aff081da9dd7", "url": "https://github.com/pivotalservices/gtils/blob/39e672ca7b9b4599009bdc3c8d67aff081da9dd7/mock/readwritecloser.go#L15-L21", "partition": "valid"} +{"repo": "pivotalservices/gtils", "path": "mock/readwritecloser.go", "func_name": "Read", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Read - satisfies reader interface", "docstring_tokens": ["Read", "-", "satisfies", "reader", "interface"], "sha": "39e672ca7b9b4599009bdc3c8d67aff081da9dd7", "url": "https://github.com/pivotalservices/gtils/blob/39e672ca7b9b4599009bdc3c8d67aff081da9dd7/mock/readwritecloser.go#L33-L40", "partition": "valid"} +{"repo": "pivotalservices/gtils", "path": "mock/readwritecloser.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Write - satisfies writer interface", "docstring_tokens": ["Write", "-", "satisfies", "writer", "interface"], "sha": "39e672ca7b9b4599009bdc3c8d67aff081da9dd7", "url": "https://github.com/pivotalservices/gtils/blob/39e672ca7b9b4599009bdc3c8d67aff081da9dd7/mock/readwritecloser.go#L49-L56", "partition": "valid"} +{"repo": "pivotalservices/gtils", "path": "osutils/file.go", "func_name": "SafeRemoveSSH", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SafeRemoveSSH removes a file on a remote machine via an ssh client", "docstring_tokens": ["SafeRemoveSSH", "removes", "a", "file", "on", "a", "remote", "machine", "via", "an", "ssh", "client"], "sha": "39e672ca7b9b4599009bdc3c8d67aff081da9dd7", "url": "https://github.com/pivotalservices/gtils/blob/39e672ca7b9b4599009bdc3c8d67aff081da9dd7/osutils/file.go#L21-L31", "partition": "valid"} +{"repo": "pivotalservices/gtils", "path": "osutils/file.go", "func_name": "SafeCreateSSH", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SafeCreateSSH creates a file, creating parent directories if needed on a remote machine via an ssh client", "docstring_tokens": ["SafeCreateSSH", "creates", "a", "file", "creating", "parent", "directories", "if", "needed", "on", "a", "remote", "machine", "via", "an", "ssh", "client"], "sha": "39e672ca7b9b4599009bdc3c8d67aff081da9dd7", "url": "https://github.com/pivotalservices/gtils/blob/39e672ca7b9b4599009bdc3c8d67aff081da9dd7/osutils/file.go#L34-L45", "partition": "valid"} +{"repo": "pivotalservices/gtils", "path": "osutils/file.go", "func_name": "SafeCreate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SafeCreate creates a file, creating parent directories if needed", "docstring_tokens": ["SafeCreate", "creates", "a", "file", "creating", "parent", "directories", "if", "needed"], "sha": "39e672ca7b9b4599009bdc3c8d67aff081da9dd7", "url": "https://github.com/pivotalservices/gtils/blob/39e672ca7b9b4599009bdc3c8d67aff081da9dd7/osutils/file.go#L77-L84", "partition": "valid"} +{"repo": "neptulon/neptulon", "path": "middleware/jwt/jwt_auth.go", "func_name": "HMAC", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HMAC is JSON Web Token authentication using HMAC.\n// If successful, token context will be store with the key \"userid\" in session.\n// If unsuccessful, connection will be closed right away.", "docstring_tokens": ["HMAC", "is", "JSON", "Web", "Token", "authentication", "using", "HMAC", ".", "If", "successful", "token", "context", "will", "be", "store", "with", "the", "key", "userid", "in", "session", ".", "If", "unsuccessful", "connection", "will", "be", "closed", "right", "away", "."], "sha": "1397d36ae289dbd9f065ab9dadccf47ce54d3aac", "url": "https://github.com/neptulon/neptulon/blob/1397d36ae289dbd9f065ab9dadccf47ce54d3aac/middleware/jwt/jwt_auth.go#L18-L51", "partition": "valid"} +{"repo": "ThatsMrTalbot/scaffold", "path": "router.go", "func_name": "Scaffold", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Scaffold creates a router and passes it to a platorm", "docstring_tokens": ["Scaffold", "creates", "a", "router", "and", "passes", "it", "to", "a", "platorm"], "sha": "464f0ff788e441a27bc3acb920f747306c1dfdee", "url": "https://github.com/ThatsMrTalbot/scaffold/blob/464f0ff788e441a27bc3acb920f747306c1dfdee/router.go#L25-L29", "partition": "valid"} +{"repo": "ThatsMrTalbot/scaffold", "path": "router.go", "func_name": "Route", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Route returns the subrouter for a pettern", "docstring_tokens": ["Route", "returns", "the", "subrouter", "for", "a", "pettern"], "sha": "464f0ff788e441a27bc3acb920f747306c1dfdee", "url": "https://github.com/ThatsMrTalbot/scaffold/blob/464f0ff788e441a27bc3acb920f747306c1dfdee/router.go#L39-L42", "partition": "valid"} +{"repo": "ThatsMrTalbot/scaffold", "path": "router.go", "func_name": "Group", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Group calls the specified function with the subrouter for the given pattern", "docstring_tokens": ["Group", "calls", "the", "specified", "function", "with", "the", "subrouter", "for", "the", "given", "pattern"], "sha": "464f0ff788e441a27bc3acb920f747306c1dfdee", "url": "https://github.com/ThatsMrTalbot/scaffold/blob/464f0ff788e441a27bc3acb920f747306c1dfdee/router.go#L45-L48", "partition": "valid"} +{"repo": "ThatsMrTalbot/scaffold", "path": "router.go", "func_name": "Platform", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Platform routes the platform object to the given pattern", "docstring_tokens": ["Platform", "routes", "the", "platform", "object", "to", "the", "given", "pattern"], "sha": "464f0ff788e441a27bc3acb920f747306c1dfdee", "url": "https://github.com/ThatsMrTalbot/scaffold/blob/464f0ff788e441a27bc3acb920f747306c1dfdee/router.go#L51-L54", "partition": "valid"} +{"repo": "ThatsMrTalbot/scaffold", "path": "router.go", "func_name": "Handle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Handle all methods with a given pattern", "docstring_tokens": ["Handle", "all", "methods", "with", "a", "given", "pattern"], "sha": "464f0ff788e441a27bc3acb920f747306c1dfdee", "url": "https://github.com/ThatsMrTalbot/scaffold/blob/464f0ff788e441a27bc3acb920f747306c1dfdee/router.go#L57-L62", "partition": "valid"} +{"repo": "ThatsMrTalbot/scaffold", "path": "router.go", "func_name": "Options", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Options handles OPTIONS methods with a given pattern", "docstring_tokens": ["Options", "handles", "OPTIONS", "methods", "with", "a", "given", "pattern"], "sha": "464f0ff788e441a27bc3acb920f747306c1dfdee", "url": "https://github.com/ThatsMrTalbot/scaffold/blob/464f0ff788e441a27bc3acb920f747306c1dfdee/router.go#L65-L71", "partition": "valid"} +{"repo": "ThatsMrTalbot/scaffold", "path": "router.go", "func_name": "Use", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Use attaches middleware to a route", "docstring_tokens": ["Use", "attaches", "middleware", "to", "a", "route"], "sha": "464f0ff788e441a27bc3acb920f747306c1dfdee", "url": "https://github.com/ThatsMrTalbot/scaffold/blob/464f0ff788e441a27bc3acb920f747306c1dfdee/router.go#L119-L121", "partition": "valid"} +{"repo": "ThatsMrTalbot/scaffold", "path": "router.go", "func_name": "NotFound", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NotFound specifys a not found handler for a route", "docstring_tokens": ["NotFound", "specifys", "a", "not", "found", "handler", "for", "a", "route"], "sha": "464f0ff788e441a27bc3acb920f747306c1dfdee", "url": "https://github.com/ThatsMrTalbot/scaffold/blob/464f0ff788e441a27bc3acb920f747306c1dfdee/router.go#L124-L127", "partition": "valid"} +{"repo": "ThatsMrTalbot/scaffold", "path": "router.go", "func_name": "AddHandlerBuilder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddHandlerBuilder adds a builder to construct handlers", "docstring_tokens": ["AddHandlerBuilder", "adds", "a", "builder", "to", "construct", "handlers"], "sha": "464f0ff788e441a27bc3acb920f747306c1dfdee", "url": "https://github.com/ThatsMrTalbot/scaffold/blob/464f0ff788e441a27bc3acb920f747306c1dfdee/router.go#L138-L140", "partition": "valid"} +{"repo": "ThatsMrTalbot/scaffold", "path": "errors/middleware.go", "func_name": "ServeErrorPage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServeErrorPage Implements ErrorHandler.ServeErrorPage", "docstring_tokens": ["ServeErrorPage", "Implements", "ErrorHandler", ".", "ServeErrorPage"], "sha": "464f0ff788e441a27bc3acb920f747306c1dfdee", "url": "https://github.com/ThatsMrTalbot/scaffold/blob/464f0ff788e441a27bc3acb920f747306c1dfdee/errors/middleware.go#L27-L29", "partition": "valid"} +{"repo": "ThatsMrTalbot/scaffold", "path": "errors/middleware.go", "func_name": "GetErrorHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetErrorHandler gets the error handler from the context or returns the default", "docstring_tokens": ["GetErrorHandler", "gets", "the", "error", "handler", "from", "the", "context", "or", "returns", "the", "default"], "sha": "464f0ff788e441a27bc3acb920f747306c1dfdee", "url": "https://github.com/ThatsMrTalbot/scaffold/blob/464f0ff788e441a27bc3acb920f747306c1dfdee/errors/middleware.go#L38-L50", "partition": "valid"} +{"repo": "ThatsMrTalbot/scaffold", "path": "errors/middleware.go", "func_name": "SetErrorHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetErrorHandler returns Middleware that can be used to set the error handler", "docstring_tokens": ["SetErrorHandler", "returns", "Middleware", "that", "can", "be", "used", "to", "set", "the", "error", "handler"], "sha": "464f0ff788e441a27bc3acb920f747306c1dfdee", "url": "https://github.com/ThatsMrTalbot/scaffold/blob/464f0ff788e441a27bc3acb920f747306c1dfdee/errors/middleware.go#L53-L62", "partition": "valid"} +{"repo": "ThatsMrTalbot/scaffold", "path": "errors/middleware.go", "func_name": "SetErrorHandlerFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetErrorHandlerFunc returns Middleware that can be used to set the error handler", "docstring_tokens": ["SetErrorHandlerFunc", "returns", "Middleware", "that", "can", "be", "used", "to", "set", "the", "error", "handler"], "sha": "464f0ff788e441a27bc3acb920f747306c1dfdee", "url": "https://github.com/ThatsMrTalbot/scaffold/blob/464f0ff788e441a27bc3acb920f747306c1dfdee/errors/middleware.go#L65-L67", "partition": "valid"} +{"repo": "neptulon/neptulon", "path": "middleware/echo.go", "func_name": "Echo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Echo sends incoming messages back as is.", "docstring_tokens": ["Echo", "sends", "incoming", "messages", "back", "as", "is", "."], "sha": "1397d36ae289dbd9f065ab9dadccf47ce54d3aac", "url": "https://github.com/neptulon/neptulon/blob/1397d36ae289dbd9f065ab9dadccf47ce54d3aac/middleware/echo.go#L6-L12", "partition": "valid"} +{"repo": "mdlayher/aoe", "path": "configarg.go", "func_name": "UnmarshalBinary", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalBinary unmarshals a byte slice into a ConfigArg.\n//\n// If the byte slice does not contain enough data to form a valid ConfigArg,\n// or config string length is greater than the number of remaining bytes in b,\n// io.ErrUnexpectedEOF is returned.\n//\n// If config string length is greater than 1024, ErrorBadArgumentParameter is\n// returned.", "docstring_tokens": ["UnmarshalBinary", "unmarshals", "a", "byte", "slice", "into", "a", "ConfigArg", ".", "If", "the", "byte", "slice", "does", "not", "contain", "enough", "data", "to", "form", "a", "valid", "ConfigArg", "or", "config", "string", "length", "is", "greater", "than", "the", "number", "of", "remaining", "bytes", "in", "b", "io", ".", "ErrUnexpectedEOF", "is", "returned", ".", "If", "config", "string", "length", "is", "greater", "than", "1024", "ErrorBadArgumentParameter", "is", "returned", "."], "sha": "f389bbabc4961d53471c5d3b7e0c3618e638d510", "url": "https://github.com/mdlayher/aoe/blob/f389bbabc4961d53471c5d3b7e0c3618e638d510/configarg.go#L139-L173", "partition": "valid"} +{"repo": "mdlayher/aoe", "path": "ata.go", "func_name": "ataIdentify", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ataIdentify performs an ATA identify request on rs using the argument\n// values in r.", "docstring_tokens": ["ataIdentify", "performs", "an", "ATA", "identify", "request", "on", "rs", "using", "the", "argument", "values", "in", "r", "."], "sha": "f389bbabc4961d53471c5d3b7e0c3618e638d510", "url": "https://github.com/mdlayher/aoe/blob/f389bbabc4961d53471c5d3b7e0c3618e638d510/ata.go#L144-L174", "partition": "valid"} +{"repo": "mdlayher/aoe", "path": "ata.go", "func_name": "ataRead", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ataRead performs an ATA 28-bit or 48-bit read request on rs using the\n// argument values in r.", "docstring_tokens": ["ataRead", "performs", "an", "ATA", "28", "-", "bit", "or", "48", "-", "bit", "read", "request", "on", "rs", "using", "the", "argument", "values", "in", "r", "."], "sha": "f389bbabc4961d53471c5d3b7e0c3618e638d510", "url": "https://github.com/mdlayher/aoe/blob/f389bbabc4961d53471c5d3b7e0c3618e638d510/ata.go#L178-L214", "partition": "valid"} +{"repo": "mdlayher/aoe", "path": "ata.go", "func_name": "ataWrite", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ataWrite performs an ATA 28-bit or 48-bit write request on rs using the\n// argument values in r.", "docstring_tokens": ["ataWrite", "performs", "an", "ATA", "28", "-", "bit", "or", "48", "-", "bit", "write", "request", "on", "rs", "using", "the", "argument", "values", "in", "r", "."], "sha": "f389bbabc4961d53471c5d3b7e0c3618e638d510", "url": "https://github.com/mdlayher/aoe/blob/f389bbabc4961d53471c5d3b7e0c3618e638d510/ata.go#L218-L264", "partition": "valid"} +{"repo": "mdlayher/aoe", "path": "ata.go", "func_name": "calculateLBA", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// calculateLBA calculates a logical block address from the LBA array\n// and 48-bit flags from an ATAArg.", "docstring_tokens": ["calculateLBA", "calculates", "a", "logical", "block", "address", "from", "the", "LBA", "array", "and", "48", "-", "bit", "flags", "from", "an", "ATAArg", "."], "sha": "f389bbabc4961d53471c5d3b7e0c3618e638d510", "url": "https://github.com/mdlayher/aoe/blob/f389bbabc4961d53471c5d3b7e0c3618e638d510/ata.go#L268-L293", "partition": "valid"} +{"repo": "mdlayher/aoe", "path": "reservereleasearg.go", "func_name": "MarshalBinary", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalBinary allocates a byte slice containing the data from a\n// ReserveReleaseArg.\n//\n// If r.NMACs does not indicate the actual length of r.MACs, or one or more\n// hardware addresses are not exactly 6 bytes in length,\n// ErrorBadArgumentParameter is returned.", "docstring_tokens": ["MarshalBinary", "allocates", "a", "byte", "slice", "containing", "the", "data", "from", "a", "ReserveReleaseArg", ".", "If", "r", ".", "NMACs", "does", "not", "indicate", "the", "actual", "length", "of", "r", ".", "MACs", "or", "one", "or", "more", "hardware", "addresses", "are", "not", "exactly", "6", "bytes", "in", "length", "ErrorBadArgumentParameter", "is", "returned", "."], "sha": "f389bbabc4961d53471c5d3b7e0c3618e638d510", "url": "https://github.com/mdlayher/aoe/blob/f389bbabc4961d53471c5d3b7e0c3618e638d510/reservereleasearg.go#L61-L86", "partition": "valid"} +{"repo": "mdlayher/aoe", "path": "reservereleasearg.go", "func_name": "UnmarshalBinary", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalBinary unmarshals a byte slice into a ReserveReleaseArg.\n//\n// If the byte slice does not contain enough bytes to form a valid\n// ReserveReleaseArg, or a hardware address is malformed, io.ErrUnexpectedEOF\n// is returned.", "docstring_tokens": ["UnmarshalBinary", "unmarshals", "a", "byte", "slice", "into", "a", "ReserveReleaseArg", ".", "If", "the", "byte", "slice", "does", "not", "contain", "enough", "bytes", "to", "form", "a", "valid", "ReserveReleaseArg", "or", "a", "hardware", "address", "is", "malformed", "io", ".", "ErrUnexpectedEOF", "is", "returned", "."], "sha": "f389bbabc4961d53471c5d3b7e0c3618e638d510", "url": "https://github.com/mdlayher/aoe/blob/f389bbabc4961d53471c5d3b7e0c3618e638d510/reservereleasearg.go#L93-L117", "partition": "valid"} +{"repo": "mdlayher/aoe", "path": "ataarg.go", "func_name": "MarshalBinary", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalBinary allocates a byte slice containing the data from an ATAArg.\n//\n// MarshalBinary never returns an error.", "docstring_tokens": ["MarshalBinary", "allocates", "a", "byte", "slice", "containing", "the", "data", "from", "an", "ATAArg", ".", "MarshalBinary", "never", "returns", "an", "error", "."], "sha": "f389bbabc4961d53471c5d3b7e0c3618e638d510", "url": "https://github.com/mdlayher/aoe/blob/f389bbabc4961d53471c5d3b7e0c3618e638d510/ataarg.go#L60-L104", "partition": "valid"} +{"repo": "cjsaylor/sqlfixture", "path": "sqlfixture.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New fixture instance that will work with the database", "docstring_tokens": ["New", "fixture", "instance", "that", "will", "work", "with", "the", "database"], "sha": "cdbaf3284aaf7ecb3a4181c9882f3c9ee2c05c3a", "url": "https://github.com/cjsaylor/sqlfixture/blob/cdbaf3284aaf7ecb3a4181c9882f3c9ee2c05c3a/sqlfixture.go#L35-L38", "partition": "valid"} +{"repo": "cjsaylor/sqlfixture", "path": "sqlfixture.go", "func_name": "FromYAML", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FromYAML allows a fixture to be created from yaml input", "docstring_tokens": ["FromYAML", "allows", "a", "fixture", "to", "be", "created", "from", "yaml", "input"], "sha": "cdbaf3284aaf7ecb3a4181c9882f3c9ee2c05c3a", "url": "https://github.com/cjsaylor/sqlfixture/blob/cdbaf3284aaf7ecb3a4181c9882f3c9ee2c05c3a/sqlfixture.go#L41-L45", "partition": "valid"} +{"repo": "cjsaylor/sqlfixture", "path": "sqlfixture.go", "func_name": "FromJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FromJSON allows a fixture to be created from json input", "docstring_tokens": ["FromJSON", "allows", "a", "fixture", "to", "be", "created", "from", "json", "input"], "sha": "cdbaf3284aaf7ecb3a4181c9882f3c9ee2c05c3a", "url": "https://github.com/cjsaylor/sqlfixture/blob/cdbaf3284aaf7ecb3a4181c9882f3c9ee2c05c3a/sqlfixture.go#L48-L52", "partition": "valid"} +{"repo": "mdlayher/aoe", "path": "macmaskarg.go", "func_name": "MarshalBinary", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalBinary allocates a byte slice containing the data from a Directive.\n//\n// If d.MAC is not 6 bytes in length, ErrorBadArgumentParameter is returned.", "docstring_tokens": ["MarshalBinary", "allocates", "a", "byte", "slice", "containing", "the", "data", "from", "a", "Directive", ".", "If", "d", ".", "MAC", "is", "not", "6", "bytes", "in", "length", "ErrorBadArgumentParameter", "is", "returned", "."], "sha": "f389bbabc4961d53471c5d3b7e0c3618e638d510", "url": "https://github.com/mdlayher/aoe/blob/f389bbabc4961d53471c5d3b7e0c3618e638d510/macmaskarg.go#L90-L106", "partition": "valid"} +{"repo": "mdlayher/aoe", "path": "macmaskarg.go", "func_name": "MarshalBinary", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalBinary allocates a byte slice containing the data from a MACMaskArg.\n//\n// If m.DirCount does not indicate the actual length of m.Directives, or\n// a Directive is malformed, ErrorBadArgumentParameter is returned.", "docstring_tokens": ["MarshalBinary", "allocates", "a", "byte", "slice", "containing", "the", "data", "from", "a", "MACMaskArg", ".", "If", "m", ".", "DirCount", "does", "not", "indicate", "the", "actual", "length", "of", "m", ".", "Directives", "or", "a", "Directive", "is", "malformed", "ErrorBadArgumentParameter", "is", "returned", "."], "sha": "f389bbabc4961d53471c5d3b7e0c3618e638d510", "url": "https://github.com/mdlayher/aoe/blob/f389bbabc4961d53471c5d3b7e0c3618e638d510/macmaskarg.go#L162-L191", "partition": "valid"} +{"repo": "fcavani/log", "path": "persistence.go", "func_name": "NewSendToLogger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSendToLogger creates a logger from a go log.", "docstring_tokens": ["NewSendToLogger", "creates", "a", "logger", "from", "a", "go", "log", "."], "sha": "7ec0d2cde51e1e519cd9159e695c611b5e70098b", "url": "https://github.com/fcavani/log/blob/7ec0d2cde51e1e519cd9159e695c611b5e70098b/persistence.go#L64-L73", "partition": "valid"} +{"repo": "fcavani/log", "path": "persistence.go", "func_name": "NewMulti", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//NewMulti creates a MultiLog", "docstring_tokens": ["NewMulti", "creates", "a", "MultiLog"], "sha": "7ec0d2cde51e1e519cd9159e695c611b5e70098b", "url": "https://github.com/fcavani/log/blob/7ec0d2cde51e1e519cd9159e695c611b5e70098b/persistence.go#L104-L128", "partition": "valid"} +{"repo": "fcavani/log", "path": "persistence.go", "func_name": "OuterLog", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// outerLog is like outers outerLogs but the nem entry is\n// created from the first BackLog in the list.", "docstring_tokens": ["outerLog", "is", "like", "outers", "outerLogs", "but", "the", "nem", "entry", "is", "created", "from", "the", "first", "BackLog", "in", "the", "list", "."], "sha": "7ec0d2cde51e1e519cd9159e695c611b5e70098b", "url": "https://github.com/fcavani/log/blob/7ec0d2cde51e1e519cd9159e695c611b5e70098b/persistence.go#L154-L183", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "docker/runconfig.go", "func_name": "PublishPort", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PublishPort publish a container's port to the host.", "docstring_tokens": ["PublishPort", "publish", "a", "container", "s", "port", "to", "the", "host", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/docker/runconfig.go#L43-L46", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "docker/runconfig.go", "func_name": "Name", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Name assign a name to the container.", "docstring_tokens": ["Name", "assign", "a", "name", "to", "the", "container", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/docker/runconfig.go#L49-L51", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "docker/runconfig.go", "func_name": "AddArgs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddArgs appends arguments to Docker container.", "docstring_tokens": ["AddArgs", "appends", "arguments", "to", "Docker", "container", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/docker/runconfig.go#L54-L56", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "http/cors.go", "func_name": "NewCORSHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCORSHandler creates a new CORSHandler with default values.", "docstring_tokens": ["NewCORSHandler", "creates", "a", "new", "CORSHandler", "with", "default", "values", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/http/cors.go#L43-L52", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "http/cors.go", "func_name": "CreatePreflight", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreatePreflight creates HTTP routes that handles pre-flight requests.", "docstring_tokens": ["CreatePreflight", "creates", "HTTP", "routes", "that", "handles", "pre", "-", "flight", "requests", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/http/cors.go#L55-L85", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "http/cors.go", "func_name": "ServeHTTP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServeHTTP handle a pre-flight request.", "docstring_tokens": ["ServeHTTP", "handle", "a", "pre", "-", "flight", "request", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/http/cors.go#L95-L155", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "http/cors.go", "func_name": "Handle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Handle is a HTTP handler for CORS-able API.", "docstring_tokens": ["Handle", "is", "a", "HTTP", "handler", "for", "CORS", "-", "able", "API", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/http/cors.go#L165-L192", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "crypt/randomsource.go", "func_name": "NewRandomSourceListSecure", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRandomSourceListSecure returns system provided source of random data\n// besides of Raiqub Random source.", "docstring_tokens": ["NewRandomSourceListSecure", "returns", "system", "provided", "source", "of", "random", "data", "besides", "of", "Raiqub", "Random", "source", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/crypt/randomsource.go#L66-L77", "partition": "valid"} +{"repo": "janos/logging", "path": "syslog_handler.go", "func_name": "Handle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Handle sends a record message to syslog Writer.", "docstring_tokens": ["Handle", "sends", "a", "record", "message", "to", "syslog", "Writer", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/syslog_handler.go#L35-L71", "partition": "valid"} +{"repo": "janos/logging", "path": "syslog_handler.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close closes an associated syslog Writer.", "docstring_tokens": ["Close", "closes", "an", "associated", "syslog", "Writer", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/syslog_handler.go#L74-L79", "partition": "valid"} +{"repo": "smagch/patree", "path": "matcher.go", "func_name": "hasDatePrefix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// date formant YYYY-MM-DD\n// mininum date 0000-01-01\n// maximum date 9999-12-31", "docstring_tokens": ["date", "formant", "YYYY", "-", "MM", "-", "DD", "mininum", "date", "0000", "-", "01", "-", "01", "maximum", "date", "9999", "-", "12", "-", "31"], "sha": "cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd", "url": "https://github.com/smagch/patree/blob/cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd/matcher.go#L58-L110", "partition": "valid"} +{"repo": "smagch/patree", "path": "matcher.go", "func_name": "Match", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Match processes the given string until it encounters a rune that doesn't\n// match.", "docstring_tokens": ["Match", "processes", "the", "given", "string", "until", "it", "encounters", "a", "rune", "that", "doesn", "t", "match", "."], "sha": "cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd", "url": "https://github.com/smagch/patree/blob/cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd/matcher.go#L123-L145", "partition": "valid"} +{"repo": "smagch/patree", "path": "matcher.go", "func_name": "Match", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Match processes the given string until it has its suffix in the next or\n// encounters a rune that doesn't match.", "docstring_tokens": ["Match", "processes", "the", "given", "string", "until", "it", "has", "its", "suffix", "in", "the", "next", "or", "encounters", "a", "rune", "that", "doesn", "t", "match", "."], "sha": "cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd", "url": "https://github.com/smagch/patree/blob/cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd/matcher.go#L160-L186", "partition": "valid"} +{"repo": "smagch/patree", "path": "matcher.go", "func_name": "MatchRune", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MatchRune simply calls mather.MatchRune", "docstring_tokens": ["MatchRune", "simply", "calls", "mather", ".", "MatchRune"], "sha": "cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd", "url": "https://github.com/smagch/patree/blob/cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd/matcher.go#L189-L191", "partition": "valid"} +{"repo": "smagch/patree", "path": "matcher.go", "func_name": "Match", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Match against fixed length pattern.", "docstring_tokens": ["Match", "against", "fixed", "length", "pattern", "."], "sha": "cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd", "url": "https://github.com/smagch/patree/blob/cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd/matcher.go#L206-L212", "partition": "valid"} +{"repo": "daviddengcn/bolthelper", "path": "box.go", "func_name": "Alloc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Alloc opens a DB if not openned yet. It adds a reference if already openned.", "docstring_tokens": ["Alloc", "opens", "a", "DB", "if", "not", "openned", "yet", ".", "It", "adds", "a", "reference", "if", "already", "openned", "."], "sha": "5f8bac9d6688c228cd3a730950131e8016bbd274", "url": "https://github.com/daviddengcn/bolthelper/blob/5f8bac9d6688c228cd3a730950131e8016bbd274/box.go#L28-L50", "partition": "valid"} +{"repo": "daviddengcn/bolthelper", "path": "box.go", "func_name": "Free", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Free decreases the reference count. It close the DB if the count reaches\n// zero.", "docstring_tokens": ["Free", "decreases", "the", "reference", "count", ".", "It", "close", "the", "DB", "if", "the", "count", "reaches", "zero", "."], "sha": "5f8bac9d6688c228cd3a730950131e8016bbd274", "url": "https://github.com/daviddengcn/bolthelper/blob/5f8bac9d6688c228cd3a730950131e8016bbd274/box.go#L54-L63", "partition": "valid"} +{"repo": "janos/logging", "path": "grpc_v2.go", "func_name": "Infof", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Infof calls Logger.Infof method with provided arguments.", "docstring_tokens": ["Infof", "calls", "Logger", ".", "Infof", "method", "with", "provided", "arguments", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/grpc_v2.go#L38-L40", "partition": "valid"} +{"repo": "janos/logging", "path": "grpc_v2.go", "func_name": "Warningf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Warningf calls Logger.Warningf method with provided arguments.", "docstring_tokens": ["Warningf", "calls", "Logger", ".", "Warningf", "method", "with", "provided", "arguments", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/grpc_v2.go#L53-L55", "partition": "valid"} +{"repo": "janos/logging", "path": "grpc_v2.go", "func_name": "Errorf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Errorf calls Logger.Errorf method with provided arguments.", "docstring_tokens": ["Errorf", "calls", "Logger", ".", "Errorf", "method", "with", "provided", "arguments", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/grpc_v2.go#L68-L70", "partition": "valid"} +{"repo": "janos/logging", "path": "grpc_v2.go", "func_name": "Fatalf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fatalf calls Logger.Criticalf method with provided arguments.", "docstring_tokens": ["Fatalf", "calls", "Logger", ".", "Criticalf", "method", "with", "provided", "arguments", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/grpc_v2.go#L83-L85", "partition": "valid"} +{"repo": "briandowns/formatifier", "path": "formatifier.go", "func_name": "ToPhone", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToPhone will format the provided string as a Phone Number. Only supports\n// US numbers currently.", "docstring_tokens": ["ToPhone", "will", "format", "the", "provided", "string", "as", "a", "Phone", "Number", ".", "Only", "supports", "US", "numbers", "currently", "."], "sha": "6d068a6ce63a3f36a4d6b7d31c208cb8619cc014", "url": "https://github.com/briandowns/formatifier/blob/6d068a6ce63a3f36a4d6b7d31c208cb8619cc014/formatifier.go#L28-L68", "partition": "valid"} +{"repo": "briandowns/formatifier", "path": "formatifier.go", "func_name": "ToURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToURL will format the provided string as a URL. HTTP and HTTPS\n// are the only supported protocols at this time.", "docstring_tokens": ["ToURL", "will", "format", "the", "provided", "string", "as", "a", "URL", ".", "HTTP", "and", "HTTPS", "are", "the", "only", "supported", "protocols", "at", "this", "time", "."], "sha": "6d068a6ce63a3f36a4d6b7d31c208cb8619cc014", "url": "https://github.com/briandowns/formatifier/blob/6d068a6ce63a3f36a4d6b7d31c208cb8619cc014/formatifier.go#L72-L92", "partition": "valid"} +{"repo": "briandowns/formatifier", "path": "formatifier.go", "func_name": "ToSSN", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToSSN will format the provided string as a SSN.", "docstring_tokens": ["ToSSN", "will", "format", "the", "provided", "string", "as", "a", "SSN", "."], "sha": "6d068a6ce63a3f36a4d6b7d31c208cb8619cc014", "url": "https://github.com/briandowns/formatifier/blob/6d068a6ce63a3f36a4d6b7d31c208cb8619cc014/formatifier.go#L95-L116", "partition": "valid"} +{"repo": "briandowns/formatifier", "path": "formatifier.go", "func_name": "ToMorseCode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToMorseCode will format the provided string in Morse Code.", "docstring_tokens": ["ToMorseCode", "will", "format", "the", "provided", "string", "in", "Morse", "Code", "."], "sha": "6d068a6ce63a3f36a4d6b7d31c208cb8619cc014", "url": "https://github.com/briandowns/formatifier/blob/6d068a6ce63a3f36a4d6b7d31c208cb8619cc014/formatifier.go#L168-L188", "partition": "valid"} +{"repo": "briandowns/formatifier", "path": "formatifier.go", "func_name": "ToPirateSpeak", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToPirateSpeak will format the provided string in Pirate Speak.", "docstring_tokens": ["ToPirateSpeak", "will", "format", "the", "provided", "string", "in", "Pirate", "Speak", "."], "sha": "6d068a6ce63a3f36a4d6b7d31c208cb8619cc014", "url": "https://github.com/briandowns/formatifier/blob/6d068a6ce63a3f36a4d6b7d31c208cb8619cc014/formatifier.go#L191-L211", "partition": "valid"} +{"repo": "briandowns/formatifier", "path": "formatifier.go", "func_name": "ToIRSA", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToIRSA will format the provided string in IRSA.\n// International Radio-Telephony Spelling Alphabet", "docstring_tokens": ["ToIRSA", "will", "format", "the", "provided", "string", "in", "IRSA", ".", "International", "Radio", "-", "Telephony", "Spelling", "Alphabet"], "sha": "6d068a6ce63a3f36a4d6b7d31c208cb8619cc014", "url": "https://github.com/briandowns/formatifier/blob/6d068a6ce63a3f36a4d6b7d31c208cb8619cc014/formatifier.go#L215-L233", "partition": "valid"} +{"repo": "janos/logging", "path": "default.go", "func_name": "newDefaultLogger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newDefaultLogger creates new logger that writes log messages to\n// standard output in DEBUG level. This logger is automatically created and\n// this function needs to be called only if all loggers were removed\n// and default logger needs recreating.", "docstring_tokens": ["newDefaultLogger", "creates", "new", "logger", "that", "writes", "log", "messages", "to", "standard", "output", "in", "DEBUG", "level", ".", "This", "logger", "is", "automatically", "created", "and", "this", "function", "needs", "to", "be", "called", "only", "if", "all", "loggers", "were", "removed", "and", "default", "logger", "needs", "recreating", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/default.go#L18-L26", "partition": "valid"} +{"repo": "janos/logging", "path": "default.go", "func_name": "Logf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Logf logs provided message with formatting with default logger.", "docstring_tokens": ["Logf", "logs", "provided", "message", "with", "formatting", "with", "default", "logger", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/default.go#L72-L74", "partition": "valid"} +{"repo": "calmh/deprecated_ini", "path": "ini.go", "func_name": "Sections", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sections returns the list of sections in the file.", "docstring_tokens": ["Sections", "returns", "the", "list", "of", "sections", "in", "the", "file", "."], "sha": "e7cd82536f43e21e8f38fb0b370dc637ec1fe045", "url": "https://github.com/calmh/deprecated_ini/blob/e7cd82536f43e21e8f38fb0b370dc637ec1fe045/ini.go#L35-L41", "partition": "valid"} +{"repo": "calmh/deprecated_ini", "path": "ini.go", "func_name": "Options", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Options returns the list of options in a given section.", "docstring_tokens": ["Options", "returns", "the", "list", "of", "options", "in", "a", "given", "section", "."], "sha": "e7cd82536f43e21e8f38fb0b370dc637ec1fe045", "url": "https://github.com/calmh/deprecated_ini/blob/e7cd82536f43e21e8f38fb0b370dc637ec1fe045/ini.go#L44-L55", "partition": "valid"} +{"repo": "calmh/deprecated_ini", "path": "ini.go", "func_name": "OptionMap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OptionMap returns the map option => value for a given section.", "docstring_tokens": ["OptionMap", "returns", "the", "map", "option", "=", ">", "value", "for", "a", "given", "section", "."], "sha": "e7cd82536f43e21e8f38fb0b370dc637ec1fe045", "url": "https://github.com/calmh/deprecated_ini/blob/e7cd82536f43e21e8f38fb0b370dc637ec1fe045/ini.go#L58-L69", "partition": "valid"} +{"repo": "calmh/deprecated_ini", "path": "ini.go", "func_name": "Comments", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Comments returns the list of comments in a given section.\n// For the empty string, returns the file comments.", "docstring_tokens": ["Comments", "returns", "the", "list", "of", "comments", "in", "a", "given", "section", ".", "For", "the", "empty", "string", "returns", "the", "file", "comments", "."], "sha": "e7cd82536f43e21e8f38fb0b370dc637ec1fe045", "url": "https://github.com/calmh/deprecated_ini/blob/e7cd82536f43e21e8f38fb0b370dc637ec1fe045/ini.go#L73-L83", "partition": "valid"} +{"repo": "calmh/deprecated_ini", "path": "ini.go", "func_name": "AddComment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddComments appends the comment to the list of comments for the section.", "docstring_tokens": ["AddComments", "appends", "the", "comment", "to", "the", "list", "of", "comments", "for", "the", "section", "."], "sha": "e7cd82536f43e21e8f38fb0b370dc637ec1fe045", "url": "https://github.com/calmh/deprecated_ini/blob/e7cd82536f43e21e8f38fb0b370dc637ec1fe045/ini.go#L86-L103", "partition": "valid"} +{"repo": "calmh/deprecated_ini", "path": "ini.go", "func_name": "Parse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Parse reads the given io.Reader and returns a parsed Config object.", "docstring_tokens": ["Parse", "reads", "the", "given", "io", ".", "Reader", "and", "returns", "a", "parsed", "Config", "object", "."], "sha": "e7cd82536f43e21e8f38fb0b370dc637ec1fe045", "url": "https://github.com/calmh/deprecated_ini/blob/e7cd82536f43e21e8f38fb0b370dc637ec1fe045/ini.go#L106-L137", "partition": "valid"} +{"repo": "calmh/deprecated_ini", "path": "ini.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write writes the sections and options to the io.Writer in INI format.", "docstring_tokens": ["Write", "writes", "the", "sections", "and", "options", "to", "the", "io", ".", "Writer", "in", "INI", "format", "."], "sha": "e7cd82536f43e21e8f38fb0b370dc637ec1fe045", "url": "https://github.com/calmh/deprecated_ini/blob/e7cd82536f43e21e8f38fb0b370dc637ec1fe045/ini.go#L140-L181", "partition": "valid"} +{"repo": "calmh/deprecated_ini", "path": "ini.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get gets the value from the specified section and key name, or the empty\n// string if either the section or the key is missing.", "docstring_tokens": ["Get", "gets", "the", "value", "from", "the", "specified", "section", "and", "key", "name", "or", "the", "empty", "string", "if", "either", "the", "section", "or", "the", "key", "is", "missing", "."], "sha": "e7cd82536f43e21e8f38fb0b370dc637ec1fe045", "url": "https://github.com/calmh/deprecated_ini/blob/e7cd82536f43e21e8f38fb0b370dc637ec1fe045/ini.go#L185-L197", "partition": "valid"} +{"repo": "calmh/deprecated_ini", "path": "ini.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set sets a value for an option in a section. If the option exists, it's\n// value will be overwritten. If the option does not exist, it will be added.\n// If the section does not exist, it will be added and the option added to it.", "docstring_tokens": ["Set", "sets", "a", "value", "for", "an", "option", "in", "a", "section", ".", "If", "the", "option", "exists", "it", "s", "value", "will", "be", "overwritten", ".", "If", "the", "option", "does", "not", "exist", "it", "will", "be", "added", ".", "If", "the", "section", "does", "not", "exist", "it", "will", "be", "added", "and", "the", "option", "added", "to", "it", "."], "sha": "e7cd82536f43e21e8f38fb0b370dc637ec1fe045", "url": "https://github.com/calmh/deprecated_ini/blob/e7cd82536f43e21e8f38fb0b370dc637ec1fe045/ini.go#L202-L220", "partition": "valid"} +{"repo": "calmh/deprecated_ini", "path": "ini.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete removes the option from the specified section.", "docstring_tokens": ["Delete", "removes", "the", "option", "from", "the", "specified", "section", "."], "sha": "e7cd82536f43e21e8f38fb0b370dc637ec1fe045", "url": "https://github.com/calmh/deprecated_ini/blob/e7cd82536f43e21e8f38fb0b370dc637ec1fe045/ini.go#L223-L235", "partition": "valid"} +{"repo": "xiaonanln/typeconv", "path": "typeconv.go", "func_name": "Convert", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// try to convert value to target type, panic if fail", "docstring_tokens": ["try", "to", "convert", "value", "to", "target", "type", "panic", "if", "fail"], "sha": "7a5e988b01ff978b673143db743b55792be7755b", "url": "https://github.com/xiaonanln/typeconv/blob/7a5e988b01ff978b673143db743b55792be7755b/typeconv.go#L146-L175", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "data/cacheitem.go", "func_name": "Postpone", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Postpone value expiration time to current time added to its lifetime\n// duration.", "docstring_tokens": ["Postpone", "value", "expiration", "time", "to", "current", "time", "added", "to", "its", "lifetime", "duration", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/data/cacheitem.go#L37-L39", "partition": "valid"} +{"repo": "fcavani/log", "path": "filters.go", "func_name": "Filter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Filter creates a new filter with rules r for l backend.", "docstring_tokens": ["Filter", "creates", "a", "new", "filter", "with", "rules", "r", "for", "l", "backend", "."], "sha": "7ec0d2cde51e1e519cd9159e695c611b5e70098b", "url": "https://github.com/fcavani/log/blob/7ec0d2cde51e1e519cd9159e695c611b5e70098b/filters.go#L24-L29", "partition": "valid"} +{"repo": "fcavani/log", "path": "filters.go", "func_name": "Op", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Op is an operation in some field and with some value.", "docstring_tokens": ["Op", "is", "an", "operation", "in", "some", "field", "and", "with", "some", "value", "."], "sha": "7ec0d2cde51e1e519cd9159e695c611b5e70098b", "url": "https://github.com/fcavani/log/blob/7ec0d2cde51e1e519cd9159e695c611b5e70098b/filters.go#L300-L316", "partition": "valid"} +{"repo": "fcavani/log", "path": "filters.go", "func_name": "ApplyRuleIf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ApplyRuleIf test if condition is true than apply rule. If condition is false\n// do nothing, return true.", "docstring_tokens": ["ApplyRuleIf", "test", "if", "condition", "is", "true", "than", "apply", "rule", ".", "If", "condition", "is", "false", "do", "nothing", "return", "true", "."], "sha": "7ec0d2cde51e1e519cd9159e695c611b5e70098b", "url": "https://github.com/fcavani/log/blob/7ec0d2cde51e1e519cd9159e695c611b5e70098b/filters.go#L385-L390", "partition": "valid"} +{"repo": "fcavani/log", "path": "filters.go", "func_name": "ApplyRuleIfElse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ApplyRuleIfElse test if condition is true than apply rule. If condition is false\n// run else rule.", "docstring_tokens": ["ApplyRuleIfElse", "test", "if", "condition", "is", "true", "than", "apply", "rule", ".", "If", "condition", "is", "false", "run", "else", "rule", "."], "sha": "7ec0d2cde51e1e519cd9159e695c611b5e70098b", "url": "https://github.com/fcavani/log/blob/7ec0d2cde51e1e519cd9159e695c611b5e70098b/filters.go#L407-L413", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "http/authbasic.go", "func_name": "AuthHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AuthHandler is a HTTP request middleware that enforces authentication.", "docstring_tokens": ["AuthHandler", "is", "a", "HTTP", "request", "middleware", "that", "enforces", "authentication", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/http/authbasic.go#L37-L59", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "docker/docker.go", "func_name": "HasBin", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasBin check whether Docker binary is available.", "docstring_tokens": ["HasBin", "check", "whether", "Docker", "binary", "is", "available", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/docker/docker.go#L47-L50", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "docker/docker.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run executes especified command on Docker.\n//\n// Returns ExternalCmdError on error.", "docstring_tokens": ["Run", "executes", "especified", "command", "on", "Docker", ".", "Returns", "ExternalCmdError", "on", "error", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/docker/docker.go#L55-L69", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "http/httpheader.go", "func_name": "GetReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetReader gets HTTP header value, as defined by current instance, from\n// Request Header and sets to current instance.", "docstring_tokens": ["GetReader", "gets", "HTTP", "header", "value", "as", "defined", "by", "current", "instance", "from", "Request", "Header", "and", "sets", "to", "current", "instance", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/http/httpheader.go#L38-L41", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "http/httpheader.go", "func_name": "SetName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetName sets header name of current instance.", "docstring_tokens": ["SetName", "sets", "header", "name", "of", "current", "instance", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/http/httpheader.go#L44-L47", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "http/httpheader.go", "func_name": "SetValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetValue sets header value of current instance.", "docstring_tokens": ["SetValue", "sets", "header", "value", "of", "current", "instance", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/http/httpheader.go#L50-L53", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "http/httpheader.go", "func_name": "SetWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetWriter sets HTTP header, as defined by current instance, to ResponseWriter\n// Header.", "docstring_tokens": ["SetWriter", "sets", "HTTP", "header", "as", "defined", "by", "current", "instance", "to", "ResponseWriter", "Header", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/http/httpheader.go#L57-L60", "partition": "valid"} +{"repo": "lavab/webhook", "path": "Godeps/_workspace/src/golang.org/x/crypto/openpgp/keys.go", "func_name": "encryptionKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// encryptionKey returns the best candidate Key for encrypting a message to the\n// given Entity.", "docstring_tokens": ["encryptionKey", "returns", "the", "best", "candidate", "Key", "for", "encrypting", "a", "message", "to", "the", "given", "Entity", "."], "sha": "e797c0d0c9247db8813eff17df22741a912adb61", "url": "https://github.com/lavab/webhook/blob/e797c0d0c9247db8813eff17df22741a912adb61/Godeps/_workspace/src/golang.org/x/crypto/openpgp/keys.go#L90-L121", "partition": "valid"} +{"repo": "divideandconquer/negotiator", "path": "negotiator.go", "func_name": "NewContentNegotiator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewContentNegotiator creates a basic ContentNegotiator with out any attached\n// encoders", "docstring_tokens": ["NewContentNegotiator", "creates", "a", "basic", "ContentNegotiator", "with", "out", "any", "attached", "encoders"], "sha": "b9489ef4a29d717f22e08005955115087fcb51bb", "url": "https://github.com/divideandconquer/negotiator/blob/b9489ef4a29d717f22e08005955115087fcb51bb/negotiator.go#L33-L38", "partition": "valid"} +{"repo": "divideandconquer/negotiator", "path": "negotiator.go", "func_name": "NewJsonXmlContentNegotiator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewJsonXmlContentNegotiator creates a basic ContentNegotiator and attaches\n// a JSON and an XML encoder to it.", "docstring_tokens": ["NewJsonXmlContentNegotiator", "creates", "a", "basic", "ContentNegotiator", "and", "attaches", "a", "JSON", "and", "an", "XML", "encoder", "to", "it", "."], "sha": "b9489ef4a29d717f22e08005955115087fcb51bb", "url": "https://github.com/divideandconquer/negotiator/blob/b9489ef4a29d717f22e08005955115087fcb51bb/negotiator.go#L42-L47", "partition": "valid"} +{"repo": "divideandconquer/negotiator", "path": "negotiator.go", "func_name": "Negotiate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Negotiate inspects the request for the accept header and\n// encodes the response appropriately.", "docstring_tokens": ["Negotiate", "inspects", "the", "request", "for", "the", "accept", "header", "and", "encodes", "the", "response", "appropriately", "."], "sha": "b9489ef4a29d717f22e08005955115087fcb51bb", "url": "https://github.com/divideandconquer/negotiator/blob/b9489ef4a29d717f22e08005955115087fcb51bb/negotiator.go#L51-L58", "partition": "valid"} +{"repo": "divideandconquer/negotiator", "path": "negotiator.go", "func_name": "AddEncoder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddEncoder registers a mimetype and its encoder to be used if a client\n// requests that mimetype", "docstring_tokens": ["AddEncoder", "registers", "a", "mimetype", "and", "its", "encoder", "to", "be", "used", "if", "a", "client", "requests", "that", "mimetype"], "sha": "b9489ef4a29d717f22e08005955115087fcb51bb", "url": "https://github.com/divideandconquer/negotiator/blob/b9489ef4a29d717f22e08005955115087fcb51bb/negotiator.go#L62-L67", "partition": "valid"} +{"repo": "divideandconquer/negotiator", "path": "negotiator.go", "func_name": "getEncoder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getEncoder parses the Accept header an returns the appropriate encoder to use", "docstring_tokens": ["getEncoder", "parses", "the", "Accept", "header", "an", "returns", "the", "appropriate", "encoder", "to", "use"], "sha": "b9489ef4a29d717f22e08005955115087fcb51bb", "url": "https://github.com/divideandconquer/negotiator/blob/b9489ef4a29d717f22e08005955115087fcb51bb/negotiator.go#L70-L81", "partition": "valid"} +{"repo": "lavab/webhook", "path": "Godeps/_workspace/src/golang.org/x/crypto/openpgp/packet/packet.go", "func_name": "CanSign", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CanSign returns true if it's possible for a public key of the given type to\n// sign a message.", "docstring_tokens": ["CanSign", "returns", "true", "if", "it", "s", "possible", "for", "a", "public", "key", "of", "the", "given", "type", "to", "sign", "a", "message", "."], "sha": "e797c0d0c9247db8813eff17df22741a912adb61", "url": "https://github.com/lavab/webhook/blob/e797c0d0c9247db8813eff17df22741a912adb61/Godeps/_workspace/src/golang.org/x/crypto/openpgp/packet/packet.go#L428-L434", "partition": "valid"} +{"repo": "ckpt/backend-services", "path": "tournaments/standings.go", "func_name": "ByWinnings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Various ways to sort the player standings using helper structs that\n// implement different comparison methods.", "docstring_tokens": ["Various", "ways", "to", "sort", "the", "player", "standings", "using", "helper", "structs", "that", "implement", "different", "comparison", "methods", "."], "sha": "9af3b72a36b834bfeb8ff4dbc74ccd8ea2ce4afa", "url": "https://github.com/ckpt/backend-services/blob/9af3b72a36b834bfeb8ff4dbc74ccd8ea2ce4afa/tournaments/standings.go#L622-L628", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "thread.go", "func_name": "WaitFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WaitFunc waits until specified function returns true.", "docstring_tokens": ["WaitFunc", "waits", "until", "specified", "function", "returns", "true", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/thread.go#L24-L38", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "docker/networknode.go", "func_name": "FormatDialAddress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FormatDialAddress returns an address as expected by net.Dial.", "docstring_tokens": ["FormatDialAddress", "returns", "an", "address", "as", "expected", "by", "net", ".", "Dial", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/docker/networknode.go#L33-L35", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "docker/networknode.go", "func_name": "SetFromDocker", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetFromDocker parses port as provided by Docker and extract protocol and port\n// number.", "docstring_tokens": ["SetFromDocker", "parses", "port", "as", "provided", "by", "Docker", "and", "extract", "protocol", "and", "port", "number", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/docker/networknode.go#L39-L48", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "crypt/random.go", "func_name": "Read", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read fills specified byte array with random data.\n// Always return parameter array length and no errors.", "docstring_tokens": ["Read", "fills", "specified", "byte", "array", "with", "random", "data", ".", "Always", "return", "parameter", "array", "length", "and", "no", "errors", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/crypt/random.go#L50-L59", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "crypt/random.go", "func_name": "readByte", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// readByte creates a single random byte.", "docstring_tokens": ["readByte", "creates", "a", "single", "random", "byte", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/crypt/random.go#L62-L74", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "http/middlewares.go", "func_name": "RecoverHandlerJson", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RecoverHandlerJson is a HTTP request middleware that captures panic errors\n// and returns it as HTTP JSON response.", "docstring_tokens": ["RecoverHandlerJson", "is", "a", "HTTP", "request", "middleware", "that", "captures", "panic", "errors", "and", "returns", "it", "as", "HTTP", "JSON", "response", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/http/middlewares.go#L26-L40", "partition": "valid"} +{"repo": "the-anna-project/random", "path": "service.go", "func_name": "DefaultServiceConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DefaultServiceConfig provides a default configuration to create a new random\n// service by best effort.", "docstring_tokens": ["DefaultServiceConfig", "provides", "a", "default", "configuration", "to", "create", "a", "new", "random", "service", "by", "best", "effort", "."], "sha": "3737a3bfd4b8cf6320f7c54e913a75454a4986de", "url": "https://github.com/the-anna-project/random/blob/3737a3bfd4b8cf6320f7c54e913a75454a4986de/service.go#L37-L49", "partition": "valid"} +{"repo": "the-anna-project/random", "path": "service.go", "func_name": "NewService", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewService creates a new configured random service.", "docstring_tokens": ["NewService", "creates", "a", "new", "configured", "random", "service", "."], "sha": "3737a3bfd4b8cf6320f7c54e913a75454a4986de", "url": "https://github.com/the-anna-project/random/blob/3737a3bfd4b8cf6320f7c54e913a75454a4986de/service.go#L52-L77", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "docker/mongodb.go", "func_name": "RunLight", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RunLight creates a light instance of MongoDB image.", "docstring_tokens": ["RunLight", "creates", "a", "light", "instance", "of", "MongoDB", "image", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/docker/mongodb.go#L44-L47", "partition": "valid"} +{"repo": "reddec/file-stack", "path": "cmd/fstack/cmd/root.go", "func_name": "initConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// initConfig reads in config file and ENV variables if set.", "docstring_tokens": ["initConfig", "reads", "in", "config", "file", "and", "ENV", "variables", "if", "set", "."], "sha": "7b3b2c56241628f0fa8454fcfe44b266b025e5bf", "url": "https://github.com/reddec/file-stack/blob/7b3b2c56241628f0fa8454fcfe44b266b025e5bf/cmd/fstack/cmd/root.go#L110-L129", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "docker/container.go", "func_name": "HasExposedPorts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasExposedPorts returns whether current container has exposed ports.", "docstring_tokens": ["HasExposedPorts", "returns", "whether", "current", "container", "has", "exposed", "ports", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/docker/container.go#L41-L54", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "docker/container.go", "func_name": "Inspect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Inspect returns container configuration.", "docstring_tokens": ["Inspect", "returns", "container", "configuration", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/docker/container.go#L57-L75", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "docker/container.go", "func_name": "Kill", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Kill terminates current container process.", "docstring_tokens": ["Kill", "terminates", "current", "container", "process", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/docker/container.go#L78-L101", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "docker/container.go", "func_name": "NetworkNodes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NetworkNodes returns the network addresses and exposed ports of current\n// container.", "docstring_tokens": ["NetworkNodes", "returns", "the", "network", "addresses", "and", "exposed", "ports", "of", "current", "container", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/docker/container.go#L105-L137", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "docker/container.go", "func_name": "Remove", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Remove erases current container from Docker.", "docstring_tokens": ["Remove", "erases", "current", "container", "from", "Docker", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/docker/container.go#L140-L142", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "docker/container.go", "func_name": "WaitStartup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WaitStartup blocks current thread until current container begins to listen\n// exposed port.", "docstring_tokens": ["WaitStartup", "blocks", "current", "thread", "until", "current", "container", "begins", "to", "listen", "exposed", "port", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/docker/container.go#L146-L164", "partition": "valid"} +{"repo": "janos/logging", "path": "prometheus/prometheus.go", "func_name": "NewHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewHandler returns new Handler instance.", "docstring_tokens": ["NewHandler", "returns", "new", "Handler", "instance", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/prometheus/prometheus.go#L20-L25", "partition": "valid"} +{"repo": "janos/logging", "path": "prometheus/prometheus.go", "func_name": "Handle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Handle increments Prometheus counter metrics based on\n// record log level.", "docstring_tokens": ["Handle", "increments", "Prometheus", "counter", "metrics", "based", "on", "record", "log", "level", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/prometheus/prometheus.go#L29-L49", "partition": "valid"} +{"repo": "janos/logging", "path": "prometheus/prometheus.go", "func_name": "NewCounter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCounter creates new Counter instance.\n// Options value can be nil.", "docstring_tokens": ["NewCounter", "creates", "new", "Counter", "instance", ".", "Options", "value", "can", "be", "nil", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/prometheus/prometheus.go#L87-L115", "partition": "valid"} +{"repo": "janos/logging", "path": "prometheus/prometheus.go", "func_name": "Metrics", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Metrics retuns all Prometheus metrics that\n// should be registered.", "docstring_tokens": ["Metrics", "retuns", "all", "Prometheus", "metrics", "that", "should", "be", "registered", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/prometheus/prometheus.go#L119-L121", "partition": "valid"} +{"repo": "ZoltanLajosKis/go-assets", "path": "assets.go", "func_name": "Retrieve", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Retrieve retrieves and processes the specified asset sources, and returns\n// them using a http.FileSystem interface.", "docstring_tokens": ["Retrieve", "retrieves", "and", "processes", "the", "specified", "asset", "sources", "and", "returns", "them", "using", "a", "http", ".", "FileSystem", "interface", "."], "sha": "8c6d2528b98ec48b3667b9271092ba4e96022ebb", "url": "https://github.com/ZoltanLajosKis/go-assets/blob/8c6d2528b98ec48b3667b9271092ba4e96022ebb/assets.go#L42-L102", "partition": "valid"} +{"repo": "ZoltanLajosKis/go-assets", "path": "assets.go", "func_name": "Compile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Compile retrieves and processes the specified asset sources, and\n// compiles them to the specified variable in the source file.", "docstring_tokens": ["Compile", "retrieves", "and", "processes", "the", "specified", "asset", "sources", "and", "compiles", "them", "to", "the", "specified", "variable", "in", "the", "source", "file", "."], "sha": "8c6d2528b98ec48b3667b9271092ba4e96022ebb", "url": "https://github.com/ZoltanLajosKis/go-assets/blob/8c6d2528b98ec48b3667b9271092ba4e96022ebb/assets.go#L106-L133", "partition": "valid"} +{"repo": "reddec/file-stack", "path": "stack.go", "func_name": "readBlockAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read meta-info at specified place", "docstring_tokens": ["Read", "meta", "-", "info", "at", "specified", "place"], "sha": "7b3b2c56241628f0fa8454fcfe44b266b025e5bf", "url": "https://github.com/reddec/file-stack/blob/7b3b2c56241628f0fa8454fcfe44b266b025e5bf/stack.go#L34-L41", "partition": "valid"} +{"repo": "reddec/file-stack", "path": "stack.go", "func_name": "writeTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write meta-info to specified place", "docstring_tokens": ["Write", "meta", "-", "info", "to", "specified", "place"], "sha": "7b3b2c56241628f0fa8454fcfe44b266b025e5bf", "url": "https://github.com/reddec/file-stack/blob/7b3b2c56241628f0fa8454fcfe44b266b025e5bf/stack.go#L44-L50", "partition": "valid"} +{"repo": "reddec/file-stack", "path": "stack.go", "func_name": "Push", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Push header and body to stack. Returns new value of stack depth", "docstring_tokens": ["Push", "header", "and", "body", "to", "stack", ".", "Returns", "new", "value", "of", "stack", "depth"], "sha": "7b3b2c56241628f0fa8454fcfe44b266b025e5bf", "url": "https://github.com/reddec/file-stack/blob/7b3b2c56241628f0fa8454fcfe44b266b025e5bf/stack.go#L58-L102", "partition": "valid"} +{"repo": "reddec/file-stack", "path": "stack.go", "func_name": "Pop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Pop one segment from tail of stack. Returns nil,nil,nil if depth is 0", "docstring_tokens": ["Pop", "one", "segment", "from", "tail", "of", "stack", ".", "Returns", "nil", "nil", "nil", "if", "depth", "is", "0"], "sha": "7b3b2c56241628f0fa8454fcfe44b266b025e5bf", "url": "https://github.com/reddec/file-stack/blob/7b3b2c56241628f0fa8454fcfe44b266b025e5bf/stack.go#L105-L146", "partition": "valid"} +{"repo": "reddec/file-stack", "path": "stack.go", "func_name": "Peak", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Peak of stack - get one segment from stack but not remove", "docstring_tokens": ["Peak", "of", "stack", "-", "get", "one", "segment", "from", "stack", "but", "not", "remove"], "sha": "7b3b2c56241628f0fa8454fcfe44b266b025e5bf", "url": "https://github.com/reddec/file-stack/blob/7b3b2c56241628f0fa8454fcfe44b266b025e5bf/stack.go#L149-L173", "partition": "valid"} +{"repo": "reddec/file-stack", "path": "stack.go", "func_name": "PeakHeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PeakHeader get only header part from tail segment from stack without remove", "docstring_tokens": ["PeakHeader", "get", "only", "header", "part", "from", "tail", "segment", "from", "stack", "without", "remove"], "sha": "7b3b2c56241628f0fa8454fcfe44b266b025e5bf", "url": "https://github.com/reddec/file-stack/blob/7b3b2c56241628f0fa8454fcfe44b266b025e5bf/stack.go#L176-L194", "partition": "valid"} +{"repo": "reddec/file-stack", "path": "stack.go", "func_name": "IterateBackward", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IterateBackward - iterate over hole stack segment-by-segment from end to begining", "docstring_tokens": ["IterateBackward", "-", "iterate", "over", "hole", "stack", "segment", "-", "by", "-", "segment", "from", "end", "to", "begining"], "sha": "7b3b2c56241628f0fa8454fcfe44b266b025e5bf", "url": "https://github.com/reddec/file-stack/blob/7b3b2c56241628f0fa8454fcfe44b266b025e5bf/stack.go#L203-L247", "partition": "valid"} +{"repo": "reddec/file-stack", "path": "stack.go", "func_name": "IterateForward", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IterateForward - iterate over hole stack segment-by-segment from begining to end. If all segments\n// iterated stack may be repaired", "docstring_tokens": ["IterateForward", "-", "iterate", "over", "hole", "stack", "segment", "-", "by", "-", "segment", "from", "begining", "to", "end", ".", "If", "all", "segments", "iterated", "stack", "may", "be", "repaired"], "sha": "7b3b2c56241628f0fa8454fcfe44b266b025e5bf", "url": "https://github.com/reddec/file-stack/blob/7b3b2c56241628f0fa8454fcfe44b266b025e5bf/stack.go#L251-L315", "partition": "valid"} +{"repo": "reddec/file-stack", "path": "stack.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close backend stack file. If access is requried, file will automatically reopened", "docstring_tokens": ["Close", "backend", "stack", "file", ".", "If", "access", "is", "requried", "file", "will", "automatically", "reopened"], "sha": "7b3b2c56241628f0fa8454fcfe44b266b025e5bf", "url": "https://github.com/reddec/file-stack/blob/7b3b2c56241628f0fa8454fcfe44b266b025e5bf/stack.go#L321-L330", "partition": "valid"} +{"repo": "reddec/file-stack", "path": "stack.go", "func_name": "OpenStack", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OpenStack - open or create stack", "docstring_tokens": ["OpenStack", "-", "open", "or", "create", "stack"], "sha": "7b3b2c56241628f0fa8454fcfe44b266b025e5bf", "url": "https://github.com/reddec/file-stack/blob/7b3b2c56241628f0fa8454fcfe44b266b025e5bf/stack.go#L344-L350", "partition": "valid"} +{"repo": "reddec/file-stack", "path": "stack.go", "func_name": "NewStack", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewStack - create new stack based on file", "docstring_tokens": ["NewStack", "-", "create", "new", "stack", "based", "on", "file"], "sha": "7b3b2c56241628f0fa8454fcfe44b266b025e5bf", "url": "https://github.com/reddec/file-stack/blob/7b3b2c56241628f0fa8454fcfe44b266b025e5bf/stack.go#L362-L370", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "http/sessioncache.go", "func_name": "NewSessionCache", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSessionCache creates a new instance of SessionCache and defines a lifetime\n// for sessions and a initial salt for random input.", "docstring_tokens": ["NewSessionCache", "creates", "a", "new", "instance", "of", "SessionCache", "and", "defines", "a", "lifetime", "for", "sessions", "and", "a", "initial", "salt", "for", "random", "input", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/http/sessioncache.go#L38-L44", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "http/sessioncache.go", "func_name": "getInvalidTokenError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getInvalidTokenError gets the default error when an invalid or expired token\n// is requested.", "docstring_tokens": ["getInvalidTokenError", "gets", "the", "default", "error", "when", "an", "invalid", "or", "expired", "token", "is", "requested", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/http/sessioncache.go#L53-L56", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "http/sessioncache.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get gets the value stored by specified token.", "docstring_tokens": ["Get", "gets", "the", "value", "stored", "by", "specified", "token", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/http/sessioncache.go#L59-L65", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "http/sessioncache.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add creates a new unique token and stores it into current SessionCache\n// instance.\n//\n// The token creation will take at least 200 microseconds, but could normally\n// take 2.5 milliseconds. The token generation function it is built with\n// security over performance.", "docstring_tokens": ["Add", "creates", "a", "new", "unique", "token", "and", "stores", "it", "into", "current", "SessionCache", "instance", ".", "The", "token", "creation", "will", "take", "at", "least", "200", "microseconds", "but", "could", "normally", "take", "2", ".", "5", "milliseconds", ".", "The", "token", "generation", "function", "it", "is", "built", "with", "security", "over", "performance", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/http/sessioncache.go#L73-L82", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "http/sessioncache.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete deletes specified token from current SessionCache instance.", "docstring_tokens": ["Delete", "deletes", "specified", "token", "from", "current", "SessionCache", "instance", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/http/sessioncache.go#L85-L91", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "http/sessioncache.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set store a value to specified token.", "docstring_tokens": ["Set", "store", "a", "value", "to", "specified", "token", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/http/sessioncache.go#L94-L100", "partition": "valid"} +{"repo": "horgh/boxcat", "path": "client.go", "func_name": "NewClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClient creates a Client.", "docstring_tokens": ["NewClient", "creates", "a", "Client", "."], "sha": "6760ed12cce648fc79bd5c2f5873723d47285551", "url": "https://github.com/horgh/boxcat/blob/6760ed12cce648fc79bd5c2f5873723d47285551/client.go#L38-L50", "partition": "valid"} +{"repo": "horgh/boxcat", "path": "client.go", "func_name": "connect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// connect opens a new connection to the server.", "docstring_tokens": ["connect", "opens", "a", "new", "connection", "to", "the", "server", "."], "sha": "6760ed12cce648fc79bd5c2f5873723d47285551", "url": "https://github.com/horgh/boxcat/blob/6760ed12cce648fc79bd5c2f5873723d47285551/client.go#L107-L122", "partition": "valid"} +{"repo": "horgh/boxcat", "path": "client.go", "func_name": "writeMessage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// writeMessage writes an IRC message to the connection.", "docstring_tokens": ["writeMessage", "writes", "an", "IRC", "message", "to", "the", "connection", "."], "sha": "6760ed12cce648fc79bd5c2f5873723d47285551", "url": "https://github.com/horgh/boxcat/blob/6760ed12cce648fc79bd5c2f5873723d47285551/client.go#L198-L224", "partition": "valid"} +{"repo": "horgh/boxcat", "path": "client.go", "func_name": "readMessage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// readMessage reads a line from the connection and parses it as an IRC message.", "docstring_tokens": ["readMessage", "reads", "a", "line", "from", "the", "connection", "and", "parses", "it", "as", "an", "IRC", "message", "."], "sha": "6760ed12cce648fc79bd5c2f5873723d47285551", "url": "https://github.com/horgh/boxcat/blob/6760ed12cce648fc79bd5c2f5873723d47285551/client.go#L227-L246", "partition": "valid"} +{"repo": "horgh/boxcat", "path": "client.go", "func_name": "Stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stop shuts down the client and cleans up.\n//\n// You must not send any messages on the send channel after calling this\n// function.", "docstring_tokens": ["Stop", "shuts", "down", "the", "client", "and", "cleans", "up", ".", "You", "must", "not", "send", "any", "messages", "on", "the", "send", "channel", "after", "calling", "this", "function", "."], "sha": "6760ed12cce648fc79bd5c2f5873723d47285551", "url": "https://github.com/horgh/boxcat/blob/6760ed12cce648fc79bd5c2f5873723d47285551/client.go#L252-L272", "partition": "valid"} +{"repo": "horgh/boxcat", "path": "client.go", "func_name": "GetChannels", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetChannels retrieves the IRC channels the client is on.", "docstring_tokens": ["GetChannels", "retrieves", "the", "IRC", "channels", "the", "client", "is", "on", "."], "sha": "6760ed12cce648fc79bd5c2f5873723d47285551", "url": "https://github.com/horgh/boxcat/blob/6760ed12cce648fc79bd5c2f5873723d47285551/client.go#L287-L295", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "http/json.go", "func_name": "JsonWrite", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// JsonWrite sets response content type to JSON, sets HTTP status and serializes\n// defined content to JSON format.", "docstring_tokens": ["JsonWrite", "sets", "response", "content", "type", "to", "JSON", "sets", "HTTP", "status", "and", "serializes", "defined", "content", "to", "JSON", "format", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/http/json.go#L35-L41", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "http/json.go", "func_name": "JsonRead", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// JsonRead tries to read client sent content using JSON deserialization and\n// writes it to defined object.", "docstring_tokens": ["JsonRead", "tries", "to", "read", "client", "sent", "content", "using", "JSON", "deserialization", "and", "writes", "it", "to", "defined", "object", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/http/json.go#L45-L66", "partition": "valid"} +{"repo": "lavab/webhook", "path": "Godeps/_workspace/src/golang.org/x/crypto/openpgp/packet/public_key.go", "func_name": "VerifyKeySignature", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// VerifyKeySignature returns nil iff sig is a valid signature, made by this\n// public key, of signed.", "docstring_tokens": ["VerifyKeySignature", "returns", "nil", "iff", "sig", "is", "a", "valid", "signature", "made", "by", "this", "public", "key", "of", "signed", "."], "sha": "e797c0d0c9247db8813eff17df22741a912adb61", "url": "https://github.com/lavab/webhook/blob/e797c0d0c9247db8813eff17df22741a912adb61/Godeps/_workspace/src/golang.org/x/crypto/openpgp/packet/public_key.go#L567-L573", "partition": "valid"} +{"repo": "ckpt/backend-services", "path": "players/users.go", "func_name": "NewUser", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create a user", "docstring_tokens": ["Create", "a", "user"], "sha": "9af3b72a36b834bfeb8ff4dbc74ccd8ea2ce4afa", "url": "https://github.com/ckpt/backend-services/blob/9af3b72a36b834bfeb8ff4dbc74ccd8ea2ce4afa/players/users.go#L20-L34", "partition": "valid"} +{"repo": "smagch/patree", "path": "patree.go", "func_name": "Next", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Next invoke next route with the given ResponseWriter and Request", "docstring_tokens": ["Next", "invoke", "next", "route", "with", "the", "given", "ResponseWriter", "and", "Request"], "sha": "cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd", "url": "https://github.com/smagch/patree/blob/cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd/patree.go#L31-L42", "partition": "valid"} +{"repo": "smagch/patree", "path": "patree.go", "func_name": "ServeHTTP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServeHTTP implement http.Handler interface", "docstring_tokens": ["ServeHTTP", "implement", "http", ".", "Handler", "interface"], "sha": "cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd", "url": "https://github.com/smagch/patree/blob/cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd/patree.go#L95-L98", "partition": "valid"} +{"repo": "smagch/patree", "path": "patree.go", "func_name": "UseHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UseHandler appends a Handler to the route.", "docstring_tokens": ["UseHandler", "appends", "a", "Handler", "to", "the", "route", "."], "sha": "cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd", "url": "https://github.com/smagch/patree/blob/cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd/patree.go#L111-L119", "partition": "valid"} +{"repo": "smagch/patree", "path": "patree.go", "func_name": "HandleMethod", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HandleMethod registers handler funcs with the given pattern and method.", "docstring_tokens": ["HandleMethod", "registers", "handler", "funcs", "with", "the", "given", "pattern", "and", "method", "."], "sha": "cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd", "url": "https://github.com/smagch/patree/blob/cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd/patree.go#L151-L157", "partition": "valid"} +{"repo": "smagch/patree", "path": "patree.go", "func_name": "Handle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Handle registers handler funcs with the given pattern.", "docstring_tokens": ["Handle", "registers", "handler", "funcs", "with", "the", "given", "pattern", "."], "sha": "cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd", "url": "https://github.com/smagch/patree/blob/cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd/patree.go#L160-L166", "partition": "valid"} +{"repo": "smagch/patree", "path": "patree.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get registers handlers with the given pattern for GET and HEAD method", "docstring_tokens": ["Get", "registers", "handlers", "with", "the", "given", "pattern", "for", "GET", "and", "HEAD", "method"], "sha": "cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd", "url": "https://github.com/smagch/patree/blob/cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd/patree.go#L169-L172", "partition": "valid"} +{"repo": "smagch/patree", "path": "patree.go", "func_name": "Post", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Post registers handlers with the given pattern for POST method", "docstring_tokens": ["Post", "registers", "handlers", "with", "the", "given", "pattern", "for", "POST", "method"], "sha": "cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd", "url": "https://github.com/smagch/patree/blob/cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd/patree.go#L175-L177", "partition": "valid"} +{"repo": "smagch/patree", "path": "patree.go", "func_name": "Put", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Put registers handlers with the given pattern for PUT method", "docstring_tokens": ["Put", "registers", "handlers", "with", "the", "given", "pattern", "for", "PUT", "method"], "sha": "cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd", "url": "https://github.com/smagch/patree/blob/cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd/patree.go#L180-L182", "partition": "valid"} +{"repo": "smagch/patree", "path": "patree.go", "func_name": "Patch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Patch registers handlers with the given pattern for PATCH method", "docstring_tokens": ["Patch", "registers", "handlers", "with", "the", "given", "pattern", "for", "PATCH", "method"], "sha": "cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd", "url": "https://github.com/smagch/patree/blob/cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd/patree.go#L185-L187", "partition": "valid"} +{"repo": "smagch/patree", "path": "patree.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete registers handlers with the given pattern for DELETE method", "docstring_tokens": ["Delete", "registers", "handlers", "with", "the", "given", "pattern", "for", "DELETE", "method"], "sha": "cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd", "url": "https://github.com/smagch/patree/blob/cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd/patree.go#L190-L192", "partition": "valid"} +{"repo": "smagch/patree", "path": "patree.go", "func_name": "Options", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Options registers handlers with the given pattern for OPTIONS method", "docstring_tokens": ["Options", "registers", "handlers", "with", "the", "given", "pattern", "for", "OPTIONS", "method"], "sha": "cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd", "url": "https://github.com/smagch/patree/blob/cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd/patree.go#L195-L197", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "crypt/salter.go", "func_name": "NewSalter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSalter creates a new instance of Salter. It requires a list of sources of\n// random data and optionally an input to salt next token.", "docstring_tokens": ["NewSalter", "creates", "a", "new", "instance", "of", "Salter", ".", "It", "requires", "a", "list", "of", "sources", "of", "random", "data", "and", "optionally", "an", "input", "to", "salt", "next", "token", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/crypt/salter.go#L38-L56", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "crypt/salter.go", "func_name": "BToken", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BToken generates an array of random bytes with length as specified by size\n// parameter.", "docstring_tokens": ["BToken", "generates", "an", "array", "of", "random", "bytes", "with", "length", "as", "specified", "by", "size", "parameter", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/crypt/salter.go#L60-L71", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "crypt/salter.go", "func_name": "Token", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Token generates a base-64 string of random bytes with length as specified by\n// size parameter.", "docstring_tokens": ["Token", "generates", "a", "base", "-", "64", "string", "of", "random", "bytes", "with", "length", "as", "specified", "by", "size", "parameter", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/crypt/salter.go#L85-L87", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "crypt/salter.go", "func_name": "getRandomBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getRandomBytes gets secure random bytes.", "docstring_tokens": ["getRandomBytes", "gets", "secure", "random", "bytes", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/crypt/salter.go#L90-L98", "partition": "valid"} +{"repo": "ckpt/backend-services", "path": "news/news.go", "func_name": "NewNewsItem", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//\n// NewsItem related functions and methods\n//\n// Create a NewsItem", "docstring_tokens": ["NewsItem", "related", "functions", "and", "methods", "Create", "a", "NewsItem"], "sha": "9af3b72a36b834bfeb8ff4dbc74ccd8ea2ce4afa", "url": "https://github.com/ckpt/backend-services/blob/9af3b72a36b834bfeb8ff4dbc74ccd8ea2ce4afa/news/news.go#L61-L77", "partition": "valid"} +{"repo": "janos/logging", "path": "writers.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write logs an Debug message to a logger.", "docstring_tokens": ["Write", "logs", "an", "Debug", "message", "to", "a", "logger", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/writers.go#L26-L29", "partition": "valid"} +{"repo": "janos/logging", "path": "writers.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write logs an Info message to a logger.", "docstring_tokens": ["Write", "logs", "an", "Info", "message", "to", "a", "logger", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/writers.go#L44-L47", "partition": "valid"} +{"repo": "janos/logging", "path": "writers.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write logs an Warning message to a logger.", "docstring_tokens": ["Write", "logs", "an", "Warning", "message", "to", "a", "logger", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/writers.go#L62-L65", "partition": "valid"} +{"repo": "janos/logging", "path": "writers.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write logs an Error message to a logger.", "docstring_tokens": ["Write", "logs", "an", "Error", "message", "to", "a", "logger", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/writers.go#L80-L83", "partition": "valid"} +{"repo": "janos/logging", "path": "logging.go", "func_name": "GetLogger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLogger returns logger instance based on provided name.\n// If logger does not exist, error will be returned.", "docstring_tokens": ["GetLogger", "returns", "logger", "instance", "based", "on", "provided", "name", ".", "If", "logger", "does", "not", "exist", "error", "will", "be", "returned", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/logging.go#L71-L82", "partition": "valid"} +{"repo": "janos/logging", "path": "logging.go", "func_name": "RemoveLogger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveLogger deletes logger from global logger registry.", "docstring_tokens": ["RemoveLogger", "deletes", "logger", "from", "global", "logger", "registry", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/logging.go#L85-L92", "partition": "valid"} +{"repo": "janos/logging", "path": "logging.go", "func_name": "WaitForAllUnprocessedRecords", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WaitForAllUnprocessedRecords blocks execution until all unprocessed\n// log records are processed.\n// Since this library implements async logging, it is possible to have\n// unprocessed logs at the moment when application is terminating.\n// In that case, log messages can be lost. This mehtods blocks execution\n// until all log records are processed, to ensure that all log messages\n// are handled.", "docstring_tokens": ["WaitForAllUnprocessedRecords", "blocks", "execution", "until", "all", "unprocessed", "log", "records", "are", "processed", ".", "Since", "this", "library", "implements", "async", "logging", "it", "is", "possible", "to", "have", "unprocessed", "logs", "at", "the", "moment", "when", "application", "is", "terminating", ".", "In", "that", "case", "log", "messages", "can", "be", "lost", ".", "This", "mehtods", "blocks", "execution", "until", "all", "log", "records", "are", "processed", "to", "ensure", "that", "all", "log", "messages", "are", "handled", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/logging.go#L110-L122", "partition": "valid"} +{"repo": "janos/logging", "path": "logging.go", "func_name": "run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// run starts async log records processing.", "docstring_tokens": ["run", "starts", "async", "log", "records", "processing", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/logging.go#L130-L162", "partition": "valid"} +{"repo": "janos/logging", "path": "logging.go", "func_name": "WaitForUnprocessedRecords", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WaitForUnprocessedRecords block execution until all unprocessed log records\n// for this logger are processed.\n// In order to wait for processing in all loggers, logging.WaitForAllUnprocessedRecords\n// can be used.", "docstring_tokens": ["WaitForUnprocessedRecords", "block", "execution", "until", "all", "unprocessed", "log", "records", "for", "this", "logger", "are", "processed", ".", "In", "order", "to", "wait", "for", "processing", "in", "all", "loggers", "logging", ".", "WaitForAllUnprocessedRecords", "can", "be", "used", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/logging.go#L168-L190", "partition": "valid"} +{"repo": "janos/logging", "path": "logging.go", "func_name": "SetBufferLength", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetBufferLength sets length of buffer for accepting log records.", "docstring_tokens": ["SetBufferLength", "sets", "length", "of", "buffer", "for", "accepting", "log", "records", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/logging.go#L216-L226", "partition": "valid"} +{"repo": "janos/logging", "path": "logging.go", "func_name": "AddHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddHandler add new handler to current logger.", "docstring_tokens": ["AddHandler", "add", "new", "handler", "to", "current", "logger", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/logging.go#L229-L234", "partition": "valid"} +{"repo": "janos/logging", "path": "logging.go", "func_name": "ClearHandlers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ClearHandlers removes all handlers from current logger.", "docstring_tokens": ["ClearHandlers", "removes", "all", "handlers", "from", "current", "logger", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/logging.go#L237-L243", "partition": "valid"} +{"repo": "janos/logging", "path": "logging.go", "func_name": "SetLevel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetLevel sets lower level that current logger will process.", "docstring_tokens": ["SetLevel", "sets", "lower", "level", "that", "current", "logger", "will", "process", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/logging.go#L246-L251", "partition": "valid"} +{"repo": "janos/logging", "path": "logging.go", "func_name": "log", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// log creates log record and submits it for processing.", "docstring_tokens": ["log", "creates", "log", "record", "and", "submits", "it", "for", "processing", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/logging.go#L275-L289", "partition": "valid"} +{"repo": "janos/logging", "path": "logging.go", "func_name": "Logf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Logf logs provided message with formatting.", "docstring_tokens": ["Logf", "logs", "provided", "message", "with", "formatting", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/logging.go#L292-L294", "partition": "valid"} +{"repo": "janos/logging", "path": "logging.go", "func_name": "Log", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Log logs provided message.", "docstring_tokens": ["Log", "logs", "provided", "message", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/logging.go#L297-L299", "partition": "valid"} +{"repo": "janos/logging", "path": "logging.go", "func_name": "Emergencyf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Emergencyf logs provided message with formatting in EMERGENCY level.", "docstring_tokens": ["Emergencyf", "logs", "provided", "message", "with", "formatting", "in", "EMERGENCY", "level", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/logging.go#L302-L304", "partition": "valid"} +{"repo": "janos/logging", "path": "logging.go", "func_name": "Alertf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Alertf logs provided message with formatting in ALERT level.", "docstring_tokens": ["Alertf", "logs", "provided", "message", "with", "formatting", "in", "ALERT", "level", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/logging.go#L312-L314", "partition": "valid"} +{"repo": "janos/logging", "path": "logging.go", "func_name": "Criticalf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Criticalf logs provided message with formatting in CRITICAL level.", "docstring_tokens": ["Criticalf", "logs", "provided", "message", "with", "formatting", "in", "CRITICAL", "level", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/logging.go#L322-L324", "partition": "valid"} +{"repo": "janos/logging", "path": "logging.go", "func_name": "Errorf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Errorf logs provided message with formatting in ERROR level.", "docstring_tokens": ["Errorf", "logs", "provided", "message", "with", "formatting", "in", "ERROR", "level", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/logging.go#L332-L334", "partition": "valid"} +{"repo": "janos/logging", "path": "logging.go", "func_name": "Warningf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Warningf logs provided message with formatting in WARNING level.", "docstring_tokens": ["Warningf", "logs", "provided", "message", "with", "formatting", "in", "WARNING", "level", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/logging.go#L342-L344", "partition": "valid"} +{"repo": "janos/logging", "path": "logging.go", "func_name": "Noticef", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Noticef logs provided message with formatting in NOTICE level.", "docstring_tokens": ["Noticef", "logs", "provided", "message", "with", "formatting", "in", "NOTICE", "level", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/logging.go#L352-L354", "partition": "valid"} +{"repo": "janos/logging", "path": "logging.go", "func_name": "Infof", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Infof logs provided message with formatting in INFO level.", "docstring_tokens": ["Infof", "logs", "provided", "message", "with", "formatting", "in", "INFO", "level", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/logging.go#L362-L364", "partition": "valid"} +{"repo": "janos/logging", "path": "logging.go", "func_name": "Debugf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Debugf logs provided message with formatting in DEBUG level.", "docstring_tokens": ["Debugf", "logs", "provided", "message", "with", "formatting", "in", "DEBUG", "level", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/logging.go#L372-L374", "partition": "valid"} +{"repo": "smagch/patree", "path": "entry.go", "func_name": "SetHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetHandler reigsters the given handler that matches with any method.", "docstring_tokens": ["SetHandler", "reigsters", "the", "given", "handler", "that", "matches", "with", "any", "method", "."], "sha": "cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd", "url": "https://github.com/smagch/patree/blob/cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd/entry.go#L58-L64", "partition": "valid"} +{"repo": "smagch/patree", "path": "entry.go", "func_name": "SetMethodHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetMethodHandler reigsters the given handler for the method.", "docstring_tokens": ["SetMethodHandler", "reigsters", "the", "given", "handler", "for", "the", "method", "."], "sha": "cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd", "url": "https://github.com/smagch/patree/blob/cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd/entry.go#L67-L73", "partition": "valid"} +{"repo": "smagch/patree", "path": "entry.go", "func_name": "GetHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetHandler returns a handler with given method.", "docstring_tokens": ["GetHandler", "returns", "a", "handler", "with", "given", "method", "."], "sha": "cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd", "url": "https://github.com/smagch/patree/blob/cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd/entry.go#L76-L82", "partition": "valid"} +{"repo": "smagch/patree", "path": "entry.go", "func_name": "getChildEntry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getChildEntry returns a child Entry that matches the given pattern string.", "docstring_tokens": ["getChildEntry", "returns", "a", "child", "Entry", "that", "matches", "the", "given", "pattern", "string", "."], "sha": "cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd", "url": "https://github.com/smagch/patree/blob/cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd/entry.go#L90-L97", "partition": "valid"} +{"repo": "smagch/patree", "path": "entry.go", "func_name": "MergePatterns", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MergePattern add entry patterns with given pattern strings. If a pattern\n// already exists on the entry, it adds remaining patterns to the existing entry.", "docstring_tokens": ["MergePattern", "add", "entry", "patterns", "with", "given", "pattern", "strings", ".", "If", "a", "pattern", "already", "exists", "on", "the", "entry", "it", "adds", "remaining", "patterns", "to", "the", "existing", "entry", "."], "sha": "cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd", "url": "https://github.com/smagch/patree/blob/cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd/entry.go#L101-L110", "partition": "valid"} +{"repo": "smagch/patree", "path": "entry.go", "func_name": "AddEntry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddEntry add new child entry. Child entries are sorted irrespective of order\n// they are added. Static patterns would be indexed ahead of match patterns.", "docstring_tokens": ["AddEntry", "add", "new", "child", "entry", ".", "Child", "entries", "are", "sorted", "irrespective", "of", "order", "they", "are", "added", ".", "Static", "patterns", "would", "be", "indexed", "ahead", "of", "match", "patterns", "."], "sha": "cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd", "url": "https://github.com/smagch/patree/blob/cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd/entry.go#L114-L133", "partition": "valid"} +{"repo": "smagch/patree", "path": "entry.go", "func_name": "addPatterns", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// addPatterns adds entry children with the pattern strings.", "docstring_tokens": ["addPatterns", "adds", "entry", "children", "with", "the", "pattern", "strings", "."], "sha": "cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd", "url": "https://github.com/smagch/patree/blob/cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd/entry.go#L136-L160", "partition": "valid"} +{"repo": "smagch/patree", "path": "entry.go", "func_name": "execPrefix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// execPrefix simply see if the given urlStr has a leading pattern.", "docstring_tokens": ["execPrefix", "simply", "see", "if", "the", "given", "urlStr", "has", "a", "leading", "pattern", "."], "sha": "cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd", "url": "https://github.com/smagch/patree/blob/cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd/entry.go#L163-L171", "partition": "valid"} +{"repo": "smagch/patree", "path": "entry.go", "func_name": "traverse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// traverse tries matches to child entries.", "docstring_tokens": ["traverse", "tries", "matches", "to", "child", "entries", "."], "sha": "cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd", "url": "https://github.com/smagch/patree/blob/cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd/entry.go#L174-L181", "partition": "valid"} +{"repo": "smagch/patree", "path": "entry.go", "func_name": "getExecMatch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getExecMatch returns ExecFunc with the given name and mather.", "docstring_tokens": ["getExecMatch", "returns", "ExecFunc", "with", "the", "given", "name", "and", "mather", "."], "sha": "cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd", "url": "https://github.com/smagch/patree/blob/cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd/entry.go#L184-L207", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "http/route.go", "func_name": "MergeRoutes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MergeRoutes returns a slice with all routes returned by Routable objects.", "docstring_tokens": ["MergeRoutes", "returns", "a", "slice", "with", "all", "routes", "returned", "by", "Routable", "objects", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/http/route.go#L46-L52", "partition": "valid"} +{"repo": "calmh/logger", "path": "logger.go", "func_name": "Debugln", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Debugln logs a line with a DEBUG prefix.", "docstring_tokens": ["Debugln", "logs", "a", "line", "with", "a", "DEBUG", "prefix", "."], "sha": "c17d02abcf4626900ad8829832733a345a37962b", "url": "https://github.com/calmh/logger/blob/c17d02abcf4626900ad8829832733a345a37962b/logger.go#L103-L109", "partition": "valid"} +{"repo": "calmh/logger", "path": "logger.go", "func_name": "Debugf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Debugf logs a formatted line with a DEBUG prefix.", "docstring_tokens": ["Debugf", "logs", "a", "formatted", "line", "with", "a", "DEBUG", "prefix", "."], "sha": "c17d02abcf4626900ad8829832733a345a37962b", "url": "https://github.com/calmh/logger/blob/c17d02abcf4626900ad8829832733a345a37962b/logger.go#L112-L118", "partition": "valid"} +{"repo": "calmh/logger", "path": "logger.go", "func_name": "Verbosef", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Infof logs a formatted line with a VERBOSE prefix.", "docstring_tokens": ["Infof", "logs", "a", "formatted", "line", "with", "a", "VERBOSE", "prefix", "."], "sha": "c17d02abcf4626900ad8829832733a345a37962b", "url": "https://github.com/calmh/logger/blob/c17d02abcf4626900ad8829832733a345a37962b/logger.go#L130-L136", "partition": "valid"} +{"repo": "calmh/logger", "path": "logger.go", "func_name": "Infoln", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Infoln logs a line with an INFO prefix.", "docstring_tokens": ["Infoln", "logs", "a", "line", "with", "an", "INFO", "prefix", "."], "sha": "c17d02abcf4626900ad8829832733a345a37962b", "url": "https://github.com/calmh/logger/blob/c17d02abcf4626900ad8829832733a345a37962b/logger.go#L139-L145", "partition": "valid"} +{"repo": "calmh/logger", "path": "logger.go", "func_name": "Infof", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Infof logs a formatted line with an INFO prefix.", "docstring_tokens": ["Infof", "logs", "a", "formatted", "line", "with", "an", "INFO", "prefix", "."], "sha": "c17d02abcf4626900ad8829832733a345a37962b", "url": "https://github.com/calmh/logger/blob/c17d02abcf4626900ad8829832733a345a37962b/logger.go#L148-L154", "partition": "valid"} +{"repo": "calmh/logger", "path": "logger.go", "func_name": "Okln", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Okln logs a line with an OK prefix.", "docstring_tokens": ["Okln", "logs", "a", "line", "with", "an", "OK", "prefix", "."], "sha": "c17d02abcf4626900ad8829832733a345a37962b", "url": "https://github.com/calmh/logger/blob/c17d02abcf4626900ad8829832733a345a37962b/logger.go#L157-L163", "partition": "valid"} +{"repo": "calmh/logger", "path": "logger.go", "func_name": "Okf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Okf logs a formatted line with an OK prefix.", "docstring_tokens": ["Okf", "logs", "a", "formatted", "line", "with", "an", "OK", "prefix", "."], "sha": "c17d02abcf4626900ad8829832733a345a37962b", "url": "https://github.com/calmh/logger/blob/c17d02abcf4626900ad8829832733a345a37962b/logger.go#L166-L172", "partition": "valid"} +{"repo": "calmh/logger", "path": "logger.go", "func_name": "Fatalln", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fatalln logs a line with a FATAL prefix and exits the process with exit\n// code 1.", "docstring_tokens": ["Fatalln", "logs", "a", "line", "with", "a", "FATAL", "prefix", "and", "exits", "the", "process", "with", "exit", "code", "1", "."], "sha": "c17d02abcf4626900ad8829832733a345a37962b", "url": "https://github.com/calmh/logger/blob/c17d02abcf4626900ad8829832733a345a37962b/logger.go#L194-L201", "partition": "valid"} +{"repo": "calmh/logger", "path": "logger.go", "func_name": "Fatalf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fatalf logs a formatted line with a FATAL prefix and exits the process with\n// exit code 1.", "docstring_tokens": ["Fatalf", "logs", "a", "formatted", "line", "with", "a", "FATAL", "prefix", "and", "exits", "the", "process", "with", "exit", "code", "1", "."], "sha": "c17d02abcf4626900ad8829832733a345a37962b", "url": "https://github.com/calmh/logger/blob/c17d02abcf4626900ad8829832733a345a37962b/logger.go#L205-L212", "partition": "valid"} +{"repo": "calmh/logger", "path": "logger.go", "func_name": "ShouldDebug", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ShouldDebug returns true if the given facility has debugging enabled.", "docstring_tokens": ["ShouldDebug", "returns", "true", "if", "the", "given", "facility", "has", "debugging", "enabled", "."], "sha": "c17d02abcf4626900ad8829832733a345a37962b", "url": "https://github.com/calmh/logger/blob/c17d02abcf4626900ad8829832733a345a37962b/logger.go#L215-L220", "partition": "valid"} +{"repo": "calmh/logger", "path": "logger.go", "func_name": "SetDebug", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetDebug enabled or disables debugging for the given facility name.", "docstring_tokens": ["SetDebug", "enabled", "or", "disables", "debugging", "for", "the", "given", "facility", "name", "."], "sha": "c17d02abcf4626900ad8829832733a345a37962b", "url": "https://github.com/calmh/logger/blob/c17d02abcf4626900ad8829832733a345a37962b/logger.go#L223-L227", "partition": "valid"} +{"repo": "calmh/logger", "path": "logger.go", "func_name": "Facilities", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Facilities returns the currently known set of facilities, both those for\n// which debug is enabled and those for which it is disabled.", "docstring_tokens": ["Facilities", "returns", "the", "currently", "known", "set", "of", "facilities", "both", "those", "for", "which", "debug", "is", "enabled", "and", "those", "for", "which", "it", "is", "disabled", "."], "sha": "c17d02abcf4626900ad8829832733a345a37962b", "url": "https://github.com/calmh/logger/blob/c17d02abcf4626900ad8829832733a345a37962b/logger.go#L231-L242", "partition": "valid"} +{"repo": "calmh/logger", "path": "logger.go", "func_name": "NewFacility", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewFacility returns a new logger bound to the named facility.", "docstring_tokens": ["NewFacility", "returns", "a", "new", "logger", "bound", "to", "the", "named", "facility", "."], "sha": "c17d02abcf4626900ad8829832733a345a37962b", "url": "https://github.com/calmh/logger/blob/c17d02abcf4626900ad8829832733a345a37962b/logger.go#L245-L257", "partition": "valid"} +{"repo": "briandowns/formatifier", "path": "common.go", "func_name": "removeNonDigits", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// removeNonDigits removes any non digit characters from the string.", "docstring_tokens": ["removeNonDigits", "removes", "any", "non", "digit", "characters", "from", "the", "string", "."], "sha": "6d068a6ce63a3f36a4d6b7d31c208cb8619cc014", "url": "https://github.com/briandowns/formatifier/blob/6d068a6ce63a3f36a4d6b7d31c208cb8619cc014/common.go#L43-L46", "partition": "valid"} +{"repo": "briandowns/formatifier", "path": "common.go", "func_name": "removeNonWordChars", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// removeNonWordChars removes all non word characters.", "docstring_tokens": ["removeNonWordChars", "removes", "all", "non", "word", "characters", "."], "sha": "6d068a6ce63a3f36a4d6b7d31c208cb8619cc014", "url": "https://github.com/briandowns/formatifier/blob/6d068a6ce63a3f36a4d6b7d31c208cb8619cc014/common.go#L49-L54", "partition": "valid"} +{"repo": "briandowns/formatifier", "path": "common.go", "func_name": "urlEncodeSpaces", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// urlEncodeSpaces will replace spaces with \"%20\"'s", "docstring_tokens": ["urlEncodeSpaces", "will", "replace", "spaces", "with", "%20", "s"], "sha": "6d068a6ce63a3f36a4d6b7d31c208cb8619cc014", "url": "https://github.com/briandowns/formatifier/blob/6d068a6ce63a3f36a4d6b7d31c208cb8619cc014/common.go#L57-L60", "partition": "valid"} +{"repo": "briandowns/formatifier", "path": "common.go", "func_name": "randomSelect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// random select will return a random selection from an int slice", "docstring_tokens": ["random", "select", "will", "return", "a", "random", "selection", "from", "an", "int", "slice"], "sha": "6d068a6ce63a3f36a4d6b7d31c208cb8619cc014", "url": "https://github.com/briandowns/formatifier/blob/6d068a6ce63a3f36a4d6b7d31c208cb8619cc014/common.go#L63-L71", "partition": "valid"} +{"repo": "fcavani/log", "path": "formatter.go", "func_name": "NewStdFormatter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewStdFormatter crete a new formatter.", "docstring_tokens": ["NewStdFormatter", "crete", "a", "new", "formatter", "."], "sha": "7ec0d2cde51e1e519cd9159e695c611b5e70098b", "url": "https://github.com/fcavani/log/blob/7ec0d2cde51e1e519cd9159e695c611b5e70098b/formatter.go#L139-L163", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "http/chain.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get returns a HTTP handler which is a chain of middlewares and then the\n// specified handler.", "docstring_tokens": ["Get", "returns", "a", "HTTP", "handler", "which", "is", "a", "chain", "of", "middlewares", "and", "then", "the", "specified", "handler", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/http/chain.go#L33-L38", "partition": "valid"} +{"repo": "smagch/patree", "path": "parser.go", "func_name": "parseMatcher", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseMatcher returns matcher and name from the given pattern string.", "docstring_tokens": ["parseMatcher", "returns", "matcher", "and", "name", "from", "the", "given", "pattern", "string", "."], "sha": "cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd", "url": "https://github.com/smagch/patree/blob/cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd/parser.go#L30-L54", "partition": "valid"} +{"repo": "smagch/patree", "path": "parser.go", "func_name": "isMatchPattern", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isMatchPattern see if given string is match pattern.", "docstring_tokens": ["isMatchPattern", "see", "if", "given", "string", "is", "match", "pattern", "."], "sha": "cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd", "url": "https://github.com/smagch/patree/blob/cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd/parser.go#L57-L59", "partition": "valid"} +{"repo": "smagch/patree", "path": "parser.go", "func_name": "routeSplitFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// routeSplitFunc is the SplitFunc to scan url pattern.", "docstring_tokens": ["routeSplitFunc", "is", "the", "SplitFunc", "to", "scan", "url", "pattern", "."], "sha": "cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd", "url": "https://github.com/smagch/patree/blob/cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd/parser.go#L62-L105", "partition": "valid"} +{"repo": "smagch/patree", "path": "parser.go", "func_name": "SplitPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SplitPath splits the url pattern.", "docstring_tokens": ["SplitPath", "splits", "the", "url", "pattern", "."], "sha": "cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd", "url": "https://github.com/smagch/patree/blob/cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd/parser.go#L108-L116", "partition": "valid"} +{"repo": "smagch/patree", "path": "parser.go", "func_name": "isNextSuffixPattern", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isNextSuffixPattern see next 2 patterns can be suffix matcher. If following\n// two cases are both true, it could possibly become a suffix matcher.\n// 1. the first pattern is a Matcher.\n// 2. the next pattern is a static pattern.\n// If the first matcher can't match the first rune of the second static pattern,\n// next pattern should be a suffix matcher combined the two patterns.", "docstring_tokens": ["isNextSuffixPattern", "see", "next", "2", "patterns", "can", "be", "suffix", "matcher", ".", "If", "following", "two", "cases", "are", "both", "true", "it", "could", "possibly", "become", "a", "suffix", "matcher", ".", "1", ".", "the", "first", "pattern", "is", "a", "Matcher", ".", "2", ".", "the", "next", "pattern", "is", "a", "static", "pattern", ".", "If", "the", "first", "matcher", "can", "t", "match", "the", "first", "rune", "of", "the", "second", "static", "pattern", "next", "pattern", "should", "be", "a", "suffix", "matcher", "combined", "the", "two", "patterns", "."], "sha": "cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd", "url": "https://github.com/smagch/patree/blob/cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd/parser.go#L124-L134", "partition": "valid"} +{"repo": "smagch/patree", "path": "parser.go", "func_name": "PeekNextPattern", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PeekNextPattern returns next entry pattern with offset size", "docstring_tokens": ["PeekNextPattern", "returns", "next", "entry", "pattern", "with", "offset", "size"], "sha": "cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd", "url": "https://github.com/smagch/patree/blob/cd5eb31a6fb307b888e3f3cddbd4b9f269ef92dd/parser.go#L137-L144", "partition": "valid"} +{"repo": "ckpt/backend-services", "path": "players/players.go", "func_name": "NewPlayer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//\n// Player related functions and methods\n//\n// Create a player", "docstring_tokens": ["Player", "related", "functions", "and", "methods", "Create", "a", "player"], "sha": "9af3b72a36b834bfeb8ff4dbc74ccd8ea2ce4afa", "url": "https://github.com/ckpt/backend-services/blob/9af3b72a36b834bfeb8ff4dbc74ccd8ea2ce4afa/players/players.go#L84-L98", "partition": "valid"} +{"repo": "lavab/webhook", "path": "Godeps/_workspace/src/golang.org/x/crypto/openpgp/packet/reader.go", "func_name": "Push", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Push causes the Reader to start reading from a new io.Reader. When an EOF\n// error is seen from the new io.Reader, it is popped and the Reader continues\n// to read from the next most recent io.Reader.", "docstring_tokens": ["Push", "causes", "the", "Reader", "to", "start", "reading", "from", "a", "new", "io", ".", "Reader", ".", "When", "an", "EOF", "error", "is", "seen", "from", "the", "new", "io", ".", "Reader", "it", "is", "popped", "and", "the", "Reader", "continues", "to", "read", "from", "the", "next", "most", "recent", "io", ".", "Reader", "."], "sha": "e797c0d0c9247db8813eff17df22741a912adb61", "url": "https://github.com/lavab/webhook/blob/e797c0d0c9247db8813eff17df22741a912adb61/Godeps/_workspace/src/golang.org/x/crypto/openpgp/packet/reader.go#L48-L50", "partition": "valid"} +{"repo": "ckpt/backend-services", "path": "caterings/caterings.go", "func_name": "NewCatering", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//\n// Catering related functions and methods\n//\n// Create a Catering", "docstring_tokens": ["Catering", "related", "functions", "and", "methods", "Create", "a", "Catering"], "sha": "9af3b72a36b834bfeb8ff4dbc74ccd8ea2ce4afa", "url": "https://github.com/ckpt/backend-services/blob/9af3b72a36b834bfeb8ff4dbc74ccd8ea2ce4afa/caterings/caterings.go#L45-L56", "partition": "valid"} +{"repo": "ckpt/backend-services", "path": "tournaments/tournaments.go", "func_name": "GroupByMonths", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//\n// Tournaments related functions and methods\n//", "docstring_tokens": ["Tournaments", "related", "functions", "and", "methods"], "sha": "9af3b72a36b834bfeb8ff4dbc74ccd8ea2ce4afa", "url": "https://github.com/ckpt/backend-services/blob/9af3b72a36b834bfeb8ff4dbc74ccd8ea2ce4afa/tournaments/tournaments.go#L73-L84", "partition": "valid"} +{"repo": "ckpt/backend-services", "path": "tournaments/tournaments.go", "func_name": "validateTournamentInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//\n// Tournament related functions and methods\n//\n// Helpers", "docstring_tokens": ["Tournament", "related", "functions", "and", "methods", "Helpers"], "sha": "9af3b72a36b834bfeb8ff4dbc74ccd8ea2ce4afa", "url": "https://github.com/ckpt/backend-services/blob/9af3b72a36b834bfeb8ff4dbc74ccd8ea2ce4afa/tournaments/tournaments.go#L117-L128", "partition": "valid"} +{"repo": "ckpt/backend-services", "path": "tournaments/tournaments.go", "func_name": "NewTournament", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create a Tournament", "docstring_tokens": ["Create", "a", "Tournament"], "sha": "9af3b72a36b834bfeb8ff4dbc74ccd8ea2ce4afa", "url": "https://github.com/ckpt/backend-services/blob/9af3b72a36b834bfeb8ff4dbc74ccd8ea2ce4afa/tournaments/tournaments.go#L141-L157", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "slices.go", "func_name": "IndexOf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IndexOf looks for specified string into current slice.", "docstring_tokens": ["IndexOf", "looks", "for", "specified", "string", "into", "current", "slice", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/slices.go#L25-L33", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "slices.go", "func_name": "IndexOfIgnoreCase", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IndexOfIgnoreCase looks for specified string, disregarding letter casing,\n// into current slice.", "docstring_tokens": ["IndexOfIgnoreCase", "looks", "for", "specified", "string", "disregarding", "letter", "casing", "into", "current", "slice", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/slices.go#L37-L46", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "data/cache.go", "func_name": "NewCache", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCache creates a new instance of Cache and defines the default lifetime for\n// new cached items.", "docstring_tokens": ["NewCache", "creates", "a", "new", "instance", "of", "Cache", "and", "defines", "the", "default", "lifetime", "for", "new", "cached", "items", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/data/cache.go#L35-L40", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "data/cache.go", "func_name": "Count", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Count gets the number of cached values by current instance.", "docstring_tokens": ["Count", "gets", "the", "number", "of", "cached", "values", "by", "current", "instance", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/data/cache.go#L70-L78", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "data/cache.go", "func_name": "Flush", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Flush deletes any cached value into current instance.", "docstring_tokens": ["Flush", "deletes", "any", "cached", "value", "into", "current", "instance", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/data/cache.go#L81-L86", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "data/cache.go", "func_name": "removeExpired", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// removeExpired remove all expired values from current Cache instance list.\n// Returns the locking status of current instance.", "docstring_tokens": ["removeExpired", "remove", "all", "expired", "values", "from", "current", "Cache", "instance", "list", ".", "Returns", "the", "locking", "status", "of", "current", "instance", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/data/cache.go#L173-L192", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "docker/image.go", "func_name": "NewImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewImage creates a new instance of Image.", "docstring_tokens": ["NewImage", "creates", "a", "new", "instance", "of", "Image", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/docker/image.go#L35-L40", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "docker/image.go", "func_name": "Exists", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Exists check whether current Docker image is available.", "docstring_tokens": ["Exists", "check", "whether", "current", "Docker", "image", "is", "available", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/docker/image.go#L43-L50", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "docker/image.go", "func_name": "Pull", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Pull retrieves current Docker image from Docker repository.\n//\n// Returns ExternalCmdError on error.", "docstring_tokens": ["Pull", "retrieves", "current", "Docker", "image", "from", "Docker", "repository", ".", "Returns", "ExternalCmdError", "on", "error", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/docker/image.go#L60-L67", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "docker/image.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run creates a new Docker container as defined by current image and container\n// template.\n//\n// Returns ExternalCmdError or UnexpectedOutputError on error.", "docstring_tokens": ["Run", "creates", "a", "new", "Docker", "container", "as", "defined", "by", "current", "image", "and", "container", "template", ".", "Returns", "ExternalCmdError", "or", "UnexpectedOutputError", "on", "error", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/docker/image.go#L73-L94", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "docker/image.go", "func_name": "Setup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Setup check if Docker binary is available and pull current image from Docker\n// repository in case it is not already available.", "docstring_tokens": ["Setup", "check", "if", "Docker", "binary", "is", "available", "and", "pull", "current", "image", "from", "Docker", "repository", "in", "case", "it", "is", "not", "already", "available", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/docker/image.go#L98-L110", "partition": "valid"} +{"repo": "ckpt/backend-services", "path": "locations/locations.go", "func_name": "NewLocation", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//\n// Location related functions and methods\n//\n// Create a Location", "docstring_tokens": ["Location", "related", "functions", "and", "methods", "Create", "a", "Location"], "sha": "9af3b72a36b834bfeb8ff4dbc74ccd8ea2ce4afa", "url": "https://github.com/ckpt/backend-services/blob/9af3b72a36b834bfeb8ff4dbc74ccd8ea2ce4afa/locations/locations.go#L47-L59", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "docker/inspect.go", "func_name": "PortAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PortAt returns expose and publish port information at especified index.", "docstring_tokens": ["PortAt", "returns", "expose", "and", "publish", "port", "information", "at", "especified", "index", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/docker/inspect.go#L72-L84", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "docker/inspect.go", "func_name": "SplitPort", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SplitPort splits port number and protocol name from Ports string.", "docstring_tokens": ["SplitPort", "splits", "port", "number", "and", "protocol", "name", "from", "Ports", "string", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/docker/inspect.go#L87-L92", "partition": "valid"} +{"repo": "janos/logging", "path": "syslog_facility.go", "func_name": "Priority", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Priority returns a syslog.Priority representation of SyslogFacility.", "docstring_tokens": ["Priority", "returns", "a", "syslog", ".", "Priority", "representation", "of", "SyslogFacility", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/syslog_facility.go#L46-L48", "partition": "valid"} +{"repo": "janos/logging", "path": "syslog_facility.go", "func_name": "OK", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OK checks if SyslogFacility is valid.", "docstring_tokens": ["OK", "checks", "if", "SyslogFacility", "is", "valid", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/syslog_facility.go#L51-L54", "partition": "valid"} +{"repo": "janos/logging", "path": "formatters.go", "func_name": "Format", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Format creates JSON struct from provided record and returns it.", "docstring_tokens": ["Format", "creates", "JSON", "struct", "from", "provided", "record", "and", "returns", "it", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/formatters.go#L50-L53", "partition": "valid"} +{"repo": "daviddengcn/bolthelper", "path": "bolthelper.go", "func_name": "Open", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Open creates and opens a database at the given path. If the file does\n// not exist then it will be created automatically. Passing in nil options\n// will cause Bolt to open the database with the default options.", "docstring_tokens": ["Open", "creates", "and", "opens", "a", "database", "at", "the", "given", "path", ".", "If", "the", "file", "does", "not", "exist", "then", "it", "will", "be", "created", "automatically", ".", "Passing", "in", "nil", "options", "will", "cause", "Bolt", "to", "open", "the", "database", "with", "the", "default", "options", "."], "sha": "5f8bac9d6688c228cd3a730950131e8016bbd274", "url": "https://github.com/daviddengcn/bolthelper/blob/5f8bac9d6688c228cd3a730950131e8016bbd274/bolthelper.go#L41-L44", "partition": "valid"} +{"repo": "daviddengcn/bolthelper", "path": "bolthelper.go", "func_name": "Begin", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Begin wraps bolt.DB.Begin.", "docstring_tokens": ["Begin", "wraps", "bolt", ".", "DB", ".", "Begin", "."], "sha": "5f8bac9d6688c228cd3a730950131e8016bbd274", "url": "https://github.com/daviddengcn/bolthelper/blob/5f8bac9d6688c228cd3a730950131e8016bbd274/bolthelper.go#L54-L57", "partition": "valid"} +{"repo": "daviddengcn/bolthelper", "path": "bolthelper.go", "func_name": "View", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// View wraps bolt.DB.View.", "docstring_tokens": ["View", "wraps", "bolt", ".", "DB", ".", "View", "."], "sha": "5f8bac9d6688c228cd3a730950131e8016bbd274", "url": "https://github.com/daviddengcn/bolthelper/blob/5f8bac9d6688c228cd3a730950131e8016bbd274/bolthelper.go#L78-L82", "partition": "valid"} +{"repo": "daviddengcn/bolthelper", "path": "bolthelper.go", "func_name": "CopyFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CopyFile copies the entire database to file at the given path. A reader\n// transaction is maintained during the copy so it is safe to continue\n// using the database while a copy is in progress.", "docstring_tokens": ["CopyFile", "copies", "the", "entire", "database", "to", "file", "at", "the", "given", "path", ".", "A", "reader", "transaction", "is", "maintained", "during", "the", "copy", "so", "it", "is", "safe", "to", "continue", "using", "the", "database", "while", "a", "copy", "is", "in", "progress", "."], "sha": "5f8bac9d6688c228cd3a730950131e8016bbd274", "url": "https://github.com/daviddengcn/bolthelper/blob/5f8bac9d6688c228cd3a730950131e8016bbd274/bolthelper.go#L105-L107", "partition": "valid"} +{"repo": "daviddengcn/bolthelper", "path": "bolthelper.go", "func_name": "CreateBucketIfNotExists", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateBucketIfNotExists creates a new bucket if it doesn't already\n// exist. Returns an error if the bucket name is blank, or if the bucket\n// name is too long. The bucket instance is only valid for the lifetime of\n// the transaction.", "docstring_tokens": ["CreateBucketIfNotExists", "creates", "a", "new", "bucket", "if", "it", "doesn", "t", "already", "exist", ".", "Returns", "an", "error", "if", "the", "bucket", "name", "is", "blank", "or", "if", "the", "bucket", "name", "is", "too", "long", ".", "The", "bucket", "instance", "is", "only", "valid", "for", "the", "lifetime", "of", "the", "transaction", "."], "sha": "5f8bac9d6688c228cd3a730950131e8016bbd274", "url": "https://github.com/daviddengcn/bolthelper/blob/5f8bac9d6688c228cd3a730950131e8016bbd274/bolthelper.go#L113-L122", "partition": "valid"} +{"repo": "daviddengcn/bolthelper", "path": "bolthelper.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete deletes a key.", "docstring_tokens": ["Delete", "deletes", "a", "key", "."], "sha": "5f8bac9d6688c228cd3a730950131e8016bbd274", "url": "https://github.com/daviddengcn/bolthelper/blob/5f8bac9d6688c228cd3a730950131e8016bbd274/bolthelper.go#L139-L146", "partition": "valid"} +{"repo": "daviddengcn/bolthelper", "path": "bolthelper.go", "func_name": "ForEach", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ForEach iterates over all key values of a folder.", "docstring_tokens": ["ForEach", "iterates", "over", "all", "key", "values", "of", "a", "folder", "."], "sha": "5f8bac9d6688c228cd3a730950131e8016bbd274", "url": "https://github.com/daviddengcn/bolthelper/blob/5f8bac9d6688c228cd3a730950131e8016bbd274/bolthelper.go#L149-L155", "partition": "valid"} +{"repo": "daviddengcn/bolthelper", "path": "bolthelper.go", "func_name": "ForEachGob", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ForEach iterates over all key values of a folder, decode non-nil values using gob.", "docstring_tokens": ["ForEach", "iterates", "over", "all", "key", "values", "of", "a", "folder", "decode", "non", "-", "nil", "values", "using", "gob", "."], "sha": "5f8bac9d6688c228cd3a730950131e8016bbd274", "url": "https://github.com/daviddengcn/bolthelper/blob/5f8bac9d6688c228cd3a730950131e8016bbd274/bolthelper.go#L158-L166", "partition": "valid"} +{"repo": "daviddengcn/bolthelper", "path": "bolthelper.go", "func_name": "Put", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Put sets the value for a key in the transaction.\n// If the key exist then its previous value will be overwritten.\n// Supplied value must remain valid for the life of the transaction.\n// Returns an error if the bucket was created from a read-only transaction,\n// if the key is blank, if the key is too large, or if the value is too\n// large.", "docstring_tokens": ["Put", "sets", "the", "value", "for", "a", "key", "in", "the", "transaction", ".", "If", "the", "key", "exist", "then", "its", "previous", "value", "will", "be", "overwritten", ".", "Supplied", "value", "must", "remain", "valid", "for", "the", "life", "of", "the", "transaction", ".", "Returns", "an", "error", "if", "the", "bucket", "was", "created", "from", "a", "read", "-", "only", "transaction", "if", "the", "key", "is", "blank", "if", "the", "key", "is", "too", "large", "or", "if", "the", "value", "is", "too", "large", "."], "sha": "5f8bac9d6688c228cd3a730950131e8016bbd274", "url": "https://github.com/daviddengcn/bolthelper/blob/5f8bac9d6688c228cd3a730950131e8016bbd274/bolthelper.go#L187-L193", "partition": "valid"} +{"repo": "daviddengcn/bolthelper", "path": "bolthelper.go", "func_name": "Value", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Value tries to get a value from the transaction. If the key does not\n// exist, the f is not called and nil is return.", "docstring_tokens": ["Value", "tries", "to", "get", "a", "value", "from", "the", "transaction", ".", "If", "the", "key", "does", "not", "exist", "the", "f", "is", "not", "called", "and", "nil", "is", "return", "."], "sha": "5f8bac9d6688c228cd3a730950131e8016bbd274", "url": "https://github.com/daviddengcn/bolthelper/blob/5f8bac9d6688c228cd3a730950131e8016bbd274/bolthelper.go#L206-L214", "partition": "valid"} +{"repo": "daviddengcn/bolthelper", "path": "bolthelper.go", "func_name": "Update", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Updates fetches the current value and updates to a new value. If a nil\n// value is returned by f, the item is deleted.", "docstring_tokens": ["Updates", "fetches", "the", "current", "value", "and", "updates", "to", "a", "new", "value", ".", "If", "a", "nil", "value", "is", "returned", "by", "f", "the", "item", "is", "deleted", "."], "sha": "5f8bac9d6688c228cd3a730950131e8016bbd274", "url": "https://github.com/daviddengcn/bolthelper/blob/5f8bac9d6688c228cd3a730950131e8016bbd274/bolthelper.go#L229-L242", "partition": "valid"} +{"repo": "daviddengcn/bolthelper", "path": "bolthelper.go", "func_name": "OpenBucket", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Bucket retrieves a nested bucket by name. Returns nil if the bucket\n// does not exist. The bucket instance is only valid for the lifetime of\n// the transaction. folders can be empty, in which case the b itself is\n// sent to f.", "docstring_tokens": ["Bucket", "retrieves", "a", "nested", "bucket", "by", "name", ".", "Returns", "nil", "if", "the", "bucket", "does", "not", "exist", ".", "The", "bucket", "instance", "is", "only", "valid", "for", "the", "lifetime", "of", "the", "transaction", ".", "folders", "can", "be", "empty", "in", "which", "case", "the", "b", "itself", "is", "sent", "to", "f", "."], "sha": "5f8bac9d6688c228cd3a730950131e8016bbd274", "url": "https://github.com/daviddengcn/bolthelper/blob/5f8bac9d6688c228cd3a730950131e8016bbd274/bolthelper.go#L248-L257", "partition": "valid"} +{"repo": "daviddengcn/bolthelper", "path": "bolthelper.go", "func_name": "CreateBucketIfNotExists", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateBucketIfNotExists creates a new bucket if it doesn't already\n// exist and returns a reference to it. Returns an error if the bucket\n// name is blank, or if the bucket name is too long. The bucket instance\n// is only valid for the lifetime of the transaction.", "docstring_tokens": ["CreateBucketIfNotExists", "creates", "a", "new", "bucket", "if", "it", "doesn", "t", "already", "exist", "and", "returns", "a", "reference", "to", "it", ".", "Returns", "an", "error", "if", "the", "bucket", "name", "is", "blank", "or", "if", "the", "bucket", "name", "is", "too", "long", ".", "The", "bucket", "instance", "is", "only", "valid", "for", "the", "lifetime", "of", "the", "transaction", "."], "sha": "5f8bac9d6688c228cd3a730950131e8016bbd274", "url": "https://github.com/daviddengcn/bolthelper/blob/5f8bac9d6688c228cd3a730950131e8016bbd274/bolthelper.go#L263-L272", "partition": "valid"} +{"repo": "daviddengcn/bolthelper", "path": "bolthelper.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete removes a key from the bucket. If the key does not exist then\n// nothing is done and a nil error is returned. Returns an error if the\n// bucket was created from a read-only transaction.", "docstring_tokens": ["Delete", "removes", "a", "key", "from", "the", "bucket", ".", "If", "the", "key", "does", "not", "exist", "then", "nothing", "is", "done", "and", "a", "nil", "error", "is", "returned", ".", "Returns", "an", "error", "if", "the", "bucket", "was", "created", "from", "a", "read", "-", "only", "transaction", "."], "sha": "5f8bac9d6688c228cd3a730950131e8016bbd274", "url": "https://github.com/daviddengcn/bolthelper/blob/5f8bac9d6688c228cd3a730950131e8016bbd274/bolthelper.go#L284-L288", "partition": "valid"} +{"repo": "daviddengcn/bolthelper", "path": "bolthelper.go", "func_name": "GobValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GobValue retrieves a value written by PutGob and decode it.", "docstring_tokens": ["GobValue", "retrieves", "a", "value", "written", "by", "PutGob", "and", "decode", "it", "."], "sha": "5f8bac9d6688c228cd3a730950131e8016bbd274", "url": "https://github.com/daviddengcn/bolthelper/blob/5f8bac9d6688c228cd3a730950131e8016bbd274/bolthelper.go#L329-L337", "partition": "valid"} +{"repo": "daviddengcn/bolthelper", "path": "bolthelper.go", "func_name": "NextSequence", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NextSequence returns an autoincrementing integer for the bucket.", "docstring_tokens": ["NextSequence", "returns", "an", "autoincrementing", "integer", "for", "the", "bucket", "."], "sha": "5f8bac9d6688c228cd3a730950131e8016bbd274", "url": "https://github.com/daviddengcn/bolthelper/blob/5f8bac9d6688c228cd3a730950131e8016bbd274/bolthelper.go#L340-L343", "partition": "valid"} +{"repo": "daviddengcn/bolthelper", "path": "bolthelper.go", "func_name": "Put", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Put sets the value for a key in the bucket. If the key exist then its\n// previous value will be overwritten. Supplied value must remain valid\n// for the life of the transaction. Returns an error if the bucket was\n// created from a read-only transaction, if the key is blank, if the key\n// is too large, or if the value is too large.", "docstring_tokens": ["Put", "sets", "the", "value", "for", "a", "key", "in", "the", "bucket", ".", "If", "the", "key", "exist", "then", "its", "previous", "value", "will", "be", "overwritten", ".", "Supplied", "value", "must", "remain", "valid", "for", "the", "life", "of", "the", "transaction", ".", "Returns", "an", "error", "if", "the", "bucket", "was", "created", "from", "a", "read", "-", "only", "transaction", "if", "the", "key", "is", "blank", "if", "the", "key", "is", "too", "large", "or", "if", "the", "value", "is", "too", "large", "."], "sha": "5f8bac9d6688c228cd3a730950131e8016bbd274", "url": "https://github.com/daviddengcn/bolthelper/blob/5f8bac9d6688c228cd3a730950131e8016bbd274/bolthelper.go#L350-L356", "partition": "valid"} +{"repo": "daviddengcn/bolthelper", "path": "bolthelper.go", "func_name": "PutGob", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PutGob serialize v using gob and put it into the key.", "docstring_tokens": ["PutGob", "serialize", "v", "using", "gob", "and", "put", "it", "into", "the", "key", "."], "sha": "5f8bac9d6688c228cd3a730950131e8016bbd274", "url": "https://github.com/daviddengcn/bolthelper/blob/5f8bac9d6688c228cd3a730950131e8016bbd274/bolthelper.go#L359-L365", "partition": "valid"} +{"repo": "fcavani/log", "path": "storemgo.go", "func_name": "Drop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Drop clears the database", "docstring_tokens": ["Drop", "clears", "the", "database"], "sha": "7ec0d2cde51e1e519cd9159e695c611b5e70098b", "url": "https://github.com/fcavani/log/blob/7ec0d2cde51e1e519cd9159e695c611b5e70098b/storemgo.go#L293-L301", "partition": "valid"} +{"repo": "janos/logging", "path": "handlers.go", "func_name": "HandleError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HandleError prints provided error to stderr.", "docstring_tokens": ["HandleError", "prints", "provided", "error", "to", "stderr", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/handlers.go#L38-L41", "partition": "valid"} +{"repo": "janos/logging", "path": "handlers.go", "func_name": "Handle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Handle writes all provided log records to writer provided during creation.", "docstring_tokens": ["Handle", "writes", "all", "provided", "log", "records", "to", "writer", "provided", "during", "creation", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/handlers.go#L63-L66", "partition": "valid"} +{"repo": "janos/logging", "path": "handlers.go", "func_name": "Handle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Handle appends message to Messages array.", "docstring_tokens": ["Handle", "appends", "message", "to", "Messages", "array", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/handlers.go#L85-L90", "partition": "valid"} +{"repo": "skarllot/raiqub", "path": "net.go", "func_name": "WaitPeerListening", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WaitPeerListening wait for specified peer be ready for new connections.", "docstring_tokens": ["WaitPeerListening", "wait", "for", "specified", "peer", "be", "ready", "for", "new", "connections", "."], "sha": "39fff65606ba328dc93cac0c083416e02c950265", "url": "https://github.com/skarllot/raiqub/blob/39fff65606ba328dc93cac0c083416e02c950265/net.go#L25-L35", "partition": "valid"} +{"repo": "uudashr/go-eventd", "path": "eventd.go", "func_name": "NewEvent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewEvent construct new event.", "docstring_tokens": ["NewEvent", "construct", "new", "event", "."], "sha": "ef248d27d65434b1eed86c6cbb7322942a42f8d2", "url": "https://github.com/uudashr/go-eventd/blob/ef248d27d65434b1eed86c6cbb7322942a42f8d2/eventd.go#L40-L46", "partition": "valid"} +{"repo": "uudashr/go-eventd", "path": "eventd.go", "func_name": "Subscribe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Subscribe to events.\n// It will return true if successfully subscribed, means the handler haven't subscribed before.", "docstring_tokens": ["Subscribe", "to", "events", ".", "It", "will", "return", "true", "if", "successfully", "subscribed", "means", "the", "handler", "haven", "t", "subscribed", "before", "."], "sha": "ef248d27d65434b1eed86c6cbb7322942a42f8d2", "url": "https://github.com/uudashr/go-eventd/blob/ef248d27d65434b1eed86c6cbb7322942a42f8d2/eventd.go#L61-L73", "partition": "valid"} +{"repo": "uudashr/go-eventd", "path": "eventd.go", "func_name": "Unsubscribe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Unsubscribe handler from the bus.\n// It will return false if the handler not subscribed.", "docstring_tokens": ["Unsubscribe", "handler", "from", "the", "bus", ".", "It", "will", "return", "false", "if", "the", "handler", "not", "subscribed", "."], "sha": "ef248d27d65434b1eed86c6cbb7322942a42f8d2", "url": "https://github.com/uudashr/go-eventd/blob/ef248d27d65434b1eed86c6cbb7322942a42f8d2/eventd.go#L77-L89", "partition": "valid"} +{"repo": "uudashr/go-eventd", "path": "eventd.go", "func_name": "Publish", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Publish an event.", "docstring_tokens": ["Publish", "an", "event", "."], "sha": "ef248d27d65434b1eed86c6cbb7322942a42f8d2", "url": "https://github.com/uudashr/go-eventd/blob/ef248d27d65434b1eed86c6cbb7322942a42f8d2/eventd.go#L92-L100", "partition": "valid"} +{"repo": "uudashr/go-eventd", "path": "eventd.go", "func_name": "HandleOnly", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HandleOnly specific type of event.", "docstring_tokens": ["HandleOnly", "specific", "type", "of", "event", "."], "sha": "ef248d27d65434b1eed86c6cbb7322942a42f8d2", "url": "https://github.com/uudashr/go-eventd/blob/ef248d27d65434b1eed86c6cbb7322942a42f8d2/eventd.go#L121-L130", "partition": "valid"} +{"repo": "uudashr/go-eventd", "path": "eventd.go", "func_name": "ContextWithPublisher", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContextWithPublisher constructs new context with bus.", "docstring_tokens": ["ContextWithPublisher", "constructs", "new", "context", "with", "bus", "."], "sha": "ef248d27d65434b1eed86c6cbb7322942a42f8d2", "url": "https://github.com/uudashr/go-eventd/blob/ef248d27d65434b1eed86c6cbb7322942a42f8d2/eventd.go#L133-L135", "partition": "valid"} +{"repo": "uudashr/go-eventd", "path": "eventd.go", "func_name": "PublisherContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PublisherContext return the publisher.", "docstring_tokens": ["PublisherContext", "return", "the", "publisher", "."], "sha": "ef248d27d65434b1eed86c6cbb7322942a42f8d2", "url": "https://github.com/uudashr/go-eventd/blob/ef248d27d65434b1eed86c6cbb7322942a42f8d2/eventd.go#L138-L145", "partition": "valid"} +{"repo": "uudashr/go-eventd", "path": "eventd.go", "func_name": "PublishNamedEvent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PublishNamedEvent which name infered from eventBody interface name.", "docstring_tokens": ["PublishNamedEvent", "which", "name", "infered", "from", "eventBody", "interface", "name", "."], "sha": "ef248d27d65434b1eed86c6cbb7322942a42f8d2", "url": "https://github.com/uudashr/go-eventd/blob/ef248d27d65434b1eed86c6cbb7322942a42f8d2/eventd.go#L148-L151", "partition": "valid"} +{"repo": "uudashr/go-eventd", "path": "eventd.go", "func_name": "PublishEventContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PublishEventContext publish event for given ctx.", "docstring_tokens": ["PublishEventContext", "publish", "event", "for", "given", "ctx", "."], "sha": "ef248d27d65434b1eed86c6cbb7322942a42f8d2", "url": "https://github.com/uudashr/go-eventd/blob/ef248d27d65434b1eed86c6cbb7322942a42f8d2/eventd.go#L154-L161", "partition": "valid"} +{"repo": "uudashr/go-eventd", "path": "eventd.go", "func_name": "PublishNamedEventContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PublishNamedEventContext publish named event for given ctx. The name infered from eventBody interface name.", "docstring_tokens": ["PublishNamedEventContext", "publish", "named", "event", "for", "given", "ctx", ".", "The", "name", "infered", "from", "eventBody", "interface", "name", "."], "sha": "ef248d27d65434b1eed86c6cbb7322942a42f8d2", "url": "https://github.com/uudashr/go-eventd/blob/ef248d27d65434b1eed86c6cbb7322942a42f8d2/eventd.go#L164-L167", "partition": "valid"} +{"repo": "janos/logging", "path": "levels.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns stirng representation of log level.", "docstring_tokens": ["String", "returns", "stirng", "representation", "of", "log", "level", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/levels.go#L40-L59", "partition": "valid"} +{"repo": "janos/logging", "path": "levels.go", "func_name": "UnmarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalJSON implements json.Unamrshaler interface.", "docstring_tokens": ["UnmarshalJSON", "implements", "json", ".", "Unamrshaler", "interface", "."], "sha": "951ab97186390a50867d2897a57bbe06113edb67", "url": "https://github.com/janos/logging/blob/951ab97186390a50867d2897a57bbe06113edb67/levels.go#L68-L90", "partition": "valid"}