provider

package
v0.0.0-...-0c25e98 Latest Latest
Warning

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

Go to latest
Published: May 28, 2023 License: MPL-2.0 Imports: 20 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 NewDeviceResource

func NewDeviceResource() resource.Resource

func NewRuleResource

func NewRuleResource() resource.Resource

func NewUserDataSource

func NewUserDataSource() datasource.DataSource

func NewUserResource

func NewUserResource() resource.Resource

Types

type DeviceResource

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

DeviceResource defines the resource implementation.

func (*DeviceResource) Configure

func (*DeviceResource) Create

func (*DeviceResource) Delete

func (*DeviceResource) ImportState

func (*DeviceResource) Metadata

func (*DeviceResource) Read

func (*DeviceResource) Schema

func (*DeviceResource) Update

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"`
	PresharedKey                  types.String `tfsdk:"preshared_key"`
	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 (*FirezoneProvider) DataSources

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

func (*FirezoneProvider) Metadata

func (*FirezoneProvider) Resources

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

func (*FirezoneProvider) Schema

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 (*RuleResource) Create

func (*RuleResource) Delete

func (*RuleResource) ImportState

func (*RuleResource) Metadata

func (*RuleResource) Read

func (*RuleResource) Schema

func (*RuleResource) Update

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

func (*UserDataSource) Read

func (*UserDataSource) Schema

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 (*UserResource) Create

func (*UserResource) Delete

func (*UserResource) ImportState

func (*UserResource) Metadata

func (*UserResource) Read

func (*UserResource) Schema

func (*UserResource) Update

type UserResourceModel

type UserResourceModel struct {
	Id         types.String `tfsdk:"id"`
	Email      types.String `tfsdk:"email"`
	Role       types.String `tfsdk:"role"`
	DisabledAt types.String `tfsdk:"disabled_at"`
}

UserResourceModel describes the resource data model.

Jump to

Keyboard shortcuts

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