Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewNodeDataSource() datasource.DataSource
- func NewNodeResource() resource.Resource
- type BasicAuth
- type BoskClient
- type BoskProvider
- func (p *BoskProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *BoskProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *BoskProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *BoskProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *BoskProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type BoskProviderModel
- type NodeDataSource
- func (d *NodeDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *NodeDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *NodeDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *NodeDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type NodeModel
- type NodeResource
- func (r *NodeResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *NodeResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *NodeResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *NodeResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *NodeResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *NodeResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *NodeResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *NodeResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNodeDataSource ¶
func NewNodeDataSource() datasource.DataSource
func NewNodeResource ¶
Types ¶
type BoskClient ¶
type BoskClient struct {
// contains filtered or unexported fields
}
func NewBoskClient ¶
func NewBoskClient(httpClient *http.Client, username string, password string) *BoskClient
func NewBoskClientWithoutAuth ¶
func NewBoskClientWithoutAuth(httpClient *http.Client) *BoskClient
func (*BoskClient) Delete ¶
func (client *BoskClient) Delete(url string, diag *diag.Diagnostics)
func (*BoskClient) GetJSONAsString ¶
func (client *BoskClient) GetJSONAsString(url string, diag *diag.Diagnostics) string
Portions taken from: https://github.com/hashicorp/terraform-provider-http/blob/main/internal/provider/data_source_http.go
func (*BoskClient) PutJSONAsString ¶
func (client *BoskClient) PutJSONAsString(url string, value string, diag *diag.Diagnostics)
type BoskProvider ¶
type BoskProvider struct {
// contains filtered or unexported fields
}
BoskProvider defines the provider implementation.
func (*BoskProvider) Configure ¶
func (p *BoskProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*BoskProvider) DataSources ¶
func (p *BoskProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*BoskProvider) Metadata ¶
func (p *BoskProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*BoskProvider) Resources ¶
func (p *BoskProvider) Resources(ctx context.Context) []func() resource.Resource
func (*BoskProvider) Schema ¶
func (p *BoskProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
type BoskProviderModel ¶
BoskProviderModel describes the provider data model.
type NodeDataSource ¶
type NodeDataSource struct {
// contains filtered or unexported fields
}
NodeDataSource defines the data source implementation.
func (*NodeDataSource) Configure ¶
func (d *NodeDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*NodeDataSource) Metadata ¶
func (d *NodeDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*NodeDataSource) Read ¶
func (d *NodeDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*NodeDataSource) Schema ¶
func (d *NodeDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type NodeModel ¶ added in v0.0.16
type NodeModel struct { URL types.String `tfsdk:"url"` Value_json types.String `tfsdk:"value_json"` }
func (*NodeModel) Validate ¶ added in v0.0.16
func (m *NodeModel) Validate(diag *diag.Diagnostics)
type NodeResource ¶
type NodeResource struct {
// contains filtered or unexported fields
}
NodeResource defines the resource implementation.
func (*NodeResource) Configure ¶
func (r *NodeResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*NodeResource) Create ¶
func (r *NodeResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*NodeResource) Delete ¶
func (r *NodeResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*NodeResource) ImportState ¶
func (r *NodeResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*NodeResource) Metadata ¶
func (r *NodeResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*NodeResource) Read ¶
func (r *NodeResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*NodeResource) Schema ¶
func (r *NodeResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*NodeResource) Update ¶
func (r *NodeResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Click to show internal directories.
Click to hide internal directories.