{"modulePath":"github.com/snyk/code-client-go","version":"v1.31.12","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package deepcode\n\n\\* © 2024 Snyk Limited All rights reserved. \\* \\* Licensed under the Apache License, Version 2.0 (the \"License\"); \\* you may not use this file except in compliance with the License. \\* You may obtain a copy of the License at \\* \\*     [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0) \\* \\* Unless required by applicable law or agreed to in writing, software \\* distributed under the License is distributed on an \"AS IS\" BASIS, \\* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. \\* See the License for the specific language governing permissions and \\* limitations under the License.\n\n## Functions\n\n```go\nfunc NewDeepcodeClient(\n\tconfig config.Config,\n\thttpClient codeClientHTTP.HTTPClient,\n\tlogger *zerolog.Logger,\n\tinstrumentor observability.Instrumentor,\n\terrorReporter observability.ErrorReporter,\n) *deepcodeClient\n```\n\n## Types\n\n```go\ntype BundleFile struct {\n\tHash        string `json:\"hash\"`\n\tContent     string `json:\"content\"`\n\tContentSize int    `json:\"-\"`\n}\n```\n\n```go\nfunc BundleFileFrom(content []byte, includeContent bool) (BundleFile, error)\n```\n\n```go\ntype BundleResponse struct {\n\tBundleHash   string   `json:\"bundleHash\"`\n\tMissingFiles []string `json:\"missingFiles\"`\n}\n```\n\n```go\ntype DeepcodeClient interface {\n\tGetFilters(ctx context.Context) (\n\t\tfilters FiltersResponse,\n\t\terr error)\n\n\tCreateBundle(\n\t\tctx context.Context,\n\t\tfiles map[string]string,\n\t) (newBundleHash string, missingFiles []string, err error)\n\n\tExtendBundle(\n\t\tctx context.Context,\n\t\tbundleHash string,\n\t\tfiles map[string]BundleFile,\n\t\tremovedFiles []string,\n\t) (newBundleHash string, missingFiles []string, err error)\n}\n```\n\n```go\ntype ExtendBundleRequest struct {\n\tFiles        map[string]BundleFile `json:\"files\"`\n\tRemovedFiles []string              `json:\"removedFiles,omitempty\"`\n}\n```\n\n```go\ntype FiltersResponse struct {\n\tConfigFiles []string `json:\"configFiles\" pact:\"min=1\"`\n\tExtensions  []string `json:\"extensions\" pact:\"min=1\"`\n}\n```\n\n","path":"github.com/snyk/code-client-go/internal/deepcode","name":"deepcode","synopsis":"* © 2024 Snyk Limited All rights reserved.","isRedistributable":true}
