Documentation
¶
Overview ¶
Package python provides Python specific functionality for librarian.
Index ¶
- func BuildClientDocumentationURI(libraryName, repoMetadataName string) string
- func Bump(output, version string) error
- func Clean(lib *config.Library) error
- func DefaultLibraryName(api string) string
- func DefaultOutput(name, defaultOutput string) string
- func Generate(ctx context.Context, cfg *config.Config, library *config.Library, ...) error
- func Install(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildClientDocumentationURI ¶ added in v0.8.4
BuildClientDocumentationURI builds the URI for the client documentation for the library. TODO(https://github.com/googleapis/librarian/issues/4175): make this function package-private (or inline it) after migration, when we won't need to determine whether or not to specify an override.
func Bump ¶ added in v0.8.1
Bump updates the version number in the library with the given output directory.
func Clean ¶ added in v0.8.4
Clean removes all generated code from beneath the given library's output directory. If the output directory does not currently exist, this function is a no-op.
func DefaultLibraryName ¶ added in v0.8.1
DefaultLibraryName derives a library name from an API path by stripping the version suffix and replacing "/" with "-". For example: "google/cloud/secretmanager/v1" -> "google-cloud-secretmanager".
func DefaultOutput ¶ added in v0.8.4
DefaultOutput derives an output path from a library name and a default output directory. Currently, this just assumes each library is a directory directly underneath the default output directory.
Types ¶
This section is empty.