get

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Names = names.PubSub
	Verb  = verbs.Get
)

Functions

func Add

func Add(ctx cpi.Context, s pubsub.PubSubSpec, slice *sliceutils.Slice[string])

func NewCommand

func NewCommand(ctx clictx.Context, names ...string) *cobra.Command

NewCommand creates a new pubsub command.

func TableOutput

func TableOutput(opts *output.Options, mapping processing.MappingFunction) *output.TableOutput

Types

type Command

type Command struct {
	utils.BaseCommand

	RepoSpecs []string
}

func (*Command) Complete

func (o *Command) Complete(args []string) error

func (*Command) ForName

func (o *Command) ForName(name string) *cobra.Command

func (*Command) Run

func (o *Command) Run() error

type Repo

type Repo struct {
	RepoSpec string            `json:"repository"`
	Repo     cpi.Repository    `json:"-"`
	Spec     pubsub.PubSubSpec `json:"pubsub,omitempty"`
	Error    string            `json:"error,omitempty"`
}

func (*Repo) AsManifest

func (r *Repo) AsManifest() interface{}

Jump to

Keyboard shortcuts

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