Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewKeepaliveDataSource() datasource.DataSource
- func NewRemoteTunnelResource() resource.Resource
- type AwsSSMTunnelsProvider
- func (p *AwsSSMTunnelsProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *AwsSSMTunnelsProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *AwsSSMTunnelsProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *AwsSSMTunnelsProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *AwsSSMTunnelsProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type AwsSSMTunnelsProviderModel
- type KeepaliveDataSource
- func (d *KeepaliveDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *KeepaliveDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *KeepaliveDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type KeepaliveDataSourceModel
- type OtherTunnelInfo
- type ProvidedConfigData
- type RemoteTunnelResource
- func (d *RemoteTunnelResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (d *RemoteTunnelResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (d *RemoteTunnelResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *RemoteTunnelResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (d *RemoteTunnelResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (d *RemoteTunnelResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (d *RemoteTunnelResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (d *RemoteTunnelResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type SSMRemoteTunnelResourceModel
- type TunnelInfo
- type TunnelTracker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewKeepaliveDataSource ¶ added in v0.1.0
func NewKeepaliveDataSource() datasource.DataSource
func NewRemoteTunnelResource ¶ added in v0.2.0
Types ¶
type AwsSSMTunnelsProvider ¶
type AwsSSMTunnelsProvider struct {
// contains filtered or unexported fields
}
AwsSSMTunnelsProvider defines the provider implementation.
func (*AwsSSMTunnelsProvider) Configure ¶
func (p *AwsSSMTunnelsProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*AwsSSMTunnelsProvider) DataSources ¶
func (p *AwsSSMTunnelsProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*AwsSSMTunnelsProvider) Metadata ¶
func (p *AwsSSMTunnelsProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*AwsSSMTunnelsProvider) Resources ¶
func (p *AwsSSMTunnelsProvider) Resources(ctx context.Context) []func() resource.Resource
func (*AwsSSMTunnelsProvider) Schema ¶
func (p *AwsSSMTunnelsProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
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"` 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 (d *KeepaliveDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*KeepaliveDataSource) Read ¶ added in v0.1.0
func (d *KeepaliveDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*KeepaliveDataSource) Schema ¶ added in v0.1.0
func (d *KeepaliveDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type KeepaliveDataSourceModel ¶ added in v0.1.0
KeepaliveDataSourceModel describes the data source data model.
type OtherTunnelInfo ¶ added in v0.2.0
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 (d *RemoteTunnelResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*RemoteTunnelResource) Create ¶ added in v0.2.0
func (d *RemoteTunnelResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*RemoteTunnelResource) Delete ¶ added in v0.2.0
func (d *RemoteTunnelResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*RemoteTunnelResource) ImportState ¶ added in v0.2.0
func (r *RemoteTunnelResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*RemoteTunnelResource) Metadata ¶ added in v0.2.0
func (d *RemoteTunnelResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*RemoteTunnelResource) Read ¶ added in v0.2.0
func (d *RemoteTunnelResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*RemoteTunnelResource) Schema ¶ added in v0.2.0
func (d *RemoteTunnelResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*RemoteTunnelResource) Update ¶ added in v0.2.0
func (d *RemoteTunnelResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
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 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
Click to show internal directories.
Click to hide internal directories.