actions

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 New

func New(cfg *Config) (*Actions, error)

func (*Actions) CreateDynamic

func (a *Actions) CreateDynamic(reqCtx context.Context, dynamicOpts *opts.DynamicOptions) (*types.Dynamic, error)

func (*Actions) CreateRelay

func (a *Actions) CreateRelay(ctx context.Context, relayOpts *opts.RelayOptions) (*types.Relay, error)

func (*Actions) DeleteDynamic

func (a *Actions) DeleteDynamic(ctx context.Context, dynamicID string) error

func (*Actions) DeleteRelay

func (a *Actions) DeleteRelay(ctx context.Context, relayID string) (*types.Relay, error)

DeleteRelay stops a relay (if active) and delete it from persistent storage

func (*Actions) ResumeDynamic

func (a *Actions) ResumeDynamic(ctx context.Context, dynamicID string) (*types.Dynamic, error)

func (*Actions) ResumeRelay

func (a *Actions) ResumeRelay(ctx context.Context, relayID string) (*types.Relay, error)

func (Actions) StopDynamic

func (a Actions) StopDynamic(ctx context.Context, dynamicID string) (*types.Dynamic, error)

func (*Actions) StopRelay

func (a *Actions) StopRelay(ctx context.Context, relayID string) (*types.Relay, error)

func (*Actions) UpdateDynamic

func (a *Actions) UpdateDynamic(ctx context.Context, dynamicID string, dynamicOpts *opts.DynamicOptions) (*types.Dynamic, error)

func (*Actions) UpdateRelay added in v1.3.0

func (a *Actions) UpdateRelay(_ context.Context, _ *opts.RelayOptions) (*types.Relay, error)

type Config

type Config struct {
	PersistentConfig *config.Config
}

Jump to

Keyboard shortcuts

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