{"modulePath":"github.com/ARM-software/embedded-development-services-client/generator","version":"v1.109.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package codegen\n\n\\* Copyright (C) 2020-2026 Arm Limited or its affiliates and Contributors. All rights reserved. \\* SPDX-License-Identifier: Apache-2.0\n\n\\* Copyright (C) 2020-2026 Arm Limited or its affiliates and Contributors. All rights reserved. \\* SPDX-License-Identifier: Apache-2.0\n\n\\* Copyright (C) 2020-2026 Arm Limited or its affiliates and Contributors. All rights reserved. \\* SPDX-License-Identifier: Apache-2.0\n\n\\* Copyright (C) 2020-2026 Arm Limited or its affiliates and Contributors. All rights reserved. \\* SPDX-License-Identifier: Apache-2.0\n\n\\* Copyright (C) 2020-2026 Arm Limited or its affiliates and Contributors. All rights reserved. \\* SPDX-License-Identifier: Apache-2.0\n\n## Variables\n\n```go\nvar ValidGenerationTargets = map[string]func(*Data) error{\n\t\"collections\": AddCollectionsToParams,\n\t\"jobs\":        AddJobItemsToParams,\n\t\"links\":       AddLinkFollowersToParams,\n}\n```\n\n## Functions\n\n```go\nfunc AddCollectionsToParams(d *Data) (err error)\n```\n\n```go\nfunc AddJobItemsToParams(d *Data) (err error)\n```\n\n```go\nfunc AddLinkFollowersToParams(d *Data) error\n```\n\n```go\nfunc AddValuesToParams(d *Data, getValues func(*openapi3.T) (any, error), generationType string) (err error)\n```\n\n```go\nfunc CopyStaticFiles(ctx context.Context, staticFileConfig *StaticFileConfig) (err error)\n```\n\n```go\nfunc GenerateTemplateFile(ctx context.Context, d *Data) (err error)\n```\n\n```go\nfunc ParseDeclarations(src string) ([]ast.Decl, error)\n```\n\n```go\nfunc ParseFile(src string) (*ast.File, error)\n```\n\n```go\nfunc ParseStatements(src string, fset *token.FileSet) ([]ast.Stmt, error)\n```\n\n## Types\n\n```go\ntype APIServiceFollowFunc struct {\n\tName           string\n\tFirstParamName string\n\tFirstParamType string\n\tReturnList     string\n\tSrc            string\n}\n```\n\n```go\ntype Collection struct {\n\tCollectionRef string\n\tItemRef       string\n\tModelRef      string\n\tIteratorRef   string\n\tNoPagination  bool\n}\n```\n\n```go\ntype CollectionOption interface {\n\t// contains filtered or unexported methods\n}\n```\n\n```go\nfunc WithNoPagination(n bool) CollectionOption\n```\n\n```go\ntype CollectionParams = struct {\n\tCollections\n\tJobItems\n\tMessageCollections\n\tNotificationFeedCollections\n}\n```\n\n```go\nfunc GetCollections(swagger *openapi3.T) (collections CollectionParams, err error)\n```\n\n```go\ntype Collections = []Collection\n```\n\n```go\ntype Data struct {\n\tParams            any\n\tSpecPath          string\n\tTemplatePath      string\n\tDestinationPath   string\n\tClientPackagePath string\n\tPackageName       string\n\tDisableLinks      bool\n}\n```\n\n```go\nfunc GenerateDataStruct(cfg ExtensionsConfig) (d *Data, err error)\n```\n\n```go\ntype ExtensionsConfig struct {\n\tInput             string `mapstructure:\"input\"`\n\tOutput            string `mapstructure:\"output\"`\n\tTemplate          string `mapstructure:\"template\"`\n\tGenerateType      string `mapstructure:\"generate_type\"`\n\tClientPackagePath string `mapstructure:\"client_path\"`\n\tDisableLinks      bool   `mapstructure:\"disable_links\"`\n}\n```\n\n```go\nfunc DefaultExtensionsConfig() *ExtensionsConfig\n```\n\n```go\nfunc (cfg *ExtensionsConfig) Validate() error\n```\n\n```go\ntype Follower struct {\n\tAPIService    string\n\tAPIRequest    string\n\tAPIFollowFunc APIServiceFollowFunc\n}\n```\n\n```go\ntype Followers = []Follower\n```\n\n```go\ntype FollowersParams = struct {\n\tFollowers\n}\n```\n\n```go\ntype JobItem struct {\n\tJobItemSchema string\n}\n```\n\n```go\ntype JobItems = []JobItem\n```\n\n```go\ntype JobItemsParams = struct {\n\tJobItems\n}\n```\n\n```go\nfunc GetJobItems(swagger *openapi3.T) (jobItems JobItemsParams, err error)\n```\n\n```go\ntype MessageCollection struct {\n\tItemRef     string\n\tIteratorRef string\n}\n```\n\n```go\ntype MessageCollections []MessageCollection\n```\n\n```go\ntype NotificationFeedCollection struct {\n\tItemRef     string\n\tIteratorRef string\n}\n```\n\n```go\ntype NotificationFeedCollections []NotificationFeedCollection\n```\n\n```go\ntype StaticFileConfig struct {\n\tClientName  string\n\tDestination string\n\tExclusions  []string\n}\n```\n\n```go\nfunc GenerateStaticFileConfigStruct(cfg ExtensionsConfig) (d *StaticFileConfig, err error)\n```\n\n","path":"github.com/ARM-software/embedded-development-services-client/generator/codegen","name":"codegen","synopsis":"* Copyright (C) 2020-2026 Arm Limited or its affiliates and Contributors.","isRedistributable":true}
