Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackplaneSession ¶
BackplaneSession struct for default Backplane session
func (*BackplaneSession) Delete ¶
func (e *BackplaneSession) Delete() error
Delete cleanup the backplane session
func (*BackplaneSession) RunCommand ¶
func (e *BackplaneSession) RunCommand(cmd *cobra.Command, args []string) error
RunCommand setup session and allows to execute commands
func (*BackplaneSession) Setup ¶
func (e *BackplaneSession) Setup() error
Setup initialize the session environment
func (*BackplaneSession) Start ¶
func (e *BackplaneSession) Start() error
Start trigger the session start
type BackplaneSessionInterface ¶
type BackplaneSessionInterface interface { RunCommand(cmd *cobra.Command, args []string) error Setup() error Start() error Delete() error }
BackplaneSessionInterface abstract backplane session functions
var (
DefaultBackplaneSession BackplaneSessionInterface = &BackplaneSession{}
)
type Options ¶
type Options struct { DeleteSession bool Alias string ClusterID string ClusterName string GlobalOpts *globalflags.GlobalOptions }
Options define default backplane session options
Click to show internal directories.
Click to hide internal directories.