provider

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: MPL-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultBaseApiUrl = "https://api.getcortexapp.com"

Variables

This section is empty.

Functions

func New

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

func NewCatalogEntityDataSource

func NewCatalogEntityDataSource() datasource.DataSource

func NewCatalogEntityResource

func NewCatalogEntityResource() resource.Resource

func NewDepartmentDataSource

func NewDepartmentDataSource() datasource.DataSource

func NewDepartmentResource

func NewDepartmentResource() resource.Resource

func NewResourceDefinitionDataSource

func NewResourceDefinitionDataSource() datasource.DataSource

func NewResourceDefinitionResource

func NewResourceDefinitionResource() resource.Resource

func NewScorecardDataSource

func NewScorecardDataSource() datasource.DataSource

func NewScorecardResource

func NewScorecardResource() resource.Resource

func NewTeamDataSource

func NewTeamDataSource() datasource.DataSource

func NewTeamResource

func NewTeamResource() resource.Resource

Types

type CatalogEntityAlertResourceModel

type CatalogEntityAlertResourceModel struct {
	Type  types.String `tfsdk:"type"`
	Tag   types.String `tfsdk:"tag"`
	Value types.String `tfsdk:"value"`
}

func (*CatalogEntityAlertResourceModel) FromApiModel

func (*CatalogEntityAlertResourceModel) ToApiModel

type CatalogEntityApmDataDogResourceModel

type CatalogEntityApmDataDogResourceModel struct {
	Monitors types.List `tfsdk:"monitors"`
}

func (*CatalogEntityApmDataDogResourceModel) AttrTypes

func (*CatalogEntityApmDataDogResourceModel) FromApiModel

func (*CatalogEntityApmDataDogResourceModel) ToApiModel

type CatalogEntityApmDynatraceResourceModel

type CatalogEntityApmDynatraceResourceModel struct {
	EntityIDs          types.List `tfsdk:"entity_ids"`
	EntityNameMatchers types.List `tfsdk:"entity_name_matchers"`
}

func (*CatalogEntityApmDynatraceResourceModel) AttrTypes

func (*CatalogEntityApmDynatraceResourceModel) FromApiModel

func (*CatalogEntityApmDynatraceResourceModel) ToApiModel

type CatalogEntityApmNewRelicResourceModel

type CatalogEntityApmNewRelicResourceModel struct {
	ApplicationID types.Int64  `tfsdk:"application_id"`
	Alias         types.String `tfsdk:"alias"`
}

func (*CatalogEntityApmNewRelicResourceModel) AttrTypes

func (*CatalogEntityApmNewRelicResourceModel) FromApiModel

func (*CatalogEntityApmNewRelicResourceModel) ToApiModel

type CatalogEntityApmResourceModel

type CatalogEntityApmResourceModel struct {
	DataDog   CatalogEntityApmDataDogResourceModel   `tfsdk:"data_dog"`
	Dynatrace CatalogEntityApmDynatraceResourceModel `tfsdk:"dynatrace"`
	NewRelic  CatalogEntityApmNewRelicResourceModel  `tfsdk:"new_relic"`
}

func (*CatalogEntityApmResourceModel) AttrTypes

func (o *CatalogEntityApmResourceModel) AttrTypes() map[string]attr.Type

func (*CatalogEntityApmResourceModel) FromApiModel

func (o *CatalogEntityApmResourceModel) FromApiModel(ctx context.Context, diagnostics *diag.Diagnostics, entity *cortex.CatalogEntityApm) types.Object

func (*CatalogEntityApmResourceModel) ToApiModel

type CatalogEntityAzureResourceModel

type CatalogEntityAzureResourceModel struct {
	Project    types.String `tfsdk:"project"`
	Repository types.String `tfsdk:"repository"`
	BasePath   types.String `tfsdk:"base_path"`
}

func (*CatalogEntityAzureResourceModel) AttrTypes

func (o *CatalogEntityAzureResourceModel) AttrTypes() map[string]attr.Type

func (*CatalogEntityAzureResourceModel) FromApiModel

func (*CatalogEntityAzureResourceModel) ToApiModel

type CatalogEntityBitbucketResourceModel

type CatalogEntityBitbucketResourceModel struct {
	Repository types.String `tfsdk:"repository"`
}

func (*CatalogEntityBitbucketResourceModel) AttrTypes

func (*CatalogEntityBitbucketResourceModel) FromApiModel

func (*CatalogEntityBitbucketResourceModel) ToApiModel

type CatalogEntityBugSnagResourceModel

type CatalogEntityBugSnagResourceModel struct {
	Project types.String `tfsdk:"project"`
}

func (*CatalogEntityBugSnagResourceModel) AttrTypes

func (*CatalogEntityBugSnagResourceModel) FromApiModel

func (*CatalogEntityBugSnagResourceModel) ToApiModel

type CatalogEntityCheckmarxProjectResourceModel

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

func (*CatalogEntityCheckmarxProjectResourceModel) AttrTypes

func (*CatalogEntityCheckmarxProjectResourceModel) FromApiModel

func (*CatalogEntityCheckmarxProjectResourceModel) ToApiModel

type CatalogEntityCheckmarxResourceModel

type CatalogEntityCheckmarxResourceModel struct {
	Projects []CatalogEntityCheckmarxProjectResourceModel `tfsdk:"projects"`
}

func (*CatalogEntityCheckmarxResourceModel) AttrTypes

func (*CatalogEntityCheckmarxResourceModel) FromApiModel

func (*CatalogEntityCheckmarxResourceModel) ToApiModel

type CatalogEntityDashboardEmbedResourceModel

type CatalogEntityDashboardEmbedResourceModel struct {
	Type types.String `tfsdk:"type"`
	URL  types.String `tfsdk:"url"`
}

func (*CatalogEntityDashboardEmbedResourceModel) AttrTypes

func (*CatalogEntityDashboardEmbedResourceModel) FromApiModel

func (*CatalogEntityDashboardEmbedResourceModel) ToApiModel

type CatalogEntityDashboardResourceModel

type CatalogEntityDashboardResourceModel struct {
	Embeds []CatalogEntityDashboardEmbedResourceModel `tfsdk:"embeds"`
}

func (*CatalogEntityDashboardResourceModel) AttrTypes

func (*CatalogEntityDashboardResourceModel) FromApiModel

func (*CatalogEntityDashboardResourceModel) ToApiModel

type CatalogEntityDataSource

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

CatalogEntityDataSource defines the data source implementation.

func (*CatalogEntityDataSource) Configure

func (*CatalogEntityDataSource) Metadata

func (*CatalogEntityDataSource) Read

func (*CatalogEntityDataSource) Schema

type CatalogEntityDataSourceModel

type CatalogEntityDataSourceModel struct {
	Id          types.String `tfsdk:"id"`
	Tag         types.String `tfsdk:"tag"`
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
}

CatalogEntityDataSourceModel describes the data source data model.

func (*CatalogEntityDataSourceModel) FromApiModel

func (o *CatalogEntityDataSourceModel) FromApiModel(entity *cortex.CatalogEntityData)

type CatalogEntityDependencyResourceModel

type CatalogEntityDependencyResourceModel struct {
	Tag         types.String `tfsdk:"tag"`
	Method      types.String `tfsdk:"method"`
	Path        types.String `tfsdk:"path"`
	Description types.String `tfsdk:"description"`
	Metadata    types.String `tfsdk:"metadata"`
}

func (*CatalogEntityDependencyResourceModel) AttrTypes

func (*CatalogEntityDependencyResourceModel) FromApiModel

func (*CatalogEntityDependencyResourceModel) ToApiModel

type CatalogEntityGitResourceModel

type CatalogEntityGitResourceModel struct {
	Github    types.Object `tfsdk:"github"`
	Gitlab    types.Object `tfsdk:"gitlab"`
	Azure     types.Object `tfsdk:"azure"`
	Bitbucket types.Object `tfsdk:"bitbucket"`
}

func (*CatalogEntityGitResourceModel) AttrTypes

func (o *CatalogEntityGitResourceModel) AttrTypes() map[string]attr.Type

func (*CatalogEntityGitResourceModel) FromApiModel

func (o *CatalogEntityGitResourceModel) FromApiModel(ctx context.Context, diagnostics *diag.Diagnostics, entity *cortex.CatalogEntityGit) types.Object

func (*CatalogEntityGitResourceModel) ToApiModel

type CatalogEntityGithubResourceModel

type CatalogEntityGithubResourceModel struct {
	Repository types.String `tfsdk:"repository"`
	BasePath   types.String `tfsdk:"base_path"`
}

func (*CatalogEntityGithubResourceModel) AttrTypes

func (o *CatalogEntityGithubResourceModel) AttrTypes() map[string]attr.Type

func (*CatalogEntityGithubResourceModel) FromApiModel

func (*CatalogEntityGithubResourceModel) ToApiModel

type CatalogEntityGitlabResourceModel

type CatalogEntityGitlabResourceModel struct {
	Repository types.String `tfsdk:"repository"`
	BasePath   types.String `tfsdk:"base_path"`
}

func (*CatalogEntityGitlabResourceModel) AttrTypes

func (o *CatalogEntityGitlabResourceModel) AttrTypes() map[string]attr.Type

func (*CatalogEntityGitlabResourceModel) FromApiModel

func (*CatalogEntityGitlabResourceModel) ToApiModel

type CatalogEntityIssuesJiraResourceModel

type CatalogEntityIssuesJiraResourceModel struct {
	DefaultJQL types.String `tfsdk:"default_jql"`
	Projects   types.List   `tfsdk:"projects"`
	Labels     types.List   `tfsdk:"labels"`
	Components types.List   `tfsdk:"components"`
}

func (*CatalogEntityIssuesJiraResourceModel) AttrTypes

func (*CatalogEntityIssuesJiraResourceModel) FromApiModel

func (*CatalogEntityIssuesJiraResourceModel) ToApiModel

type CatalogEntityIssuesResourceModel

type CatalogEntityIssuesResourceModel struct {
	Jira CatalogEntityIssuesJiraResourceModel `tfsdk:"jira"`
}

func (*CatalogEntityIssuesResourceModel) AttrTypes

func (o *CatalogEntityIssuesResourceModel) AttrTypes() map[string]attr.Type

func (*CatalogEntityIssuesResourceModel) FromApiModel

func (*CatalogEntityIssuesResourceModel) ToApiModel

type CatalogEntityLinkResourceModel

type CatalogEntityLinkResourceModel struct {
	Name types.String `tfsdk:"name"`
	Type types.String `tfsdk:"type"`
	Url  types.String `tfsdk:"url"`
}

func (*CatalogEntityLinkResourceModel) FromApiModel

func (*CatalogEntityLinkResourceModel) ToApiModel

type CatalogEntityOnCallOpsGenieResourceModel

type CatalogEntityOnCallOpsGenieResourceModel struct {
	ID   types.String `tfsdk:"id"`
	Type types.String `tfsdk:"type"`
}

func (*CatalogEntityOnCallOpsGenieResourceModel) AttrTypes

func (*CatalogEntityOnCallOpsGenieResourceModel) FromApiModel

func (*CatalogEntityOnCallOpsGenieResourceModel) ToApiModel

type CatalogEntityOnCallPagerDutyResourceModel

type CatalogEntityOnCallPagerDutyResourceModel struct {
	ID   types.String `tfsdk:"id"`
	Type types.String `tfsdk:"type"`
}

func (*CatalogEntityOnCallPagerDutyResourceModel) AttrTypes

func (*CatalogEntityOnCallPagerDutyResourceModel) FromApiModel

func (*CatalogEntityOnCallPagerDutyResourceModel) ToApiModel

type CatalogEntityOnCallResourceModel

type CatalogEntityOnCallResourceModel struct {
	PagerDuty CatalogEntityOnCallPagerDutyResourceModel `tfsdk:"pager_duty"`
	OpsGenie  CatalogEntityOnCallOpsGenieResourceModel  `tfsdk:"ops_genie"`
	VictorOps CatalogEntityOnCallVictorOpsResourceModel `tfsdk:"victor_ops"`
}

func (*CatalogEntityOnCallResourceModel) AttrTypes

func (o *CatalogEntityOnCallResourceModel) AttrTypes() map[string]attr.Type

func (*CatalogEntityOnCallResourceModel) FromApiModel

func (*CatalogEntityOnCallResourceModel) ToApiModel

type CatalogEntityOnCallVictorOpsResourceModel

type CatalogEntityOnCallVictorOpsResourceModel struct {
	ID   types.String `tfsdk:"id"`
	Type types.String `tfsdk:"type"`
}

func (*CatalogEntityOnCallVictorOpsResourceModel) AttrTypes

func (*CatalogEntityOnCallVictorOpsResourceModel) FromApiModel

func (*CatalogEntityOnCallVictorOpsResourceModel) ToApiModel

type CatalogEntityOwnerResourceModel

type CatalogEntityOwnerResourceModel struct {
	Type                 types.String `tfsdk:"type"` // group, user, slack
	Name                 types.String `tfsdk:"name"` // Must be of form <org>/<team>
	Description          types.String `tfsdk:"description"`
	Provider             types.String `tfsdk:"provider"`
	Email                types.String `tfsdk:"email"`
	Channel              types.String `tfsdk:"channel"` // for slack, do not add # to beginning
	NotificationsEnabled types.Bool   `tfsdk:"notifications_enabled"`
}

CatalogEntityOwnerResourceModel describes owners of the catalog entity. This can be a user, Slack channel, or group.

func (*CatalogEntityOwnerResourceModel) FromApiModel

func (*CatalogEntityOwnerResourceModel) ToApiModel

type CatalogEntityResource

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

CatalogEntityResource defines the resource implementation.

func (*CatalogEntityResource) Configure

func (*CatalogEntityResource) Create

func (*CatalogEntityResource) Delete

func (*CatalogEntityResource) ImportState

func (*CatalogEntityResource) Metadata

func (*CatalogEntityResource) Read

func (*CatalogEntityResource) Schema

func (*CatalogEntityResource) Update

type CatalogEntityResourceModel

type CatalogEntityResourceModel struct {
	Id             types.String                      `tfsdk:"id"`
	Tag            types.String                      `tfsdk:"tag"`
	Name           types.String                      `tfsdk:"name"`
	Description    types.String                      `tfsdk:"description"`
	Owners         []CatalogEntityOwnerResourceModel `tfsdk:"owners"`
	Groups         []types.String                    `tfsdk:"groups"`
	Links          []CatalogEntityLinkResourceModel  `tfsdk:"links"`
	Metadata       types.String                      `tfsdk:"metadata"`
	Dependencies   []types.Object                    `tfsdk:"dependencies"`
	Alerts         []CatalogEntityAlertResourceModel `tfsdk:"alerts"`
	Apm            types.Object                      `tfsdk:"apm"`
	Dashboards     types.Object                      `tfsdk:"dashboards"`
	Git            types.Object                      `tfsdk:"git"`
	Issues         types.Object                      `tfsdk:"issues"`
	OnCall         types.Object                      `tfsdk:"on_call"`
	SLOs           types.Object                      `tfsdk:"slos"`
	StaticAnalysis types.Object                      `tfsdk:"static_analysis"`
	BugSnag        types.Object                      `tfsdk:"bug_snag"`
	Checkmarx      types.Object                      `tfsdk:"checkmarx"`
	Rollbar        types.Object                      `tfsdk:"rollbar"`
	Sentry         types.Object                      `tfsdk:"sentry"`
	Snyk           types.Object                      `tfsdk:"snyk"`
}

CatalogEntityResourceModel describes the resource data model.

func (*CatalogEntityResourceModel) FromApiModel

func (o *CatalogEntityResourceModel) FromApiModel(ctx context.Context, diagnostics *diag.Diagnostics, entity *cortex.CatalogEntityData)

func (*CatalogEntityResourceModel) ToApiModel

type CatalogEntityRollbarResourceModel

type CatalogEntityRollbarResourceModel struct {
	Project types.String `tfsdk:"project"`
}

func (*CatalogEntityRollbarResourceModel) AttrTypes

func (*CatalogEntityRollbarResourceModel) FromApiModel

func (*CatalogEntityRollbarResourceModel) ToApiModel

type CatalogEntitySLODataDogResourceModel

type CatalogEntitySLODataDogResourceModel struct {
	ID types.String `tfsdk:"id"`
}

func (*CatalogEntitySLODataDogResourceModel) AttrTypes

func (*CatalogEntitySLODataDogResourceModel) FromApiModel

func (*CatalogEntitySLODataDogResourceModel) ToApiModel

type CatalogEntitySLODynatraceResourceModel

type CatalogEntitySLODynatraceResourceModel struct {
	ID types.String `tfsdk:"id"`
}

func (*CatalogEntitySLODynatraceResourceModel) AttrTypes

func (*CatalogEntitySLODynatraceResourceModel) FromApiModel

func (*CatalogEntitySLODynatraceResourceModel) ToApiModel

type CatalogEntitySLOLightstepResourceModel

type CatalogEntitySLOLightstepResourceModel struct {
	Streams []CatalogEntitySLOLightstepStreamResourceModel `tfsdk:"streams"`
}

func (*CatalogEntitySLOLightstepResourceModel) AttrTypes

func (*CatalogEntitySLOLightstepResourceModel) FromApiModel

func (*CatalogEntitySLOLightstepResourceModel) ToApiModel

type CatalogEntitySLOLightstepStreamResourceModel

type CatalogEntitySLOLightstepStreamResourceModel struct {
	StreamID types.String                                       `tfsdk:"stream_id"`
	Targets  CatalogEntitySLOLightstepStreamTargetResourceModel `tfsdk:"targets"`
}

func (*CatalogEntitySLOLightstepStreamResourceModel) AttrTypes

func (*CatalogEntitySLOLightstepStreamResourceModel) ToApiModel

type CatalogEntitySLOLightstepStreamTargetLatencyResourceModel

type CatalogEntitySLOLightstepStreamTargetLatencyResourceModel struct {
	Percentile types.Float64 `tfsdk:"percentile"`
	Target     types.Int64   `tfsdk:"target"`
	SLO        types.Float64 `tfsdk:"slo"`
}

func (*CatalogEntitySLOLightstepStreamTargetLatencyResourceModel) AttrTypes

func (*CatalogEntitySLOLightstepStreamTargetLatencyResourceModel) ToApiModel

type CatalogEntitySLOLightstepStreamTargetResourceModel

type CatalogEntitySLOLightstepStreamTargetResourceModel struct {
	Latencies []CatalogEntitySLOLightstepStreamTargetLatencyResourceModel `tfsdk:"latencies"`
}

func (*CatalogEntitySLOLightstepStreamTargetResourceModel) AttrTypes

func (*CatalogEntitySLOLightstepStreamTargetResourceModel) ToApiModel

type CatalogEntitySLOPrometheusResourceModel

type CatalogEntitySLOPrometheusResourceModel struct {
	ErrorQuery types.String  `tfsdk:"error_query"`
	TotalQuery types.String  `tfsdk:"total_query"`
	SLO        types.Float64 `tfsdk:"slo"`
	Name       types.String  `tfsdk:"name"`
	Alias      types.String  `tfsdk:"alias"`
}

func (*CatalogEntitySLOPrometheusResourceModel) AttrTypes

func (*CatalogEntitySLOPrometheusResourceModel) FromApiModel

func (*CatalogEntitySLOPrometheusResourceModel) ToApiModel

type CatalogEntitySLOSignalFxResourceModel

type CatalogEntitySLOSignalFxResourceModel struct {
	Query     types.String `tfsdk:"query"`
	Rollup    types.String `tfsdk:"rollup"`
	Target    types.Int64  `tfsdk:"target"`
	Lookback  types.String `tfsdk:"lookback"`
	Operation types.String `tfsdk:"operation"`
}

func (*CatalogEntitySLOSignalFxResourceModel) AttrTypes

func (*CatalogEntitySLOSignalFxResourceModel) FromApiModel

func (*CatalogEntitySLOSignalFxResourceModel) ToApiModel

type CatalogEntitySLOSumoLogicResourceModel

type CatalogEntitySLOSumoLogicResourceModel struct {
	ID types.String `tfsdk:"id"`
}

func (*CatalogEntitySLOSumoLogicResourceModel) AttrTypes

func (*CatalogEntitySLOSumoLogicResourceModel) FromApiModel

func (*CatalogEntitySLOSumoLogicResourceModel) ToApiModel

type CatalogEntitySLOsResourceModel

type CatalogEntitySLOsResourceModel struct {
	DataDog    []CatalogEntitySLODataDogResourceModel    `tfsdk:"data_dog"`
	Dynatrace  []CatalogEntitySLODynatraceResourceModel  `tfsdk:"dynatrace"`
	Lightstep  CatalogEntitySLOLightstepResourceModel    `tfsdk:"lightstep"`
	Prometheus []CatalogEntitySLOPrometheusResourceModel `tfsdk:"prometheus"`
	SignalFX   []CatalogEntitySLOSignalFxResourceModel   `tfsdk:"signal_fx"`
	SumoLogic  []CatalogEntitySLOSumoLogicResourceModel  `tfsdk:"sumo_logic"`
}

func (*CatalogEntitySLOsResourceModel) AttrTypes

func (o *CatalogEntitySLOsResourceModel) AttrTypes() map[string]attr.Type

func (*CatalogEntitySLOsResourceModel) FromApiModel

func (*CatalogEntitySLOsResourceModel) ToApiModel

type CatalogEntitySentryResourceModel

type CatalogEntitySentryResourceModel struct {
	Project types.String `tfsdk:"project"`
}

func (*CatalogEntitySentryResourceModel) AttrTypes

func (o *CatalogEntitySentryResourceModel) AttrTypes() map[string]attr.Type

func (*CatalogEntitySentryResourceModel) FromApiModel

func (*CatalogEntitySentryResourceModel) ToApiModel

type CatalogEntitySnykProjectResourceModel

type CatalogEntitySnykProjectResourceModel struct {
	Organization types.String `tfsdk:"organization"`
	ProjectID    types.String `tfsdk:"project_id"`
	Source       types.String `tfsdk:"source"`
}

func (*CatalogEntitySnykProjectResourceModel) AttrTypes

func (*CatalogEntitySnykProjectResourceModel) FromApiModel

func (*CatalogEntitySnykProjectResourceModel) ToApiModel

type CatalogEntitySnykResourceModel

type CatalogEntitySnykResourceModel struct {
	Projects []CatalogEntitySnykProjectResourceModel `tfsdk:"projects"`
}

func (*CatalogEntitySnykResourceModel) AttrTypes

func (o *CatalogEntitySnykResourceModel) AttrTypes() map[string]attr.Type

func (*CatalogEntitySnykResourceModel) FromApiModel

func (*CatalogEntitySnykResourceModel) ToApiModel

type CatalogEntityStaticAnalysisCodeCovResourceModel

type CatalogEntityStaticAnalysisCodeCovResourceModel struct {
	Repository types.String `tfsdk:"repository"`
	Provider   types.String `tfsdk:"provider"`
}

func (*CatalogEntityStaticAnalysisCodeCovResourceModel) AttrTypes

func (*CatalogEntityStaticAnalysisCodeCovResourceModel) ToApiModel

type CatalogEntityStaticAnalysisMendResourceModel

type CatalogEntityStaticAnalysisMendResourceModel struct {
	ApplicationIDs []types.String `tfsdk:"application_ids"`
	ProjectIDs     []types.String `tfsdk:"project_ids"`
}

func (*CatalogEntityStaticAnalysisMendResourceModel) AttrTypes

func (*CatalogEntityStaticAnalysisMendResourceModel) ToApiModel

type CatalogEntityStaticAnalysisResourceModel

type CatalogEntityStaticAnalysisResourceModel struct {
	CodeCov   CatalogEntityStaticAnalysisCodeCovResourceModel   `tfsdk:"code_cov"`
	Mend      CatalogEntityStaticAnalysisMendResourceModel      `tfsdk:"mend"`
	SonarQube CatalogEntityStaticAnalysisSonarQubeResourceModel `tfsdk:"sonar_qube"`
	Veracode  CatalogEntityStaticAnalysisVeracodeResourceModel  `tfsdk:"veracode"`
}

func (*CatalogEntityStaticAnalysisResourceModel) AttrTypes

func (*CatalogEntityStaticAnalysisResourceModel) FromApiModel

func (*CatalogEntityStaticAnalysisResourceModel) ToApiModel

type CatalogEntityStaticAnalysisSonarQubeResourceModel

type CatalogEntityStaticAnalysisSonarQubeResourceModel struct {
	Project types.String `tfsdk:"project"`
	Alias   types.String `tfsdk:"alias"`
}

func (*CatalogEntityStaticAnalysisSonarQubeResourceModel) AttrTypes

func (*CatalogEntityStaticAnalysisSonarQubeResourceModel) ToApiModel

type CatalogEntityStaticAnalysisVeracodeResourceModel

type CatalogEntityStaticAnalysisVeracodeResourceModel struct {
	ApplicationNames []types.String                                            `tfsdk:"application_names"`
	Sandboxes        []CatalogEntityStaticAnalysisVeracodeSandboxResourceModel `tfsdk:"sandboxes"`
}

func (*CatalogEntityStaticAnalysisVeracodeResourceModel) AttrTypes

func (*CatalogEntityStaticAnalysisVeracodeResourceModel) ToApiModel

type CatalogEntityStaticAnalysisVeracodeSandboxResourceModel

type CatalogEntityStaticAnalysisVeracodeSandboxResourceModel struct {
	ApplicationName types.String `tfsdk:"application_name"`
	SandboxName     types.String `tfsdk:"sandbox_name"`
}

func (*CatalogEntityStaticAnalysisVeracodeSandboxResourceModel) AttrTypes

func (*CatalogEntityStaticAnalysisVeracodeSandboxResourceModel) ToApiModel

type CortexProvider

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

CortexProvider defines the provider implementation.

func (*CortexProvider) Configure

func (*CortexProvider) DataSources

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

func (*CortexProvider) Metadata

func (*CortexProvider) Resources

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

func (*CortexProvider) Schema

type CortexProviderModel

type CortexProviderModel struct {
	BaseApiUrl types.String `tfsdk:"base_api_url"`
	Token      types.String `tfsdk:"token"`
}

CortexProviderModel describes the provider data model.

type DepartmentDataSource

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

DepartmentDataSource defines the data source implementation.

func (*DepartmentDataSource) Configure

func (*DepartmentDataSource) Metadata

func (*DepartmentDataSource) Read

func (*DepartmentDataSource) Schema

type DepartmentDataSourceModel

type DepartmentDataSourceModel struct {
	Id          types.String `tfsdk:"id"`
	Tag         types.String `tfsdk:"tag"`
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
}

DepartmentDataSourceModel describes the data source data model.

func (*DepartmentDataSourceModel) FromApiModel

func (o *DepartmentDataSourceModel) FromApiModel(department *cortex.Department)

type DepartmentMemberResourceModel

type DepartmentMemberResourceModel struct {
	Name        types.String `tfsdk:"name"`
	Email       types.String `tfsdk:"email"`
	Description types.String `tfsdk:"description"`
}

func (*DepartmentMemberResourceModel) FromApiModel

func (*DepartmentMemberResourceModel) ToApiModel

type DepartmentResource

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

DepartmentResource defines the resource implementation.

func (*DepartmentResource) Configure

func (*DepartmentResource) Create

Create Creates a new team.

func (*DepartmentResource) Delete

func (*DepartmentResource) ImportState

func (*DepartmentResource) Metadata

func (*DepartmentResource) Read

func (*DepartmentResource) Schema

func (*DepartmentResource) Update

type DepartmentResourceModel

type DepartmentResourceModel struct {
	Id          types.String                    `tfsdk:"id"`
	Tag         types.String                    `tfsdk:"tag"`
	Name        types.String                    `tfsdk:"name"`
	Description types.String                    `tfsdk:"description"`
	Members     []DepartmentMemberResourceModel `tfsdk:"members"`
}

DepartmentResourceModel describes the department data model within Terraform.

func (*DepartmentResourceModel) FromApiModel

func (o *DepartmentResourceModel) FromApiModel(department *cortex.Department)

func (*DepartmentResourceModel) ToCreateRequest

ToCreateRequest https://docs.cortex.io/docs/api/create-department

func (*DepartmentResourceModel) ToUpdateRequest

ToUpdateRequest https://docs.cortex.io/docs/api/update-department

type ResourceDefinitionDataSource

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

ResourceDefinitionDataSource defines the data source implementation.

func (*ResourceDefinitionDataSource) Configure

func (*ResourceDefinitionDataSource) Metadata

func (*ResourceDefinitionDataSource) Read

func (*ResourceDefinitionDataSource) Schema

type ResourceDefinitionDataSourceModel

type ResourceDefinitionDataSourceModel struct {
	Id          types.String `tfsdk:"id"`
	Type        types.String `tfsdk:"type"`
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
	Source      types.String `tfsdk:"source"`
	Schema      types.Map    `tfsdk:"schema"`
}

ResourceDefinitionDataSourceModel describes the data source data model.

type ResourceDefinitionResource

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

ResourceDefinitionResource defines the resource implementation.

func (*ResourceDefinitionResource) Configure

func (*ResourceDefinitionResource) Create

Create Creates a new team.

func (*ResourceDefinitionResource) Delete

func (*ResourceDefinitionResource) ImportState

func (*ResourceDefinitionResource) Metadata

func (*ResourceDefinitionResource) Read

func (*ResourceDefinitionResource) Schema

func (*ResourceDefinitionResource) Update

type ResourceDefinitionResourceModel

type ResourceDefinitionResourceModel struct {
	Id          types.String `tfsdk:"id"`
	Type        types.String `tfsdk:"type"`
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
	Source      types.String `tfsdk:"source"`
	Schema      types.Map    `tfsdk:"schema"`
}

ResourceDefinitionResourceModel describes the department data model within Terraform.

type ScorecardDataSource

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

ScorecardDataSource defines the data source implementation.

func (*ScorecardDataSource) Configure

func (*ScorecardDataSource) Metadata

func (*ScorecardDataSource) Read

func (*ScorecardDataSource) Schema

type ScorecardDataSourceModel

type ScorecardDataSourceModel struct {
	Id          types.String `tfsdk:"id"`
	Tag         types.String `tfsdk:"tag"`
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
	IsDraft     types.Bool   `tfsdk:"is_draft"`
}

ScorecardDataSourceModel describes the data source data model.

type ScorecardLevelResourceModel

type ScorecardLevelResourceModel struct {
	Name   types.String `tfsdk:"name"`
	Number types.Int64  `tfsdk:"number"`
}

type ScorecardResource

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

ScorecardResource defines the resource implementation.

func (*ScorecardResource) Configure

func (*ScorecardResource) Create

Create Creates a new scorecard.

func (*ScorecardResource) Delete

func (*ScorecardResource) ImportState

func (*ScorecardResource) Metadata

func (*ScorecardResource) Read

func (*ScorecardResource) Schema

func (*ScorecardResource) Update

type ScorecardResourceModel

type ScorecardResourceModel struct {
	Id          types.String                  `tfsdk:"id"`
	Tag         types.String                  `tfsdk:"tag"`
	Name        types.String                  `tfsdk:"name"`
	Description types.String                  `tfsdk:"description"`
	IsDraft     types.Bool                    `tfsdk:"is_draft"`
	Levels      []ScorecardLevelResourceModel `tfsdk:"levels"`
	Rules       []ScorecardRuleResourceModel  `tfsdk:"rules"`
}

ScorecardResourceModel describes the scorecard data model within Terraform.

type ScorecardRuleResourceModel

type ScorecardRuleResourceModel struct {
	Title          types.String `tfsdk:"title"`
	Description    types.String `tfsdk:"description"`
	Expression     types.String `tfsdk:"expression"`
	Number         types.Int64  `tfsdk:"number"`
	Weight         types.Int64  `tfsdk:"weight"`
	LevelName      types.String `tfsdk:"level_name"`
	FailureMessage types.String `tfsdk:"failure_message"`
}

type TeamAdditionalMemberResourceModel

type TeamAdditionalMemberResourceModel struct {
	Name        types.String `tfsdk:"name"`
	Email       types.String `tfsdk:"email"`
	Description types.String `tfsdk:"description"`
}

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"`
	Tag types.String `tfsdk:"tag"`
}

TeamDataSourceModel describes the data source data model.

type TeamLinkResourceModel

type TeamLinkResourceModel struct {
	Name        types.String `tfsdk:"name"`
	Type        types.String `tfsdk:"type"`
	Url         types.String `tfsdk:"url"`
	Description types.String `tfsdk:"description"`
}

type TeamResource

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

TeamResource defines the resource implementation.

func (*TeamResource) Configure

func (*TeamResource) Create

Create Creates a new team.

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"`
	Tag               types.String                        `tfsdk:"tag"`
	Name              types.String                        `tfsdk:"name"`
	Description       types.String                        `tfsdk:"description"`
	Summary           types.String                        `tfsdk:"summary"`
	Archived          types.Bool                          `tfsdk:"archived"`
	SlackChannels     []TeamSlackChannelResourceModel     `tfsdk:"slack_channels"`
	Links             []TeamLinkResourceModel             `tfsdk:"links"`
	AdditionalMembers []TeamAdditionalMemberResourceModel `tfsdk:"additional_members"`
}

TeamResourceModel describes the team data model within Terraform.

type TeamSlackChannelResourceModel

type TeamSlackChannelResourceModel struct {
	Name                 types.String `tfsdk:"name"`
	NotificationsEnabled types.Bool   `tfsdk:"notifications_enabled"`
}

Jump to

Keyboard shortcuts

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