Versions in this module Expand all Collapse all v0 v0.0.2 Apr 15, 2024 Changes in this version + var AllFormatsString = stringutil.SliceToString([]string{ ... }) + func WithTabWriter(writer io.Writer, header []string, f func(TabWriter) error) (retErr error) + type CuratedPluginPrinter interface + PrintCuratedPlugin func(ctx context.Context, format Format, plugin *registryv1alpha1.CuratedPlugin) error + PrintCuratedPlugins func(ctx context.Context, format Format, nextPageToken string, ...) error + func NewCuratedPluginPrinter(writer io.Writer) CuratedPluginPrinter + type Format int + const FormatJSON + const FormatText + func ParseFormat(s string) (Format, error) + func (f Format) String() string + type OrganizationPrinter interface + PrintOrganization func(ctx context.Context, format Format, ...) error + func NewOrganizationPrinter(address string, writer io.Writer) OrganizationPrinter + type RepositoryCommitPrinter interface + PrintRepositoryCommit func(ctx context.Context, format Format, ...) error + PrintRepositoryCommits func(ctx context.Context, format Format, nextPageToken string, ...) error + func NewRepositoryCommitPrinter(writer io.Writer) RepositoryCommitPrinter + type RepositoryDraftPrinter interface + PrintRepositoryDraft func(ctx context.Context, format Format, ...) error + PrintRepositoryDrafts func(ctx context.Context, format Format, nextPageToken string, ...) error + func NewRepositoryDraftPrinter(writer io.Writer) RepositoryDraftPrinter + type RepositoryPrinter interface + PrintRepositories func(ctx context.Context, format Format, nextPageToken string, ...) error + PrintRepository func(ctx context.Context, format Format, repository *registryv1alpha1.Repository) error + func NewRepositoryPrinter(clientConfig *connectclient.Config, address string, writer io.Writer) RepositoryPrinter + type RepositoryTagPrinter interface + PrintRepositoryTag func(ctx context.Context, format Format, ...) error + PrintRepositoryTags func(ctx context.Context, format Format, nextPageToken string, ...) error + func NewRepositoryTagPrinter(writer io.Writer) RepositoryTagPrinter + type StatsPrinter interface + PrintStats func(ctx context.Context, format Format, stats *protostat.Stats) error + func NewStatsPrinter(writer io.Writer) StatsPrinter + type TabWriter interface + Write func(values ...string) error + type TokenPrinter interface + PrintTokens func(ctx context.Context, tokens ...*registryv1alpha1.Token) error + func NewTokenPrinter(writer io.Writer, format Format) (TokenPrinter, error)