Documentation ¶
Index ¶
- func NewTeamDataSource() datasource.DataSource
- func NewTeamResource() resource.Resource
- func TFTeamToDTTeam(ctx context.Context, tfTeam TeamResourceModel) (dtrack.Team, diag.Diagnostics)
- type TeamDataSource
- func (d *TeamDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *TeamDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *TeamDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *TeamDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type TeamDataSourceModel
- type TeamResource
- func (r *TeamResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *TeamResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *TeamResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *TeamResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *TeamResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *TeamResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *TeamResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *TeamResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type TeamResourceModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTeamDataSource ¶
func NewTeamDataSource() datasource.DataSource
func NewTeamResource ¶
func TFTeamToDTTeam ¶
func TFTeamToDTTeam(ctx context.Context, tfTeam TeamResourceModel) (dtrack.Team, diag.Diagnostics)
Types ¶
type TeamDataSource ¶
type TeamDataSource struct {
// contains filtered or unexported fields
}
TeamDataSource defines the data source implementation.
func (*TeamDataSource) Configure ¶
func (d *TeamDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*TeamDataSource) Metadata ¶
func (d *TeamDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*TeamDataSource) Read ¶
func (d *TeamDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*TeamDataSource) Schema ¶
func (d *TeamDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type TeamDataSourceModel ¶
type TeamDataSourceModel struct { ID types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Permissions types.Set `tfsdk:"permissions"` }
TeamDataSourceModel describes the data source data model.
type TeamResource ¶
type TeamResource struct {
// contains filtered or unexported fields
}
TeamResource defines the resource implementation.
func (*TeamResource) Configure ¶
func (r *TeamResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*TeamResource) Create ¶
func (r *TeamResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*TeamResource) Delete ¶
func (r *TeamResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*TeamResource) ImportState ¶
func (r *TeamResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*TeamResource) Metadata ¶
func (r *TeamResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*TeamResource) Read ¶
func (r *TeamResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*TeamResource) Schema ¶
func (r *TeamResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*TeamResource) Update ¶
func (r *TeamResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type TeamResourceModel ¶
TeamResourceModel describes the resource data model.
func DTTeamToTFTeam ¶
func DTTeamToTFTeam(ctx context.Context, dtTeam dtrack.Team) (TeamResourceModel, diag.Diagnostics)
Click to show internal directories.
Click to hide internal directories.