Documentation ¶
Overview ¶
Package get provides the get command, which displays one or more resources, as well as subcommands for each resource type.
Index ¶
- func AgentVersionsCommand(builder Builder) *cobra.Command
- func AgentsCommand(builder Builder) *cobra.Command
- func Command(builder Builder) *cobra.Command
- func ConfigurationsCommand(builder Builder) *cobra.Command
- func DestinationTypesCommand(builder Builder) *cobra.Command
- func DestinationsCommand(builder Builder) *cobra.Command
- func PrintTitle(titleName string)
- func ProcessorTypesCommand(builder Builder) *cobra.Command
- func ProcessorsCommand(builder Builder) *cobra.Command
- func Resources(ctx context.Context, builder Builder, kind model.Kind, args []string) error
- func ResourcesCommand(builder Builder) *cobra.Command
- func RolloutsCommand(builder Builder) *cobra.Command
- func SourceTypesCommand(builder Builder) *cobra.Command
- func SourcesCommand(builder Builder) *cobra.Command
- type Builder
- type DefaultGetter
- func (g *DefaultGetter) GetAllResources(ctx context.Context) error
- func (g *DefaultGetter) GetRawResource(ctx context.Context, kind model.Kind, id string) error
- func (g *DefaultGetter) GetResource(ctx context.Context, kind model.Kind, id string) error
- func (g *DefaultGetter) GetResourceHistory(ctx context.Context, kind model.Kind, id string) error
- func (g *DefaultGetter) GetResources(ctx context.Context, kind model.Kind, ids []string) error
- func (g *DefaultGetter) GetResourcesOfKind(ctx context.Context, kind model.Kind, queryOpts client.QueryOptions) error
- type Getter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AgentVersionsCommand ¶
AgentVersionsCommand returns the BindPlane get source-types cobra command
func AgentsCommand ¶
AgentsCommand returns the BindPlane get agents cobra command
func ConfigurationsCommand ¶
ConfigurationsCommand returns the BindPlane get configurations cobra command
func DestinationTypesCommand ¶
DestinationTypesCommand returns the BindPlane get destination-types cobra command
func DestinationsCommand ¶
DestinationsCommand returns the BindPlane get destinations cobra command
func PrintTitle ¶
func PrintTitle(titleName string)
PrintTitle prints the titleName with a dashed underline
func ProcessorTypesCommand ¶
ProcessorTypesCommand returns the BindPlane get processor-types cobra command
func ProcessorsCommand ¶
ProcessorsCommand returns the BindPlane get processors cobra command
func ResourcesCommand ¶
ResourcesCommand returns the BindPlane resources cobra command
func RolloutsCommand ¶
RolloutsCommand returns the BindPlane get rollouts cobra command
func SourceTypesCommand ¶
SourceTypesCommand returns the BindPlane get source-types cobra command
func SourcesCommand ¶
SourcesCommand returns the BindPlane get sources cobra command
Types ¶
type Builder ¶
type Builder interface { // Build returns a new Getter. BuildGetter(ctx context.Context) (Getter, error) }
Builder is an interface for building a Getter.
type DefaultGetter ¶
type DefaultGetter struct {
// contains filtered or unexported fields
}
DefaultGetter is the default implementation of Getter.
func NewGetter ¶
func NewGetter(client client.BindPlane, printer printer.Printer, outputFormat string) *DefaultGetter
NewGetter returns a new Getter.
func (*DefaultGetter) GetAllResources ¶
func (g *DefaultGetter) GetAllResources(ctx context.Context) error
GetAllResources gets and prints every resource.
func (*DefaultGetter) GetRawResource ¶
GetRawResource gets and prints the raw version of a resource
func (*DefaultGetter) GetResource ¶
GetResource gets and prints a single resource.
func (*DefaultGetter) GetResourceHistory ¶
GetResourceHistory gets and prints the history for a single resource
func (*DefaultGetter) GetResources ¶
GetResources gets and prints a list of resources matching the supplied ids.
func (*DefaultGetter) GetResourcesOfKind ¶
func (g *DefaultGetter) GetResourcesOfKind(ctx context.Context, kind model.Kind, queryOpts client.QueryOptions) error
GetResourcesOfKind gets and prints all resources of a given kind.
type Getter ¶
type Getter interface { // GetResource gets and prints a single resource. GetResource(ctx context.Context, kind model.Kind, id string) error // GetResources gets and prints a list of resources. GetResources(ctx context.Context, kind model.Kind, ids []string) error // GetResourcesOfKind gets and prints all resources of a given kind. GetResourcesOfKind(ctx context.Context, kind model.Kind, queryOpts client.QueryOptions) error // GetAllResources gets and prints every resource kind. GetAllResources(ctx context.Context) error // GetResourceHistory gets and prints the history for a single resource GetResourceHistory(ctx context.Context, kind model.Kind, id string) error }
Getter is an interface for getting and printing resources.