Documentation ¶
Index ¶
- type Actions
- func (a *Actions) CreateRelay(ctx context.Context, relayOpts *opts.RelayOptions) (*types.Relay, error)
- func (a *Actions) CreateTunnel(reqCtx context.Context, tunnelOpts *opts.TunnelOptions) (*types.Tunnel, error)
- func (a *Actions) DeleteRelay(ctx context.Context, relayID string) (*types.Relay, error)
- func (a *Actions) DeleteTunnel(ctx context.Context, tunnelID string) error
- func (a *Actions) ResumeRelay(ctx context.Context, relayID string) (*types.Relay, error)
- func (a *Actions) ResumeTunnel(ctx context.Context, tunnelID string) (*types.Tunnel, error)
- func (a *Actions) StopRelay(ctx context.Context, relayID string) (*types.Relay, error)
- func (a Actions) StopTunnel(ctx context.Context, tunnelID string) (*types.Tunnel, error)
- func (a *Actions) UpdateRelay(ctx context.Context, relayID string, relayOpts *opts.RelayOptions) (*types.Relay, error)
- func (a *Actions) UpdateTunnel(ctx context.Context, tunnelID string, tunnelOpts *opts.TunnelOptions) (*types.Tunnel, error)
- type Config
- type IActions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actions ¶
type Actions struct {
// contains filtered or unexported fields
}
func (*Actions) CreateRelay ¶
func (*Actions) CreateTunnel ¶ added in v1.4.0
func (*Actions) DeleteRelay ¶
DeleteRelay stops a relay (if active) and delete it from persistent storage
func (*Actions) DeleteTunnel ¶ added in v1.4.0
func (*Actions) ResumeRelay ¶
func (*Actions) ResumeTunnel ¶ added in v1.4.0
func (Actions) StopTunnel ¶ added in v1.4.0
func (*Actions) UpdateRelay ¶ added in v1.3.0
type IActions ¶ added in v1.5.2
type IActions interface { // relay CreateRelay(ctx context.Context, relayOpts *opts.RelayOptions) (*types.Relay, error) DeleteRelay(context.Context, string) (*types.Relay, error) StopRelay(ctx context.Context, relayID string) (*types.Relay, error) ResumeRelay(ctx context.Context, relayID string) (*types.Relay, error) UpdateRelay(ctx context.Context, relayID string, relayOpts *opts.RelayOptions) (*types.Relay, error) // tunnel CreateTunnel(reqCtx context.Context, tunnelOpts *opts.TunnelOptions) (*types.Tunnel, error) ResumeTunnel(ctx context.Context, tunnelID string) (*types.Tunnel, error) StopTunnel(ctx context.Context, tunnelID string) (*types.Tunnel, error) UpdateTunnel(ctx context.Context, tunnelID string, tunnelOpts *opts.TunnelOptions) (*types.Tunnel, error) DeleteTunnel(ctx context.Context, tunnelID string) error }
Click to show internal directories.
Click to hide internal directories.