Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewObjectResource() resource.Resource
- func NewTypeDataSource() datasource.DataSource
- type COPProvider
- func (p *COPProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *COPProvider) DataSources(_ context.Context) []func() datasource.DataSource
- func (p *COPProvider) Functions(_ context.Context) []func() function.Function
- func (p *COPProvider) Metadata(_ context.Context, _ provider.MetadataRequest, resp *provider.MetadataResponse)
- func (p *COPProvider) Resources(_ context.Context) []func() resource.Resource
- func (p *COPProvider) Schema(_ context.Context, _ provider.SchemaRequest, resp *provider.SchemaResponse)
- type COPProviderModel
- type IsValidJSONString
- type ObjectResource
- func (r *ObjectResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *ObjectResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ObjectResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ObjectResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ObjectResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *ObjectResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ObjectResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ObjectResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ObjectResourceModel
- type TypeDataSource
- func (d *TypeDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, ...)
- func (d *TypeDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d *TypeDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *TypeDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type TypeDataSourceModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewObjectResource ¶
func NewTypeDataSource ¶
func NewTypeDataSource() datasource.DataSource
Types ¶
type COPProvider ¶
type COPProvider struct {
// contains filtered or unexported fields
}
COPProvider defines the provider implementation.
func (*COPProvider) Configure ¶
func (p *COPProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*COPProvider) DataSources ¶
func (p *COPProvider) DataSources(_ context.Context) []func() datasource.DataSource
func (*COPProvider) Functions ¶
func (p *COPProvider) Functions(_ context.Context) []func() function.Function
func (*COPProvider) Metadata ¶
func (p *COPProvider) Metadata(_ context.Context, _ provider.MetadataRequest, resp *provider.MetadataResponse)
func (*COPProvider) Resources ¶
func (p *COPProvider) Resources(_ context.Context) []func() resource.Resource
func (*COPProvider) Schema ¶
func (p *COPProvider) Schema(_ context.Context, _ provider.SchemaRequest, resp *provider.SchemaResponse)
Schema defines the provider-level schema for configuration data.
type COPProviderModel ¶
type COPProviderModel struct { Username types.String `tfsdk:"username"` Password types.String `tfsdk:"password"` URL types.String `tfsdk:"url"` AuthMethod types.String `tfsdk:"auth_method"` Tenant types.String `tfsdk:"tenant"` SecretsFile types.String `tfsdk:"secrets_file"` }
COPProviderModel describes the provider data model.
type IsValidJSONString ¶ added in v0.0.2
type IsValidJSONString struct {
JSONString string
}
func (IsValidJSONString) Description ¶ added in v0.0.2
func (v IsValidJSONString) Description(_ context.Context) string
func (IsValidJSONString) MarkdownDescription ¶ added in v0.0.2
func (v IsValidJSONString) MarkdownDescription(ctx context.Context) string
func (IsValidJSONString) ValidateString ¶ added in v0.0.2
func (v IsValidJSONString) ValidateString(ctx context.Context, request validator.StringRequest, response *validator.StringResponse)
type ObjectResource ¶
type ObjectResource struct {
// contains filtered or unexported fields
}
ObjectResource defines the resource implementation.
func (*ObjectResource) Configure ¶
func (r *ObjectResource) Configure(_ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*ObjectResource) Create ¶
func (r *ObjectResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*ObjectResource) Delete ¶
func (r *ObjectResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*ObjectResource) ImportState ¶
func (r *ObjectResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*ObjectResource) Metadata ¶
func (r *ObjectResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*ObjectResource) Read ¶
func (r *ObjectResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*ObjectResource) Schema ¶
func (r *ObjectResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines the schema for the resource.
func (*ObjectResource) Update ¶
func (r *ObjectResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type ObjectResourceModel ¶
type ObjectResourceModel struct { TypeName types.String `tfsdk:"type_name"` ObjectID types.String `tfsdk:"object_id"` LayerID types.String `tfsdk:"layer_id"` LayerType types.String `tfsdk:"layer_type"` Data types.String `tfsdk:"data"` ImportID types.String `tfsdk:"import_id"` ID types.String `tfsdk:"id"` }
ObjectResourceModel describes the resource data model.
type TypeDataSource ¶
type TypeDataSource struct {
// contains filtered or unexported fields
}
TypeDataSource defines the data source implementation.
func (*TypeDataSource) Configure ¶
func (d *TypeDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*TypeDataSource) Metadata ¶
func (d *TypeDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*TypeDataSource) Read ¶
func (d *TypeDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*TypeDataSource) Schema ¶
func (d *TypeDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema defines the schema for the data source.
Click to show internal directories.
Click to hide internal directories.