Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewTor() resource.Resource
- type ScaffoldingProviderModel
- type TorKeys
- func (r *TorKeys) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *TorKeys) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *TorKeys) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *TorKeys) ImportState(_ context.Context, _ resource.ImportStateRequest, ...)
- func (r *TorKeys) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *TorKeys) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *TorKeys) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *TorKeys) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type TorModel
- type TorProvider
- func (p *TorProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *TorProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *TorProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *TorProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *TorProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ScaffoldingProviderModel ¶
type ScaffoldingProviderModel struct{}
ScaffoldingProviderModel describes the provider data model.
type TorKeys ¶
type TorKeys struct{}
TorKeys defines the data source implementation.
func (*TorKeys) Configure ¶
func (r *TorKeys) Configure(_ context.Context, req resource.ConfigureRequest, _ *resource.ConfigureResponse)
func (*TorKeys) Create ¶
func (r *TorKeys) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*TorKeys) Delete ¶
func (r *TorKeys) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*TorKeys) ImportState ¶
func (r *TorKeys) ImportState(_ context.Context, _ resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*TorKeys) Metadata ¶
func (r *TorKeys) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*TorKeys) Read ¶
func (r *TorKeys) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*TorKeys) Schema ¶
func (r *TorKeys) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
func (*TorKeys) Update ¶
func (r *TorKeys) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type TorModel ¶
type TorModel struct { ID types.String `tfsdk:"id"` PrivateKey types.String `tfsdk:"private_key"` PublicKey types.String `tfsdk:"public_key"` Address types.String `tfsdk:"address"` }
TorModel describes the data source data model.
type TorProvider ¶
type TorProvider struct {
// contains filtered or unexported fields
}
TorProvider defines the provider implementation.
func (*TorProvider) Configure ¶
func (p *TorProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*TorProvider) DataSources ¶
func (p *TorProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*TorProvider) Metadata ¶
func (p *TorProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*TorProvider) Resources ¶
func (p *TorProvider) Resources(ctx context.Context) []func() resource.Resource
func (*TorProvider) Schema ¶
func (p *TorProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
Click to show internal directories.
Click to hide internal directories.