Versions in this module Expand all Collapse all v0 v0.0.2 Apr 15, 2024 Changes in this version + const ExitCodeFileAnnotation + const Version + var AllCacheModuleRelDirPaths = []string + var ErrFileAnnotation = app.NewError(ExitCodeFileAnnotation, "") + var ErrNoConfigFile = errors.New(...) + var ErrNoModuleName = errors.New(`please specify a module name in your configuration file with the "name" key`) + var ErrNotATTY = errors.New("reader was not a TTY as expected") + func BindAsFileDescriptorSet(flagSet *pflag.FlagSet, addr *bool, flagName string) + func BindCreateVisibility(flagSet *pflag.FlagSet, addr *string, flagName string, createFlagName string) + func BindDisableSymlinks(flagSet *pflag.FlagSet, addr *bool, flagName string) + func BindExcludeImports(flagSet *pflag.FlagSet, addr *bool, flagName string) + func BindExcludePaths(flagSet *pflag.FlagSet, excludePathsAddr *[]string, ...) + func BindExcludeSourceInfo(flagSet *pflag.FlagSet, addr *bool, flagName string) + func BindInputHashtag(flagSet *pflag.FlagSet, addr *string) + func BindPaths(flagSet *pflag.FlagSet, pathsAddr *[]string, pathsFlagName string) + func BindVisibility(flagSet *pflag.FlagSet, addr *string, flagName string) + func BucketAndConfigForSource(ctx context.Context, logger *zap.Logger, container app.EnvStdinContainer, ...) (storage.ReadBucketCloser, *bufconfig.Config, error) + func GetInputLong(inputArgDescription string) string + func GetInputValue(container app.ArgContainer, inputHashtag string, defaultValue string) (string, error) + func GetSourceDirLong(inputArgDescription string) string + func GetSourceLong(inputArgDescription string) string + func GetSourceOrModuleLong(inputArgDescription string) string + func NewConfig(container appflag.Container) (*bufapp.Config, error) + func NewConnectClientConfig(container appflag.Container) (*connectclient.Config, error) + func NewConnectClientConfigWithToken(container appflag.Container, token string) (*connectclient.Config, error) + func NewErrorInterceptor() appflag.Interceptor + func NewFetchReader(logger *zap.Logger, storageosProvider storageos.Provider, ...) buffetch.Reader + func NewImageForSource(ctx context.Context, container appflag.Container, source string, ...) (bufimage.Image, error) + func NewInternalError(err error) error + func NewInvalidRemoteError(err error, remote string, moduleIdentity string) error + func NewModuleReaderAndCreateCacheDirs(container appflag.Container, clientConfig *connectclient.Config) (bufmodule.ModuleReader, error) + func NewModuleReferenceNotFoundError(reference bufmoduleref.ModuleReference) error + func NewOrganizationNameAlreadyExistsError(name string) error + func NewOrganizationNotFoundError(name string) error + func NewRepositoryNameAlreadyExistsError(name string) error + func NewRepositoryNotFoundError(name string) error + func NewStorageosProvider(disableSymlinks bool) storageos.Provider + func NewTagOrDraftNameAlreadyExistsError(name string) error + func NewTokenNotFoundError(tokenID string) error + func NewTooManyEmptyAnswersError(attempts int) error + func NewWireFileLister(container appflag.Container, storageosProvider storageos.Provider, ...) (bufwire.FileLister, error) + func NewWireImageConfigReader(container appflag.Container, storageosProvider storageos.Provider, ...) (bufwire.ImageConfigReader, error) + func NewWireImageReader(logger *zap.Logger, storageosProvider storageos.Provider, ...) bufwire.ImageReader + func NewWireImageWriter(logger *zap.Logger) bufwire.ImageWriter + func NewWireModuleConfigReader(container appflag.Container, storageosProvider storageos.Provider, ...) (bufwire.ModuleConfigReader, error) + func NewWireModuleConfigReaderForModuleReader(container appflag.Container, storageosProvider storageos.Provider, ...) (bufwire.ModuleConfigReader, error) + func NewWireProtoEncodingReader(logger *zap.Logger, storageosProvider storageos.Provider, ...) bufwire.ProtoEncodingReader + func NewWireProtoEncodingWriter(logger *zap.Logger) bufwire.ProtoEncodingWriter + func PackageVersionLongDescription(registryName, commandName, examplePlugin string) string + func PackageVersionShortDescription(name string) string + func PromptUser(container app.Container, prompt string) (string, error) + func PromptUserForDelete(container app.Container, entityType string, expectedAnswer string) error + func PromptUserForPassword(container app.Container, prompt string) (string, error) + func SelectReferenceForRemote(references []bufmoduleref.ModuleReference) bufmoduleref.ModuleReference + func ValidateErrorFormatFlag(errorFormatString string, errorFormatFlagName string) error + func ValidateErrorFormatFlagLint(errorFormatString string, errorFormatFlagName string) error + func VisibilityFlagToVisibility(visibility string) (registryv1alpha1.Visibility, error) + func VisibilityFlagToVisibilityAllowUnspecified(visibility string) (registryv1alpha1.Visibility, error) + func WarnAlphaCommand(_ context.Context, container appflag.Container) + func WarnBetaCommand(_ context.Context, container appflag.Container) + func WellKnownTypeImage(ctx context.Context, logger *zap.Logger, wellKnownType string) (bufimage.Image, error)