bufapimodule

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package bufapimodule provides bufmodule types based on bufapi types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewModuleReader

func NewModuleReader(
	logger *zap.Logger,
	downloadClientFactory DownloadServiceClientFactory,
	opts ...ModuleReaderOption,
) bufmodule.ModuleReader

NewModuleReader returns a new ModuleReader backed by the download service.

func NewModuleResolver

func NewModuleResolver(
	logger *zap.Logger,
	repositoryCommitClientFactory RepositoryCommitServiceClientFactory,
) bufmodule.ModuleResolver

NewModuleResolver returns a new ModuleResolver backed by the resolve service.

Types

type DownloadServiceClientFactory

type DownloadServiceClientFactory func(address string) registryv1alpha1connect.DownloadServiceClient

func NewDownloadServiceClientFactory

func NewDownloadServiceClientFactory(clientConfig *connectclient.Config) DownloadServiceClientFactory

type ModuleReaderOption

type ModuleReaderOption func(reader *moduleReader)

ModuleReaderOption allows configuration of a module reader.

func ModuleReaderWithDeprecationWarning

func ModuleReaderWithDeprecationWarning(
	repositoryClientFactory RepositoryServiceClientFactory,
) ModuleReaderOption

ModuleReaderWithDeprecationWarning makes the module reader print a warning when reading a deprecated module.

type RepositoryCommitServiceClientFactory

type RepositoryCommitServiceClientFactory func(address string) registryv1alpha1connect.RepositoryCommitServiceClient

func NewRepositoryCommitServiceClientFactory

func NewRepositoryCommitServiceClientFactory(clientConfig *connectclient.Config) RepositoryCommitServiceClientFactory

type RepositoryServiceClientFactory

type RepositoryServiceClientFactory func(address string) registryv1alpha1connect.RepositoryServiceClient

func NewRepositoryServiceClientFactory

func NewRepositoryServiceClientFactory(clientConfig *connectclient.Config) RepositoryServiceClientFactory

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL