aliasfix
packagemoduleThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
README¶
aliasfix
A tool to migrate client library imports from go-genproto to the new stubslocated in google-cloud-go.
Usage
Make sure you dependencies for the cloud client library you depend on andgo-genproto are up to date.
go install cloud.google.com/go/internal/aliasfix/cmd/aliasfix@latestaliasfix .go mod tidy
Documentation¶
Index¶
Constants¶
This section is empty.
Variables¶
var GenprotoPkgMigration map[string]Pkg = map[string]Pkg{}/* 214 elements not displayed */GenprotoPkgMigration maps genproto to google-cloud-go packages and trackstheir migration status.
Functions¶
funcProcessPath¶
ProcessPath rewrites imports from go-genproto in terms of google-cloud-gotypes.
Types¶
typeMigrationStatus¶
type MigrationStatusint
MigrationStatus represents how far along the alias migration is for a givenpackage.
const (// StatusNotMigrated means no progress has been made to migrate the package.StatusNotMigratedMigrationStatus =iota// StatusInProgress means new types have been generated but there are not// yet aliases to these types nor have packages been re-written in terms of// these new types.StatusInProgress// StatusMigrated mean new types are being directly referenced in the GAPIC// layer and genproto aliases are in place.StatusMigrated)
typePkg¶
type Pkg struct {// ImportPath in the new import path for types.ImportPathstring// Status is current migration status of the associated ImportPath's types.StatusMigrationStatus}Pkg store information related to the google-cloud-go package and whether ithas been migrated.