broker

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: May 19, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeregisterCmd

func NewDeregisterCmd(cxt *command.Context) *cobra.Command

NewDeregisterCmd builds a "svcat deregister" command

func NewDescribeCmd

func NewDescribeCmd(cxt *command.Context) *cobra.Command

NewDescribeCmd builds a "svcat describe broker" command

func NewGetCmd

func NewGetCmd(cxt *command.Context) *cobra.Command

NewGetCmd builds a "svcat get brokers" command

func NewRegisterCmd

func NewRegisterCmd(cxt *command.Context) *cobra.Command

NewRegisterCmd builds a "svcat register" command

func NewSyncCmd

func NewSyncCmd(cxt *command.Context) *cobra.Command

NewSyncCmd builds a "svcat sync broker" command

Types

type DeregisterCmd

type DeregisterCmd struct {
	*command.Namespaced
	*command.Scoped
	*command.Waitable

	BrokerName string
}

DeregisterCmd contains the info needed to delete a broker

func (*DeregisterCmd) Deregister

func (c *DeregisterCmd) Deregister() error

Deregister calls out to the pkg lib to delete the broker and display the output

func (*DeregisterCmd) Run

func (c *DeregisterCmd) Run() error

Run runs the command

func (*DeregisterCmd) Validate

func (c *DeregisterCmd) Validate(args []string) error

Validate checks that the required arguments have been provided

type DescribeCmd added in v0.1.43

type DescribeCmd struct {
	*command.Context
	*command.Namespaced
	*command.Scoped

	Name string
}

DescribeCmd contains the info needed to describe a broker in detail

func (*DescribeCmd) Run added in v0.1.43

func (c *DescribeCmd) Run() error

Run retrieves the broker(s) with the requested name, interprets possible errors if we need to ask the user for more info, and displays the found broker to the user

func (*DescribeCmd) Validate added in v0.1.43

func (c *DescribeCmd) Validate(args []string) error

Validate checks that the required arguments have been provided

type GetCmd added in v0.1.43

type GetCmd struct {
	*command.Namespaced
	*command.Formatted
	*command.Scoped

	Name string
}

GetCmd contains the information needed to get a broker or list of brokers

func (*GetCmd) Run added in v0.1.43

func (c *GetCmd) Run() error

Run determines if we're getting all brokers or a single broker, then queries the backend to get that information

func (*GetCmd) Validate added in v0.1.43

func (c *GetCmd) Validate(args []string) error

Validate checks that the required arguments have been provided

type RegisterCmd

type RegisterCmd struct {
	*command.Namespaced
	*command.Scoped
	*command.Waitable

	BasicSecret       string
	BearerSecret      string
	BrokerName        string
	CAFile            string
	ClassRestrictions []string
	PlanRestrictions  []string
	SkipTLS           bool
	RelistBehavior    string
	RelistDuration    time.Duration
	URL               string
}

RegisterCmd contains the information needed to register a broker

func (*RegisterCmd) Run

func (c *RegisterCmd) Run() error

Run creates the broker and then displays the broker details

func (*RegisterCmd) Validate

func (c *RegisterCmd) Validate(args []string) error

Validate checks that the required arguments have been provided

Jump to

Keyboard shortcuts

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