Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewDeviceResource() resource.Resource
- func NewRuleResource() resource.Resource
- func NewUserDataSource() datasource.DataSource
- func NewUserResource() resource.Resource
- type DeviceResource
- func (r *DeviceResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *DeviceResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *DeviceResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *DeviceResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *DeviceResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *DeviceResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *DeviceResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *DeviceResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type DeviceResourceModel
- type FirezoneProvider
- func (p *FirezoneProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *FirezoneProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *FirezoneProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *FirezoneProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *FirezoneProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type FirezoneProviderModel
- type RuleResource
- func (r *RuleResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *RuleResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *RuleResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *RuleResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *RuleResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *RuleResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *RuleResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *RuleResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type RuleResourceModel
- type UserDataSource
- func (d *UserDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *UserDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *UserDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *UserDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type UserDataSourceModel
- type UserResource
- func (r *UserResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *UserResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *UserResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *UserResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *UserResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *UserResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *UserResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *UserResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type UserResourceModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDeviceResource ¶
func NewRuleResource ¶
func NewUserDataSource ¶
func NewUserDataSource() datasource.DataSource
func NewUserResource ¶
Types ¶
type DeviceResource ¶
type DeviceResource struct {
// contains filtered or unexported fields
}
DeviceResource defines the resource implementation.
func (*DeviceResource) Configure ¶
func (r *DeviceResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*DeviceResource) Create ¶
func (r *DeviceResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*DeviceResource) Delete ¶
func (r *DeviceResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*DeviceResource) ImportState ¶
func (r *DeviceResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*DeviceResource) Metadata ¶
func (r *DeviceResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*DeviceResource) Read ¶
func (r *DeviceResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*DeviceResource) Schema ¶
func (r *DeviceResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*DeviceResource) Update ¶
func (r *DeviceResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type DeviceResourceModel ¶
type DeviceResourceModel struct { Id types.String `tfsdk:"id"` // AllowedIPs types.List `tfsdk:"allowed_ips"` Description types.String `tfsdk:"description"` // DNS types.List `tfsdk:"dns"` Endpoint types.String `tfsdk:"endpoint"` IPv4 types.String `tfsdk:"ipv4"` IPv6 types.String `tfsdk:"ipv6"` MTU types.Int64 `tfsdk:"mtu"` Name types.String `tfsdk:"name"` PersistentKeepalive types.Int64 `tfsdk:"persistent_keepalive"` PublicKey types.String `tfsdk:"public_key"` UseDefaultAllowedIPs types.Bool `tfsdk:"use_default_allowed_ips"` UseDefaultDNS types.Bool `tfsdk:"use_default_dns"` UseDefaultEndpoint types.Bool `tfsdk:"use_default_endpoint"` UseDefaultMTU types.Bool `tfsdk:"use_default_mtu"` UseDefaultPersistentKeepalive types.Bool `tfsdk:"use_default_persistent_keepalive"` UserId types.String `tfsdk:"user_id"` }
DeviceResourceModel describes the resource data model.
type FirezoneProvider ¶
type FirezoneProvider struct {
// contains filtered or unexported fields
}
FirezoneProvider defines the provider implementation.
func (*FirezoneProvider) Configure ¶
func (p *FirezoneProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*FirezoneProvider) DataSources ¶
func (p *FirezoneProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*FirezoneProvider) Metadata ¶
func (p *FirezoneProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*FirezoneProvider) Resources ¶
func (p *FirezoneProvider) Resources(ctx context.Context) []func() resource.Resource
func (*FirezoneProvider) Schema ¶
func (p *FirezoneProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
type FirezoneProviderModel ¶
type FirezoneProviderModel struct { Endpoint types.String `tfsdk:"endpoint"` ApiKey types.String `tfsdk:"api_key"` }
FirezoneProviderModel describes the provider data model.
type RuleResource ¶
type RuleResource struct {
// contains filtered or unexported fields
}
RuleResource defines the resource implementation.
func (*RuleResource) Configure ¶
func (r *RuleResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*RuleResource) Create ¶
func (r *RuleResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*RuleResource) Delete ¶
func (r *RuleResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*RuleResource) ImportState ¶
func (r *RuleResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*RuleResource) Metadata ¶
func (r *RuleResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*RuleResource) Read ¶
func (r *RuleResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*RuleResource) Schema ¶
func (r *RuleResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*RuleResource) Update ¶
func (r *RuleResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type RuleResourceModel ¶
type RuleResourceModel struct { Id types.String `tfsdk:"id"` UserId types.String `tfsdk:"user_id"` Action types.String `tfsdk:"action"` Destination types.String `tfsdk:"destination"` PortRange types.String `tfsdk:"port_range"` PortType types.String `tfsdk:"port_type"` }
RuleResourceModel describes the resource data model.
type UserDataSource ¶
type UserDataSource struct {
// contains filtered or unexported fields
}
UserDataSource defines the data source implementation.
func (*UserDataSource) Configure ¶
func (d *UserDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*UserDataSource) Metadata ¶
func (d *UserDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*UserDataSource) Read ¶
func (d *UserDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*UserDataSource) Schema ¶
func (d *UserDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type UserDataSourceModel ¶
type UserDataSourceModel struct { Id types.String `tfsdk:"id"` Email types.String `tfsdk:"email"` Role types.String `tfsdk:"role"` DisabledAt types.String `tfsdk:"disabled_at"` }
UserDataSourceModel describes the data source data model.
type UserResource ¶
type UserResource struct {
// contains filtered or unexported fields
}
UserResource defines the resource implementation.
func (*UserResource) Configure ¶
func (r *UserResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*UserResource) Create ¶
func (r *UserResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*UserResource) Delete ¶
func (r *UserResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*UserResource) ImportState ¶
func (r *UserResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*UserResource) Metadata ¶
func (r *UserResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*UserResource) Read ¶
func (r *UserResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*UserResource) Schema ¶
func (r *UserResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*UserResource) Update ¶
func (r *UserResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Click to show internal directories.
Click to hide internal directories.