Back to godoc.org

Package bufcli

v0.27.1
Latest Go to latest

The latest major version is .

Published: 5 days ago | License: Apache-2.0 | Module: github.com/bufbuild/buf

Index

func NewFetchImageReader

func NewFetchImageReader(logger *zap.Logger) buffetch.ImageReader

NewFetchImageReader creates a new buffetch.ImageReader with the default HTTP client and git cloner.

func NewFetchReader

func NewFetchReader(
	logger *zap.Logger,
	moduleResolver bufmodule.ModuleResolver,
	moduleReader bufmodule.ModuleReader,
) buffetch.Reader

NewFetchReader creates a new buffetch.Reader with the default HTTP client and git cloner.

func NewFetchSourceReader

func NewFetchSourceReader(logger *zap.Logger) buffetch.SourceReader

NewFetchSourceReader creates a new buffetch.SourceReader with the default HTTP client and git cloner.

func NewWireEnvReader

func NewWireEnvReader(
	logger *zap.Logger,
	configProvider bufconfig.Provider,
	moduleResolver bufmodule.ModuleResolver,
	moduleReader bufmodule.ModuleReader,
) bufwire.EnvReader

NewWireEnvReader returns a new EnvReader.

func NewWireFileLister

func NewWireFileLister(
	logger *zap.Logger,
	configProvider bufconfig.Provider,
	moduleResolver bufmodule.ModuleResolver,
	moduleReader bufmodule.ModuleReader,
) bufwire.FileLister

NewWireFileLister returns a new FileLister.

func NewWireImageReader

func NewWireImageReader(
	logger *zap.Logger,
) bufwire.ImageReader

NewWireImageReader returns a new ImageReader.

func NewWireImageWriter

func NewWireImageWriter(
	logger *zap.Logger,
) bufwire.ImageWriter

NewWireImageWriter returns a new ImageWriter.

func WarnBeta

func WarnBeta(logger *zap.Logger)

WarnBeta warns that the command is beta.

type ModuleResolverReaderProvider

type ModuleResolverReaderProvider interface {
	GetModuleReader(context.Context, appflag.Container) (bufmodule.ModuleReader, error)
	GetModuleResolver(context.Context, appflag.Container) (bufmodule.ModuleResolver, error)
}

ModuleResolverReaderProvider provides ModuleResolvers and ModuleReaders.

type NopModuleResolverReaderProvider

type NopModuleResolverReaderProvider struct{}

NopModuleResolverReaderProvider is a no-op ModuleResolverReaderProvider.

func (NopModuleResolverReaderProvider) GetModuleReader

func (NopModuleResolverReaderProvider) GetModuleReader(_ context.Context, _ appflag.Container) (bufmodule.ModuleReader, error)

GetModuleReader returns a no-op module reader.

func (NopModuleResolverReaderProvider) GetModuleResolver

func (NopModuleResolverReaderProvider) GetModuleResolver(_ context.Context, _ appflag.Container) (bufmodule.ModuleResolver, error)

GetModuleResolver returns a no-op module resolver.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier