Documentation ¶
Index ¶
- Constants
- func DeterministicSSHPort(ip net.IP) int32
- func New(version string) func() provider.Provider
- func NewAccountDataSource() datasource.DataSource
- func NewPersonasDataSource() datasource.DataSource
- func NewSensorBootstrapResource() resource.Resource
- func NewSensorDataSource() datasource.DataSource
- func NewSensorMetadataResource() resource.Resource
- func NewSensorPersonaResource() resource.Resource
- type AccountDataSource
- func (d *AccountDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, ...)
- func (d *AccountDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d *AccountDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *AccountDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type AccountDataSourceModel
- type Data
- type GreyNoiseProvider
- func (p *GreyNoiseProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *GreyNoiseProvider) DataSources(_ context.Context) []func() datasource.DataSource
- func (p *GreyNoiseProvider) Functions(_ context.Context) []func() function.Function
- func (p *GreyNoiseProvider) Metadata(_ context.Context, _ provider.MetadataRequest, resp *provider.MetadataResponse)
- func (p *GreyNoiseProvider) Resources(_ context.Context) []func() resource.Resource
- func (p *GreyNoiseProvider) Schema(_ context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type GreyNoiseProviderModel
- type PersonasDataSource
- func (d *PersonasDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, ...)
- func (d *PersonasDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d *PersonasDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *PersonasDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type PersonasDataSourceModel
- type SensorBootstrapResource
- func (r *SensorBootstrapResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *SensorBootstrapResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *SensorBootstrapResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *SensorBootstrapResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *SensorBootstrapResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *SensorBootstrapResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *SensorBootstrapResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *SensorBootstrapResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type SensorBootstrapResourceModel
- type SensorDataSource
- func (d *SensorDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, ...)
- func (d *SensorDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d *SensorDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *SensorDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type SensorDataSourceModel
- type SensorMetadataResource
- func (r *SensorMetadataResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *SensorMetadataResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *SensorMetadataResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *SensorMetadataResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *SensorMetadataResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *SensorMetadataResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *SensorMetadataResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *SensorMetadataResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type SensorMetadataResourceModel
- type SensorPersonaResource
- func (r *SensorPersonaResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *SensorPersonaResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *SensorPersonaResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *SensorPersonaResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *SensorPersonaResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *SensorPersonaResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *SensorPersonaResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *SensorPersonaResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type SensorPersonaResourceModel
Constants ¶
View Source
const ( SSHPortMin = 55000 SSHPortMax = 65535 )
Variables ¶
This section is empty.
Functions ¶
func DeterministicSSHPort ¶ added in v0.4.1
func NewAccountDataSource ¶
func NewAccountDataSource() datasource.DataSource
func NewPersonasDataSource ¶
func NewPersonasDataSource() datasource.DataSource
func NewSensorDataSource ¶
func NewSensorDataSource() datasource.DataSource
func NewSensorMetadataResource ¶ added in v0.5.0
Types ¶
type AccountDataSource ¶
type AccountDataSource struct {
// contains filtered or unexported fields
}
func (*AccountDataSource) Configure ¶
func (d *AccountDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*AccountDataSource) Metadata ¶
func (d *AccountDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*AccountDataSource) Read ¶
func (d *AccountDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*AccountDataSource) Schema ¶
func (d *AccountDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
type AccountDataSourceModel ¶
type Data ¶
type Data struct { Client *client.GreyNoiseClient APIKey string }
type GreyNoiseProvider ¶
type GreyNoiseProvider struct {
// contains filtered or unexported fields
}
func (*GreyNoiseProvider) Configure ¶
func (p *GreyNoiseProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*GreyNoiseProvider) DataSources ¶
func (p *GreyNoiseProvider) DataSources(_ context.Context) []func() datasource.DataSource
func (*GreyNoiseProvider) Functions ¶
func (p *GreyNoiseProvider) Functions(_ context.Context) []func() function.Function
func (*GreyNoiseProvider) Metadata ¶
func (p *GreyNoiseProvider) Metadata(_ context.Context, _ provider.MetadataRequest, resp *provider.MetadataResponse)
func (*GreyNoiseProvider) Resources ¶
func (p *GreyNoiseProvider) Resources(_ context.Context) []func() resource.Resource
func (*GreyNoiseProvider) Schema ¶
func (p *GreyNoiseProvider) Schema(_ context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
type GreyNoiseProviderModel ¶
type PersonasDataSource ¶
type PersonasDataSource struct {
// contains filtered or unexported fields
}
func (*PersonasDataSource) Configure ¶
func (d *PersonasDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*PersonasDataSource) Metadata ¶
func (d *PersonasDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*PersonasDataSource) Read ¶
func (d *PersonasDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*PersonasDataSource) Schema ¶
func (d *PersonasDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
type PersonasDataSourceModel ¶
type SensorBootstrapResource ¶
type SensorBootstrapResource struct {
// contains filtered or unexported fields
}
func (*SensorBootstrapResource) Configure ¶
func (r *SensorBootstrapResource) Configure(_ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*SensorBootstrapResource) Create ¶
func (r *SensorBootstrapResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*SensorBootstrapResource) Delete ¶
func (r *SensorBootstrapResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*SensorBootstrapResource) ImportState ¶
func (r *SensorBootstrapResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*SensorBootstrapResource) Metadata ¶
func (r *SensorBootstrapResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*SensorBootstrapResource) Read ¶
func (r *SensorBootstrapResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*SensorBootstrapResource) Schema ¶
func (r *SensorBootstrapResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
func (*SensorBootstrapResource) Update ¶
func (r *SensorBootstrapResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type SensorBootstrapResourceModel ¶
type SensorBootstrapResourceModel struct { PublicIP types.String `tfsdk:"public_ip"` InternalIP types.String `tfsdk:"internal_ip"` Config types.Map `tfsdk:"config"` NAT types.Bool `tfsdk:"nat"` SensorPublicIPs types.List `tfsdk:"sensor_public_ips"` SetupScript types.String `tfsdk:"setup_script"` BootstrapScript types.String `tfsdk:"bootstrap_script"` UnBootstrapScript types.String `tfsdk:"unbootstrap_script"` SSHPort types.Int32 `tfsdk:"ssh_port"` SSHPortSelected types.Int32 `tfsdk:"ssh_port_selected"` }
type SensorDataSource ¶
type SensorDataSource struct {
// contains filtered or unexported fields
}
func (*SensorDataSource) Configure ¶
func (d *SensorDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*SensorDataSource) Metadata ¶
func (d *SensorDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*SensorDataSource) Read ¶
func (d *SensorDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*SensorDataSource) Schema ¶
func (d *SensorDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
type SensorDataSourceModel ¶
type SensorDataSourceModel struct { ID types.String `tfsdk:"id"` PublicIP types.String `tfsdk:"public_ip"` Name types.String `tfsdk:"name"` Status types.String `tfsdk:"status"` Disabled types.Bool `tfsdk:"disabled"` Persona types.String `tfsdk:"persona"` AccessPort types.Int32 `tfsdk:"access_port"` }
type SensorMetadataResource ¶ added in v0.5.0
type SensorMetadataResource struct {
// contains filtered or unexported fields
}
func (*SensorMetadataResource) Configure ¶ added in v0.5.0
func (r *SensorMetadataResource) Configure(_ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*SensorMetadataResource) Create ¶ added in v0.5.0
func (r *SensorMetadataResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*SensorMetadataResource) Delete ¶ added in v0.5.0
func (r *SensorMetadataResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*SensorMetadataResource) ImportState ¶ added in v0.5.0
func (r *SensorMetadataResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*SensorMetadataResource) Metadata ¶ added in v0.5.0
func (r *SensorMetadataResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*SensorMetadataResource) Read ¶ added in v0.5.0
func (r *SensorMetadataResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*SensorMetadataResource) Schema ¶ added in v0.5.0
func (r *SensorMetadataResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
func (*SensorMetadataResource) Update ¶ added in v0.5.0
func (r *SensorMetadataResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type SensorMetadataResourceModel ¶ added in v0.5.0
type SensorPersonaResource ¶
type SensorPersonaResource struct {
// contains filtered or unexported fields
}
func (*SensorPersonaResource) Configure ¶
func (r *SensorPersonaResource) Configure(_ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*SensorPersonaResource) Create ¶
func (r *SensorPersonaResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*SensorPersonaResource) Delete ¶
func (r *SensorPersonaResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*SensorPersonaResource) ImportState ¶
func (r *SensorPersonaResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*SensorPersonaResource) Metadata ¶
func (r *SensorPersonaResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*SensorPersonaResource) Read ¶
func (r *SensorPersonaResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*SensorPersonaResource) Schema ¶
func (r *SensorPersonaResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
func (*SensorPersonaResource) Update ¶
func (r *SensorPersonaResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Click to show internal directories.
Click to hide internal directories.