Documentation ¶
Index ¶
- Variables
- func GenerateMessageDescriptors(cliOpts *opts.CLIOptions) (*dpb.FileDescriptorSet, error)
- type Config
- type Plumber
- func (p *Plumber) EnqueueManage(event posthog.Capture)
- func (p *Plumber) HandleBatchCmd() error
- func (p *Plumber) HandleCreateConnectionCmd(ctx context.Context, client protos.PlumberServerClient) error
- func (p *Plumber) HandleCreateRelayCmd(ctx context.Context, client protos.PlumberServerClient) error
- func (p *Plumber) HandleCreateTunnelCmd(ctx context.Context, client protos.PlumberServerClient) error
- func (p *Plumber) HandleDeleteConnectionCmd(ctx context.Context, client protos.PlumberServerClient) error
- func (p *Plumber) HandleDeleteRelayCmd(ctx context.Context, client protos.PlumberServerClient) error
- func (p *Plumber) HandleDeleteTunnelCmd(ctx context.Context, client protos.PlumberServerClient) error
- func (p *Plumber) HandleGetAllConnectionsCmd(ctx context.Context, client protos.PlumberServerClient) error
- func (p *Plumber) HandleGetAllRelaysCmd(ctx context.Context, client protos.PlumberServerClient) error
- func (p *Plumber) HandleGetAllTunnelsCmd(ctx context.Context, client protos.PlumberServerClient) error
- func (p *Plumber) HandleGetConnectionCmd(ctx context.Context, client protos.PlumberServerClient) error
- func (p *Plumber) HandleGetRelayCmd(ctx context.Context, client protos.PlumberServerClient) error
- func (p *Plumber) HandleGetTunnelCmd(ctx context.Context, client protos.PlumberServerClient) error
- func (p *Plumber) HandleManageCmd() error
- func (p *Plumber) HandleReadCmd() error
- func (p *Plumber) HandleRelayCmd() error
- func (p *Plumber) HandleResumeRelayCmd(ctx context.Context, client protos.PlumberServerClient) error
- func (p *Plumber) HandleResumeTunnelCmd(ctx context.Context, client protos.PlumberServerClient) error
- func (p *Plumber) HandleStopRelayCmd(ctx context.Context, client protos.PlumberServerClient) error
- func (p *Plumber) HandleStopTunnelCmd(ctx context.Context, client protos.PlumberServerClient) error
- func (p *Plumber) HandleTunnelCmd() error
- func (p *Plumber) HandleWriteCmd() error
- func (p *Plumber) Run()
- func (p *Plumber) RunServer() error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMissingShutdownCtx = errors.New("ServiceShutdownCtx cannot be nil") ErrMissingMainShutdownFunc = errors.New("MainShutdownFunc cannot be nil") ErrMissingMainContext = errors.New("MainContext cannot be nil") ErrMissingOptions = errors.New("CLIOptions cannot be nil") ErrMissingPersistentConfig = errors.New("PersistentConfig cannot be nil") ErrMissingKongCtx = errors.New("KongCtx cannot be nil") ErrMissingActions = errors.New("Actions cannot be nil") ErrMissingTelemetry = errors.New("Telemetry cannot be nil") )
Functions ¶
func GenerateMessageDescriptors ¶ added in v1.0.4
func GenerateMessageDescriptors(cliOpts *opts.CLIOptions) (*dpb.FileDescriptorSet, error)
Types ¶
type Config ¶
type Config struct { Telemetry telemetry.ITelemetry PersistentConfig *config.Config Actions actions.IActions ServiceShutdownCtx context.Context MainShutdownFunc context.CancelFunc MainShutdownCtx context.Context CLIOptions *opts.CLIOptions KongCtx *kong.Context }
Config contains configurable options for instantiating a new Plumber
type Plumber ¶
type Plumber struct { *Config Bus bus.IBus RelayCh chan interface{} // contains filtered or unexported fields }
func (*Plumber) EnqueueManage ¶ added in v1.12.0
func (p *Plumber) EnqueueManage(event posthog.Capture)
func (*Plumber) HandleBatchCmd ¶ added in v1.0.0
HandleBatchCmd handles all commands related to Batch.sh API
func (*Plumber) HandleCreateConnectionCmd ¶ added in v1.5.0
func (*Plumber) HandleCreateRelayCmd ¶ added in v1.5.0
func (*Plumber) HandleCreateTunnelCmd ¶ added in v1.5.0
func (*Plumber) HandleDeleteConnectionCmd ¶ added in v1.5.0
func (*Plumber) HandleDeleteRelayCmd ¶ added in v1.5.0
func (*Plumber) HandleDeleteTunnelCmd ¶ added in v1.5.0
func (*Plumber) HandleGetAllConnectionsCmd ¶ added in v1.5.0
func (*Plumber) HandleGetAllRelaysCmd ¶ added in v1.5.0
func (*Plumber) HandleGetAllTunnelsCmd ¶ added in v1.5.0
func (*Plumber) HandleGetConnectionCmd ¶ added in v1.5.0
func (*Plumber) HandleGetRelayCmd ¶ added in v1.5.0
func (*Plumber) HandleGetTunnelCmd ¶ added in v1.5.0
func (*Plumber) HandleManageCmd ¶ added in v1.5.0
func (*Plumber) HandleReadCmd ¶ added in v1.0.0
HandleReadCmd handles CLI read mode
func (*Plumber) HandleRelayCmd ¶ added in v1.0.0
HandleRelayCmd handles CLI relay mode. Container/envar mode is handled by processEnvRelayFlags
func (*Plumber) HandleResumeRelayCmd ¶ added in v1.5.0
func (*Plumber) HandleResumeTunnelCmd ¶ added in v1.5.0
func (*Plumber) HandleStopRelayCmd ¶ added in v1.5.0
func (*Plumber) HandleStopTunnelCmd ¶ added in v1.5.0
func (*Plumber) HandleTunnelCmd ¶ added in v1.4.0
HandleTunnelCmd handles tunnel destination mode commands
func (*Plumber) HandleWriteCmd ¶ added in v1.0.0
HandleWriteCmd handles write mode
Click to show internal directories.
Click to hide internal directories.