provider

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(version string) func() provider.Provider

func NewACLMappingResource

func NewACLMappingResource() resource.Resource

func NewNotificationPublisherDataSource

func NewNotificationPublisherDataSource() datasource.DataSource

func NewNotificationPublisherResource added in v0.2.0

func NewNotificationPublisherResource() resource.Resource

func NewNotificationRuleProjectResource added in v0.5.0

func NewNotificationRuleProjectResource() resource.Resource

func NewNotificationRuleResource

func NewNotificationRuleResource() resource.Resource

func NewProjectResource

func NewProjectResource() resource.Resource

func NewTeamAPIKeyResource added in v0.4.0

func NewTeamAPIKeyResource() resource.Resource

func NewTeamDataSource

func NewTeamDataSource() datasource.DataSource

func NewTeamPermissionResource

func NewTeamPermissionResource() resource.Resource

func NewTeamResource

func NewTeamResource() resource.Resource

func TFProjectToDTProject added in v0.5.2

func TFProjectToDTProject(ctx context.Context, tfProject ProjectResourceModel) (dtrack.Project, diag.Diagnostics)

func TFPublisherToDTPublisher added in v0.2.0

Types

type ACLMappingResource

type ACLMappingResource struct {
	// contains filtered or unexported fields
}

ACLMappingResource defines the resource implementation.

func (*ACLMappingResource) Configure

func (*ACLMappingResource) Create

func (*ACLMappingResource) Delete

func (*ACLMappingResource) ImportState

func (*ACLMappingResource) Metadata

func (*ACLMappingResource) Read

func (*ACLMappingResource) Schema

func (*ACLMappingResource) Update

type ACLResourceModel

type ACLResourceModel struct {
	TeamID    types.String `tfsdk:"team_id"`
	ProjectID types.String `tfsdk:"project_id"`
}

ACLResourceModel describes the resource data model.

type DependencyTrackProvider

type DependencyTrackProvider struct {
	// contains filtered or unexported fields
}

DependencyTrackProvider defines the provider implementation.

func (*DependencyTrackProvider) Configure

func (*DependencyTrackProvider) DataSources

func (p *DependencyTrackProvider) DataSources(ctx context.Context) []func() datasource.DataSource

func (*DependencyTrackProvider) Functions

func (p *DependencyTrackProvider) Functions(ctx context.Context) []func() function.Function

func (*DependencyTrackProvider) Metadata

func (*DependencyTrackProvider) Resources

func (p *DependencyTrackProvider) Resources(ctx context.Context) []func() resource.Resource

func (*DependencyTrackProvider) Schema

type DependencyTrackProviderModel

type DependencyTrackProviderModel struct {
	Host   types.String `tfsdk:"host"`
	APIKey types.String `tfsdk:"api_key"`
}

DependencyTrackProviderModel describes the provider data model.

type NotificationPublisherDataSource

type NotificationPublisherDataSource struct {
	// contains filtered or unexported fields
}

NotificationPublisherDataSource defines the data source implementation.

func (*NotificationPublisherDataSource) Configure

func (*NotificationPublisherDataSource) Metadata

func (*NotificationPublisherDataSource) Read

func (*NotificationPublisherDataSource) Schema

type NotificationPublisherDataSourceModel

type NotificationPublisherDataSourceModel struct {
	ID               types.String `tfsdk:"id"`
	Name             types.String `tfsdk:"name"`
	PublisherClass   types.String `tfsdk:"publisher_class"`
	Template         types.String `tfsdk:"template"`
	TemplateMimeType types.String `tfsdk:"template_mime_type"`
	DefaultPublisher types.Bool   `tfsdk:"default_publisher"`
}

NotificationPublisherDataSourceModel describes the data source data model.

type NotificationPublisherResource added in v0.2.0

type NotificationPublisherResource struct {
	// contains filtered or unexported fields
}

NotificationPublisherResource defines the resource implementation.

func (*NotificationPublisherResource) Configure added in v0.2.0

func (*NotificationPublisherResource) Create added in v0.2.0

func (*NotificationPublisherResource) Delete added in v0.2.0

func (*NotificationPublisherResource) ImportState added in v0.2.0

func (*NotificationPublisherResource) Metadata added in v0.2.0

func (*NotificationPublisherResource) Read added in v0.2.0

func (*NotificationPublisherResource) Schema added in v0.2.0

func (*NotificationPublisherResource) Update added in v0.2.0

type NotificationPublisherResourceModel added in v0.2.0

type NotificationPublisherResourceModel struct {
	ID               types.String `tfsdk:"id"`
	Name             types.String `tfsdk:"name"`
	Description      types.String `tfsdk:"description"`
	PublisherClass   types.String `tfsdk:"publisher_class"`
	DefaultPublisher types.Bool   `tfsdk:"default_publisher"`
	TemplateMimeType types.String `tfsdk:"template_mime_type"`
	Template         types.String `tfsdk:"template"`
}

NotificationPublisherResourceModel describes the resource data model.

func DTPublisherToTFPublisher added in v0.2.0

type NotificationRuleProjectResource added in v0.5.0

type NotificationRuleProjectResource struct {
	// contains filtered or unexported fields
}

NotificationRuleProjectResource defines the resource implementation.

func (*NotificationRuleProjectResource) Configure added in v0.5.0

func (*NotificationRuleProjectResource) Create added in v0.5.0

func (*NotificationRuleProjectResource) Delete added in v0.5.0

func (*NotificationRuleProjectResource) ImportState added in v0.5.0

func (*NotificationRuleProjectResource) Metadata added in v0.5.0

func (*NotificationRuleProjectResource) Read added in v0.5.0

func (*NotificationRuleProjectResource) Schema added in v0.5.0

func (*NotificationRuleProjectResource) Update added in v0.5.0

type NotificationRuleProjectResourceModel added in v0.5.0

type NotificationRuleProjectResourceModel struct {
	ProjectID types.String `tfsdk:"project_id"`
	RuleID    types.String `tfsdk:"rule_id"`
}

NotificationRuleProjectResourceModel describes the resource data model.

type NotificationRuleResource

type NotificationRuleResource struct {
	// contains filtered or unexported fields
}

NotificationRuleResource defines the resource implementation.

func (*NotificationRuleResource) Configure

func (*NotificationRuleResource) Create

func (*NotificationRuleResource) Delete

func (*NotificationRuleResource) ImportState

func (*NotificationRuleResource) Metadata

func (*NotificationRuleResource) Read

func (*NotificationRuleResource) Schema

func (*NotificationRuleResource) Update

type NotificationRuleResourceModel

type NotificationRuleResourceModel struct {
	ID                   types.String `tfsdk:"id"`
	Name                 types.String `tfsdk:"name"`
	NotificationLevel    types.String `tfsdk:"notification_level"`
	PublisherID          types.String `tfsdk:"publisher_id"`
	Scope                types.String `tfsdk:"scope"`
	Enabled              types.Bool   `tfsdk:"enabled"`
	LogSuccessfulPublish types.Bool   `tfsdk:"log_successful_publish"`
	NotifyChildren       types.Bool   `tfsdk:"notify_children"`
	NotifyOn             types.Set    `tfsdk:"notify_on"`
	PublisherConfig      types.String `tfsdk:"publisher_config"`
}

NotificationRuleResourceModel describes the resource data model.

type ProjectResource

type ProjectResource struct {
	// contains filtered or unexported fields
}

ProjectResource defines the resource implementation.

func (*ProjectResource) Configure

func (*ProjectResource) Create

func (*ProjectResource) Delete

func (*ProjectResource) ImportState

func (*ProjectResource) Metadata

func (*ProjectResource) Read

func (*ProjectResource) Schema

func (*ProjectResource) Update

type ProjectResourceModel

type ProjectResourceModel struct {
	ID          types.String `tfsdk:"id"`
	ParentID    types.String `tfsdk:"parent_id"`
	Name        types.String `tfsdk:"name"`
	Classifier  types.String `tfsdk:"classifier"`
	Description types.String `tfsdk:"description"`
	Active      types.Bool   `tfsdk:"active"`
}

ProjectResourceModel describes the resource data model.

func DTProjectToTFProject added in v0.5.2

func DTProjectToTFProject(ctx context.Context, dtProject dtrack.Project) (ProjectResourceModel, diag.Diagnostics)

type TeamAPIKeyResource added in v0.4.0

type TeamAPIKeyResource struct {
	// contains filtered or unexported fields
}

TeamAPIKeyResource defines the resource implementation.

func (*TeamAPIKeyResource) Configure added in v0.4.0

func (*TeamAPIKeyResource) Create added in v0.4.0

func (*TeamAPIKeyResource) Delete added in v0.4.0

func (*TeamAPIKeyResource) ImportState added in v0.4.0

func (*TeamAPIKeyResource) Metadata added in v0.4.0

func (*TeamAPIKeyResource) Read added in v0.4.0

func (*TeamAPIKeyResource) Schema added in v0.4.0

func (*TeamAPIKeyResource) Update added in v0.4.0

type TeamAPIKeyResourceModel added in v0.4.0

type TeamAPIKeyResourceModel struct {
	TeamID types.String `tfsdk:"team_id"`
	Value  types.String `tfsdk:"value"`
}

TeamAPIKeyResourceModel describes the resource data model.

type TeamDataSource

type TeamDataSource struct {
	// contains filtered or unexported fields
}

TeamDataSource defines the data source implementation.

func (*TeamDataSource) Configure

func (*TeamDataSource) Metadata

func (*TeamDataSource) Read

func (*TeamDataSource) Schema

type TeamDataSourceModel

type TeamDataSourceModel struct {
	ID               types.String `tfsdk:"id"`
	Name             types.String `tfsdk:"name"`
	Permissions      types.Set    `tfsdk:"permissions"`
	MappedOIDCGroups types.Set    `tfsdk:"mapped_oidc_groups"`
}

TeamDataSourceModel describes the data source data model.

type TeamPermissionResource

type TeamPermissionResource struct {
	// contains filtered or unexported fields
}

TeamPermissionResource defines the resource implementation.

func (*TeamPermissionResource) Configure

func (*TeamPermissionResource) Create

func (*TeamPermissionResource) Delete

func (*TeamPermissionResource) ImportState

func (*TeamPermissionResource) Metadata

func (*TeamPermissionResource) Read

func (*TeamPermissionResource) Schema

func (*TeamPermissionResource) Update

type TeamPermissionResourceModel

type TeamPermissionResourceModel struct {
	TeamID types.String `tfsdk:"team_id"`
	Name   types.String `tfsdk:"name"`
}

TeamPermissionResourceModel describes the resource data model.

type TeamResource

type TeamResource struct {
	// contains filtered or unexported fields
}

TeamResource defines the resource implementation.

func (*TeamResource) Configure

func (*TeamResource) Create

func (*TeamResource) Delete

func (*TeamResource) ImportState

func (*TeamResource) Metadata

func (*TeamResource) Read

func (*TeamResource) Schema

func (*TeamResource) Update

type TeamResourceModel

type TeamResourceModel struct {
	ID   types.String `tfsdk:"id"`
	Name types.String `tfsdk:"name"`
}

TeamResourceModel describes the resource data model.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL