Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewPlanetDataSource() datasource.DataSource
- func NewPlanetResource() resource.Resource
- type PlanetDataSource
- func (d *PlanetDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *PlanetDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *PlanetDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *PlanetDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type PlanetDataSourceModel
- type PlanetResource
- func (r *PlanetResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *PlanetResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *PlanetResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *PlanetResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *PlanetResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *PlanetResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *PlanetResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *PlanetResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type PlanetResourceModel
- type SWAPIProvider
- func (p *SWAPIProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *SWAPIProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *SWAPIProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *SWAPIProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *SWAPIProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type SWAPIProviderModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPlanetDataSource ¶
func NewPlanetDataSource() datasource.DataSource
func NewPlanetResource ¶
Types ¶
type PlanetDataSource ¶
type PlanetDataSource struct {
// contains filtered or unexported fields
}
PlanetDataSource defines the data source implementation.
func (*PlanetDataSource) Configure ¶
func (d *PlanetDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*PlanetDataSource) Metadata ¶
func (d *PlanetDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*PlanetDataSource) Read ¶
func (d *PlanetDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*PlanetDataSource) Schema ¶
func (d *PlanetDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type PlanetDataSourceModel ¶
type PlanetDataSourceModel struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Diameter types.Int64 `tfsdk:"diameter"` Population types.Int64 `tfsdk:"population"` }
PlanetDataSourceModel describes the data source data model.
type PlanetResource ¶
type PlanetResource struct {
// contains filtered or unexported fields
}
PlanetResource defines the resource implementation.
func (*PlanetResource) Configure ¶
func (r *PlanetResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*PlanetResource) Create ¶
func (r *PlanetResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*PlanetResource) Delete ¶
func (r *PlanetResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*PlanetResource) ImportState ¶
func (r *PlanetResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*PlanetResource) Metadata ¶
func (r *PlanetResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*PlanetResource) Read ¶
func (r *PlanetResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*PlanetResource) Schema ¶
func (r *PlanetResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*PlanetResource) Update ¶
func (r *PlanetResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type PlanetResourceModel ¶
type PlanetResourceModel struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Diameter types.Int64 `tfsdk:"diameter"` Population types.Int64 `tfsdk:"population"` }
PlanetResourceModel describes the resource data model.
type SWAPIProvider ¶
type SWAPIProvider struct {
// contains filtered or unexported fields
}
SWAPIProvider defines the provider implementation.
func (*SWAPIProvider) Configure ¶
func (p *SWAPIProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*SWAPIProvider) DataSources ¶
func (p *SWAPIProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*SWAPIProvider) Metadata ¶
func (p *SWAPIProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*SWAPIProvider) Resources ¶
func (p *SWAPIProvider) Resources(ctx context.Context) []func() resource.Resource
func (*SWAPIProvider) Schema ¶
func (p *SWAPIProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
Click to show internal directories.
Click to hide internal directories.