Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewExampleResource() resource.Resource
- func NewSysInfoDataSource() datasource.DataSource
- type ExampleResource
- func (r *ExampleResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *ExampleResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ExampleResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ExampleResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ExampleResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *ExampleResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ExampleResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ExampleResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ExampleResourceModel
- type FireflyProvider
- func (p *FireflyProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *FireflyProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *FireflyProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *FireflyProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *FireflyProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type FireflyProviderModel
- type SysInfoDataSource
- func (d *SysInfoDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *SysInfoDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *SysInfoDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *SysInfoDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type SysInfoDataSourceModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExampleResource ¶
func NewSysInfoDataSource ¶
func NewSysInfoDataSource() datasource.DataSource
Types ¶
type ExampleResource ¶
type ExampleResource struct {
// contains filtered or unexported fields
}
ExampleResource defines the resource implementation.
func (*ExampleResource) Configure ¶
func (r *ExampleResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*ExampleResource) Create ¶
func (r *ExampleResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*ExampleResource) Delete ¶
func (r *ExampleResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*ExampleResource) ImportState ¶
func (r *ExampleResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*ExampleResource) Metadata ¶
func (r *ExampleResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*ExampleResource) Read ¶
func (r *ExampleResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*ExampleResource) Schema ¶
func (r *ExampleResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*ExampleResource) Update ¶
func (r *ExampleResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type ExampleResourceModel ¶
type ExampleResourceModel struct { ConfigurableAttribute types.String `tfsdk:"configurable_attribute"` Defaulted types.String `tfsdk:"defaulted"` Id types.String `tfsdk:"id"` }
ExampleResourceModel describes the resource data model.
type FireflyProvider ¶
type FireflyProvider struct {
// contains filtered or unexported fields
}
FireflyProvider defines the provider implementation.
func (*FireflyProvider) Configure ¶
func (p *FireflyProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*FireflyProvider) DataSources ¶
func (p *FireflyProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*FireflyProvider) Metadata ¶
func (p *FireflyProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*FireflyProvider) Resources ¶
func (p *FireflyProvider) Resources(ctx context.Context) []func() resource.Resource
func (*FireflyProvider) Schema ¶
func (p *FireflyProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
type FireflyProviderModel ¶
type FireflyProviderModel struct { Endpoint types.String `tfsdk:"endpoint"` AccessToken types.String `tfsdk:"access_token"` }
FireflyProviderModel describes the provider data model.
type SysInfoDataSource ¶
type SysInfoDataSource struct {
// contains filtered or unexported fields
}
SysInfoDataSource defines the data source implementation.
func (*SysInfoDataSource) Configure ¶
func (d *SysInfoDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*SysInfoDataSource) Metadata ¶
func (d *SysInfoDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*SysInfoDataSource) Read ¶
func (d *SysInfoDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*SysInfoDataSource) Schema ¶
func (d *SysInfoDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type SysInfoDataSourceModel ¶
type SysInfoDataSourceModel struct { Version types.String `tfsdk:"version"` APIVersion types.String `tfsdk:"api_version"` PHPVersion types.String `tfsdk:"php_version"` OS types.String `tfsdk:"os"` DBDriver types.String `tfsdk:"driver"` }
SysInfoDataSourceModel describes the data source data model. No parameters required, the system info is global to the provider instance
Click to show internal directories.
Click to hide internal directories.