provider

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: MPL-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SSHPortMin = 55000
	SSHPortMax = 65535
)

Variables

This section is empty.

Functions

func DeterministicSSHPort added in v0.4.1

func DeterministicSSHPort(ip net.IP) int32

func New

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

func NewAccountDataSource

func NewAccountDataSource() datasource.DataSource

func NewPersonasDataSource

func NewPersonasDataSource() datasource.DataSource

func NewSensorBootstrapResource

func NewSensorBootstrapResource() resource.Resource

func NewSensorDataSource

func NewSensorDataSource() datasource.DataSource

func NewSensorMetadataResource added in v0.5.0

func NewSensorMetadataResource() resource.Resource

func NewSensorPersonaResource

func NewSensorPersonaResource() resource.Resource

Types

type AccountDataSource

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

func (*AccountDataSource) Configure

func (*AccountDataSource) Metadata

func (*AccountDataSource) Read

func (*AccountDataSource) Schema

type AccountDataSourceModel

type AccountDataSourceModel struct {
	UserID      types.String `tfsdk:"user_id"`
	WorkspaceID types.String `tfsdk:"workspace_id"`
}

type Data

type Data struct {
	Client *client.GreyNoiseClient
	APIKey string
}

type GreyNoiseProvider

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

func (*GreyNoiseProvider) Configure

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 (*GreyNoiseProvider) Resources

func (p *GreyNoiseProvider) Resources(_ context.Context) []func() resource.Resource

func (*GreyNoiseProvider) Schema

type GreyNoiseProviderModel

type GreyNoiseProviderModel struct {
	BaseURL types.String `tfsdk:"base_url"`
	APIKey  types.String `tfsdk:"api_key"`
}

type PersonasDataSource

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

func (*PersonasDataSource) Configure

func (*PersonasDataSource) Metadata

func (*PersonasDataSource) Read

func (*PersonasDataSource) Schema

type PersonasDataSourceModel

type PersonasDataSourceModel struct {
	Tier     types.String `tfsdk:"tier"`
	Category types.String `tfsdk:"category"`
	Protocol types.String `tfsdk:"protocol"`
	Search   types.String `tfsdk:"search"`
	Limit    types.Int32  `tfsdk:"limit"`
	IDs      types.List   `tfsdk:"ids"`
	Total    types.Int32  `tfsdk:"total"`
}

type SensorBootstrapResource

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

func (*SensorBootstrapResource) Configure

func (*SensorBootstrapResource) Create

func (*SensorBootstrapResource) Delete

func (*SensorBootstrapResource) ImportState

func (*SensorBootstrapResource) Metadata

func (*SensorBootstrapResource) Read

func (*SensorBootstrapResource) Schema

func (*SensorBootstrapResource) Update

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 (*SensorDataSource) Metadata

func (*SensorDataSource) Read

func (*SensorDataSource) Schema

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 (*SensorMetadataResource) Create added in v0.5.0

func (*SensorMetadataResource) Delete added in v0.5.0

func (*SensorMetadataResource) ImportState added in v0.5.0

func (*SensorMetadataResource) Metadata added in v0.5.0

func (*SensorMetadataResource) Read added in v0.5.0

func (*SensorMetadataResource) Schema added in v0.5.0

func (*SensorMetadataResource) Update added in v0.5.0

type SensorMetadataResourceModel added in v0.5.0

type SensorMetadataResourceModel struct {
	SensorID types.String `tfsdk:"sensor_id"`
	Name     types.String `tfsdk:"name"`
}

type SensorPersonaResource

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

func (*SensorPersonaResource) Configure

func (*SensorPersonaResource) Create

func (*SensorPersonaResource) Delete

func (*SensorPersonaResource) ImportState

func (*SensorPersonaResource) Metadata

func (*SensorPersonaResource) Read

func (*SensorPersonaResource) Schema

func (*SensorPersonaResource) Update

type SensorPersonaResourceModel

type SensorPersonaResourceModel struct {
	PersonaID types.String `tfsdk:"persona_id"`
	SensorID  types.String `tfsdk:"sensor_id"`
}

Jump to

Keyboard shortcuts

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