session

package
v0.1.38 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: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackplaneSession

type BackplaneSession struct {
	Path    string
	Exists  bool
	Options *Options
}

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

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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