tunnels

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BastionEntity

type BastionEntity struct {
	Id   string `json:"id"`
	IP   string `json:"ip"`
	User string `json:"user"`
}

type BastionService

type BastionService interface {
	GetBastion(ctx context.Context) (*BastionEntity, error)
	PushKey(ctx context.Context, bastion *BastionEntity, pub string) error
}

type EndpointInfo

type EndpointInfo struct {
	Protocol string `json:"protocol"`
	Host     string `json:"host"`
	Port     int    `json:"port"`
}

func (*EndpointInfo) String

func (e *EndpointInfo) String() string

type EndpointProvider

type EndpointProvider interface {
	GetEndpoint(ctx context.Context) (*EndpointInfo, error)
}

type KeyProvider

type KeyProvider interface {
	RetireveKey() ([]byte, []byte)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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