provider

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: MPL-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(version string) func() provider.Provider

func NewKeepaliveDataSource added in v0.1.0

func NewKeepaliveDataSource() datasource.DataSource

func NewRemoteTunnelResource added in v0.2.0

func NewRemoteTunnelResource() resource.Resource

Types

type AwsSSMTunnelsProvider

type AwsSSMTunnelsProvider struct {
	// contains filtered or unexported fields
}

AwsSSMTunnelsProvider defines the provider implementation.

func (*AwsSSMTunnelsProvider) Configure

func (*AwsSSMTunnelsProvider) DataSources

func (p *AwsSSMTunnelsProvider) DataSources(ctx context.Context) []func() datasource.DataSource

func (*AwsSSMTunnelsProvider) Metadata

func (*AwsSSMTunnelsProvider) Resources

func (p *AwsSSMTunnelsProvider) Resources(ctx context.Context) []func() resource.Resource

func (*AwsSSMTunnelsProvider) Schema

type AwsSSMTunnelsProviderModel

type AwsSSMTunnelsProviderModel struct {
	Region            types.String   `tfsdk:"region"`
	AccessKey         types.String   `tfsdk:"access_key"`
	SecretKey         types.String   `tfsdk:"secret_key"`
	SessionToken      types.String   `tfsdk:"token"`
	SharedConfigFiles []types.String `tfsdk:"shared_config_files"`
	Profile           types.String   `tfsdk:"profile"`
	Target            types.String   `tfsdk:"target"`
}

AwsSSMTunnelsProviderModel describes the provider data model.

type KeepaliveDataSource added in v0.1.0

type KeepaliveDataSource struct {
}

KeepaliveDataSource defines the data source implementation.

func (*KeepaliveDataSource) Metadata added in v0.1.0

func (*KeepaliveDataSource) Read added in v0.1.0

func (*KeepaliveDataSource) Schema added in v0.1.0

type KeepaliveDataSourceModel added in v0.1.0

type KeepaliveDataSourceModel struct {
	Id types.String `tfsdk:"id"`
}

KeepaliveDataSourceModel describes the data source data model.

type OtherTunnelInfo added in v0.2.0

type OtherTunnelInfo struct {
	LocalPort   int
	LocalHost   string
	ReadySignal chan bool // Used to signal when the tunnel is ready
}

type ProvidedConfigData added in v0.4.0

type ProvidedConfigData struct {
	Tracker *TunnelTracker
	Region  string
	Target  string
}

type RemoteTunnelResource added in v0.2.0

type RemoteTunnelResource struct {
	// contains filtered or unexported fields
}

RemoteTunnelResource defines the resource implementation.

func (*RemoteTunnelResource) Configure added in v0.2.0

func (*RemoteTunnelResource) Create added in v0.2.0

func (*RemoteTunnelResource) Delete added in v0.2.0

func (*RemoteTunnelResource) ImportState added in v0.2.0

func (*RemoteTunnelResource) Metadata added in v0.2.0

func (*RemoteTunnelResource) Read added in v0.2.0

func (*RemoteTunnelResource) Schema added in v0.2.0

func (*RemoteTunnelResource) Update added in v0.2.0

type SSMRemoteTunnelResourceModel added in v0.2.0

type SSMRemoteTunnelResourceModel struct {
	RefreshId  types.String `tfsdk:"refresh_id"`
	RemoteHost types.String `tfsdk:"remote_host"`
	RemotePort types.Int64  `tfsdk:"remote_port"`
	LocalPort  types.Int64  `tfsdk:"local_port"`
	LocalHost  types.String `tfsdk:"local_host"`
	Id         types.String `tfsdk:"id"`
}

SSMRemoteTunnelDataSourceModel describes the data source data model.

type TunnelInfo added in v0.0.3

type TunnelInfo struct {
	IsRunning   bool
	LocalPort   int
	ReadySignal chan bool // Used to signal when the tunnel is ready
}

type TunnelTracker added in v0.0.3

type TunnelTracker struct {
	Tunnels map[string]*TunnelInfo
	Svc     *ssm.Client
	// contains filtered or unexported fields
}

func NewTunnelTracker added in v0.0.3

func NewTunnelTracker(svc *ssm.Client) *TunnelTracker

func (*TunnelTracker) StartTunnel added in v0.0.3

func (t *TunnelTracker) StartTunnel(ctx context.Context, id string, target string, remoteHost string, remotePort int, localPort int, region string) (*OtherTunnelInfo, error)

Ignore the tracker for now

Jump to

Keyboard shortcuts

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