provider

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 22 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 NewCatalogEntityCustomDataDataSource

func NewCatalogEntityCustomDataDataSource() datasource.DataSource

func NewCatalogEntityCustomDataResource

func NewCatalogEntityCustomDataResource() resource.Resource

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

Types

type CatalogEntityAlertResourceModel

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

func (*CatalogEntityAlertResourceModel) AttrTypes

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

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   types.Object   `tfsdk:"data_dog"`
	Dynatrace types.Object   `tfsdk:"dynatrace"`
	NewRelic  []types.Object `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 CatalogEntityChildResourceModel

type CatalogEntityChildResourceModel struct {
	Tag types.String `tfsdk:"tag"`
}

CatalogEntityChildResourceModel describes a child of the catalog entity.

func (*CatalogEntityChildResourceModel) AttrTypes

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

func (*CatalogEntityChildResourceModel) FromApiModel

func (*CatalogEntityChildResourceModel) ToApiModel

type CatalogEntityCiCdBuildkitePipelineResourceModel

type CatalogEntityCiCdBuildkitePipelineResourceModel struct {
	Slug types.String `tfsdk:"slug"`
}

func (*CatalogEntityCiCdBuildkitePipelineResourceModel) AttrTypes

func (*CatalogEntityCiCdBuildkitePipelineResourceModel) ToApiModel

type CatalogEntityCiCdBuildkiteResourceModel

type CatalogEntityCiCdBuildkiteResourceModel struct {
	Pipelines []CatalogEntityCiCdBuildkitePipelineResourceModel `tfsdk:"pipelines"`
	Tags      []CatalogEntityCiCdBuildkiteTagResourceModel      `tfsdk:"tags"`
}

func (*CatalogEntityCiCdBuildkiteResourceModel) AttrTypes

func (*CatalogEntityCiCdBuildkiteResourceModel) FromApiModel

func (*CatalogEntityCiCdBuildkiteResourceModel) ToApiModel

type CatalogEntityCiCdBuildkiteTagResourceModel

type CatalogEntityCiCdBuildkiteTagResourceModel struct {
	Tag types.String `tfsdk:"tag"`
}

func (*CatalogEntityCiCdBuildkiteTagResourceModel) AttrTypes

func (*CatalogEntityCiCdBuildkiteTagResourceModel) FromApiModel

func (*CatalogEntityCiCdBuildkiteTagResourceModel) ToApiModel

type CatalogEntityCiCdResourceModel

type CatalogEntityCiCdResourceModel struct {
	Buildkite types.Object `tfsdk:"buildkite"`
}

func (*CatalogEntityCiCdResourceModel) AttrTypes

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

func (*CatalogEntityCiCdResourceModel) FromApiModel

func (*CatalogEntityCiCdResourceModel) ToApiModel

type CatalogEntityCoralogixApplicationResourceModel

type CatalogEntityCoralogixApplicationResourceModel struct {
	Name  types.String `tfsdk:"name"`
	Alias types.String `tfsdk:"alias"`
}

func (*CatalogEntityCoralogixApplicationResourceModel) AttrTypes

func (*CatalogEntityCoralogixApplicationResourceModel) FromApiModel

func (*CatalogEntityCoralogixApplicationResourceModel) ToApiModel

type CatalogEntityCoralogixResourceModel

type CatalogEntityCoralogixResourceModel struct {
	Applications []CatalogEntityCoralogixApplicationResourceModel `tfsdk:"applications"`
}

func (*CatalogEntityCoralogixResourceModel) AttrTypes

func (*CatalogEntityCoralogixResourceModel) FromApiModel

func (*CatalogEntityCoralogixResourceModel) ToApiModel

type CatalogEntityCustomDataDataSource

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

CatalogEntityCustomDataDataSource defines the data source implementation.

func (*CatalogEntityCustomDataDataSource) Configure

func (*CatalogEntityCustomDataDataSource) Metadata

func (*CatalogEntityCustomDataDataSource) Read

func (*CatalogEntityCustomDataDataSource) Schema

type CatalogEntityCustomDataDataSourceModel

type CatalogEntityCustomDataDataSourceModel struct {
	Id          types.String `tfsdk:"id"`
	Tag         types.String `tfsdk:"tag"`
	Key         types.String `tfsdk:"key"`
	Description types.String `tfsdk:"description"`
	Source      types.String `tfsdk:"source"`
	Value       types.String `tfsdk:"value"`
}

CatalogEntityCustomDataDataSourceModel describes the data source data model.

func NewCatalogEntityCustomDataDataSourceModel

func NewCatalogEntityCustomDataDataSourceModel() CatalogEntityCustomDataDataSourceModel

func (*CatalogEntityCustomDataDataSourceModel) FromApiModel

type CatalogEntityCustomDataResource

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

func (*CatalogEntityCustomDataResource) Configure

func (*CatalogEntityCustomDataResource) Create

func (*CatalogEntityCustomDataResource) Delete

func (*CatalogEntityCustomDataResource) ImportState

func (*CatalogEntityCustomDataResource) Metadata

func (*CatalogEntityCustomDataResource) Read

func (*CatalogEntityCustomDataResource) Schema

func (*CatalogEntityCustomDataResource) Update

type CatalogEntityCustomDataResourceModel

type CatalogEntityCustomDataResourceModel struct {
	Id          types.String `tfsdk:"id"`
	Tag         types.String `tfsdk:"tag"`
	Key         types.String `tfsdk:"key"`
	Description types.String `tfsdk:"description"`
	Value       types.String `tfsdk:"value"`
}

func NewCatalogEntityCustomDataResourceModel

func NewCatalogEntityCustomDataResourceModel() CatalogEntityCustomDataResourceModel

func (*CatalogEntityCustomDataResourceModel) FromApiModel

func (*CatalogEntityCustomDataResourceModel) 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 CatalogEntityDomainParentResourceModel

type CatalogEntityDomainParentResourceModel struct {
	Tag types.String `tfsdk:"tag"`
}

CatalogEntityDomainParentResourceModel describes a parent domain of the catalog entity.

func (*CatalogEntityDomainParentResourceModel) AttrTypes

func (*CatalogEntityDomainParentResourceModel) FromApiModel

func (*CatalogEntityDomainParentResourceModel) ToApiModel

type CatalogEntityFireHydrantResourceModel

type CatalogEntityFireHydrantResourceModel struct {
	Services []CatalogEntityFireHydrantServiceResourceModel `tfsdk:"services"`
}

func (*CatalogEntityFireHydrantResourceModel) AttrTypes

func (*CatalogEntityFireHydrantResourceModel) FromApiModel

func (*CatalogEntityFireHydrantResourceModel) ToApiModel

type CatalogEntityFireHydrantServiceResourceModel

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

func (*CatalogEntityFireHydrantServiceResourceModel) AttrTypes

func (*CatalogEntityFireHydrantServiceResourceModel) 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 CatalogEntityGroupMemberResourceModel

type CatalogEntityGroupMemberResourceModel struct {
	Name     types.String `tfsdk:"name"`
	Provider types.String `tfsdk:"provider"`
}

func (*CatalogEntityGroupMemberResourceModel) AttrTypes

func (*CatalogEntityGroupMemberResourceModel) FromApiModel

func (*CatalogEntityGroupMemberResourceModel) 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 types.Object `tfsdk:"jira"`
}

func (*CatalogEntityIssuesResourceModel) AttrTypes

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

func (*CatalogEntityIssuesResourceModel) FromApiModel

func (*CatalogEntityIssuesResourceModel) ToApiModel

type CatalogEntityK8sArgoRolloutResourceModel

type CatalogEntityK8sArgoRolloutResourceModel struct {
	Identifier types.String `tfsdk:"identifier"`
	Cluster    types.String `tfsdk:"cluster"`
}

func (*CatalogEntityK8sArgoRolloutResourceModel) AttrTypes

func (*CatalogEntityK8sArgoRolloutResourceModel) FromApiModel

func (*CatalogEntityK8sArgoRolloutResourceModel) ToApiModel

type CatalogEntityK8sCronJobResourceModel

type CatalogEntityK8sCronJobResourceModel struct {
	Identifier types.String `tfsdk:"identifier"`
	Cluster    types.String `tfsdk:"cluster"`
}

func (*CatalogEntityK8sCronJobResourceModel) AttrTypes

func (*CatalogEntityK8sCronJobResourceModel) FromApiModel

func (*CatalogEntityK8sCronJobResourceModel) ToApiModel

type CatalogEntityK8sDeploymentResourceModel

type CatalogEntityK8sDeploymentResourceModel struct {
	Identifier types.String `tfsdk:"identifier"`
	Cluster    types.String `tfsdk:"cluster"`
}

func (*CatalogEntityK8sDeploymentResourceModel) AttrTypes

func (*CatalogEntityK8sDeploymentResourceModel) FromApiModel

func (*CatalogEntityK8sDeploymentResourceModel) ToApiModel

type CatalogEntityK8sResourceModel

type CatalogEntityK8sResourceModel struct {
	Deployments  []CatalogEntityK8sDeploymentResourceModel  `tfsdk:"deployments"`
	ArgoRollouts []CatalogEntityK8sArgoRolloutResourceModel `tfsdk:"argo_rollouts"`
	StatefulSets []CatalogEntityK8sStatefulSetResourceModel `tfsdk:"stateful_sets"`
	CronJobs     []CatalogEntityK8sCronJobResourceModel     `tfsdk:"cron_jobs"`
}

func (*CatalogEntityK8sResourceModel) AttrTypes

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

func (*CatalogEntityK8sResourceModel) FromApiModel

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

func (*CatalogEntityK8sResourceModel) ToApiModel

type CatalogEntityK8sStatefulSetResourceModel

type CatalogEntityK8sStatefulSetResourceModel struct {
	Identifier types.String `tfsdk:"identifier"`
	Cluster    types.String `tfsdk:"cluster"`
}

func (*CatalogEntityK8sStatefulSetResourceModel) AttrTypes

func (*CatalogEntityK8sStatefulSetResourceModel) FromApiModel

func (*CatalogEntityK8sStatefulSetResourceModel) ToApiModel

type CatalogEntityLaunchDarklyProjectEnvironmentResourceModel

type CatalogEntityLaunchDarklyProjectEnvironmentResourceModel struct {
	Name types.String `tfsdk:"name"`
}

func (*CatalogEntityLaunchDarklyProjectEnvironmentResourceModel) AttrTypes

func (*CatalogEntityLaunchDarklyProjectEnvironmentResourceModel) ToApiModel

type CatalogEntityLaunchDarklyProjectResourceModel

type CatalogEntityLaunchDarklyProjectResourceModel struct {
	ID           types.String                                               `tfsdk:"id"`
	Type         types.String                                               `tfsdk:"type"`
	Alias        types.String                                               `tfsdk:"alias"`
	Environments []CatalogEntityLaunchDarklyProjectEnvironmentResourceModel `tfsdk:"environments"`
}

func (*CatalogEntityLaunchDarklyProjectResourceModel) AttrTypes

func (*CatalogEntityLaunchDarklyProjectResourceModel) ToApiModel

type CatalogEntityLaunchDarklyResourceModel

type CatalogEntityLaunchDarklyResourceModel struct {
	Projects []CatalogEntityLaunchDarklyProjectResourceModel `tfsdk:"projects"`
}

func (*CatalogEntityLaunchDarklyResourceModel) AttrTypes

func (*CatalogEntityLaunchDarklyResourceModel) FromApiModel

func (*CatalogEntityLaunchDarklyResourceModel) 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 CatalogEntityMicrosoftTeamResourceModel

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

func (*CatalogEntityMicrosoftTeamResourceModel) AttrTypes

func (*CatalogEntityMicrosoftTeamResourceModel) FromApiModel

func (*CatalogEntityMicrosoftTeamResourceModel) 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 types.Object `tfsdk:"pager_duty"`
	OpsGenie  types.Object `tfsdk:"ops_genie"`
	VictorOps types.Object `tfsdk:"victor_ops"`
	XMatters  types.Object `tfsdk:"xmatters"`
}

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 CatalogEntityOnCallXMattersResourceModel

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

func (*CatalogEntityOnCallXMattersResourceModel) AttrTypes

func (*CatalogEntityOnCallXMattersResourceModel) FromApiModel

func (*CatalogEntityOnCallXMattersResourceModel) 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"`
	Type           types.String                             `tfsdk:"type"`
	Definition     types.String                             `tfsdk:"definition"`
	Owners         []CatalogEntityOwnerResourceModel        `tfsdk:"owners"`
	Children       []CatalogEntityChildResourceModel        `tfsdk:"children"`
	DomainParents  []CatalogEntityDomainParentResourceModel `tfsdk:"domain_parents"`
	Groups         []types.String                           `tfsdk:"groups"`
	Links          []CatalogEntityLinkResourceModel         `tfsdk:"links"`
	IgnoreMetadata types.Bool                               `tfsdk:"ignore_metadata"`
	Metadata       types.String                             `tfsdk:"metadata"`
	Dependencies   []types.Object                           `tfsdk:"dependencies"`
	Alerts         []types.Object                           `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"`
	CiCd           types.Object                             `tfsdk:"ci_cd"`
	BugSnag        types.Object                             `tfsdk:"bug_snag"`
	Checkmarx      types.Object                             `tfsdk:"checkmarx"`
	Coralogix      types.Object                             `tfsdk:"coralogix"`
	FireHydrant    types.Object                             `tfsdk:"firehydrant"`
	K8s            types.Object                             `tfsdk:"k8s"`
	LaunchDarkly   types.Object                             `tfsdk:"launch_darkly"`
	MicrosoftTeams []types.Object                           `tfsdk:"microsoft_teams"`
	Rollbar        types.Object                             `tfsdk:"rollbar"`
	Sentry         types.Object                             `tfsdk:"sentry"`
	ServiceNow     types.Object                             `tfsdk:"service_now"`
	Slack          types.Object                             `tfsdk:"slack"`
	Snyk           types.Object                             `tfsdk:"snyk"`
	Wiz            types.Object                             `tfsdk:"wiz"`
	Team           types.Object                             `tfsdk:"team"`
}

CatalogEntityResourceModel describes the resource data model.

func NewCatalogEntityResourceModel

func NewCatalogEntityResourceModel() CatalogEntityResourceModel

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 []types.Object `tfsdk:"streams"`
}

func (*CatalogEntitySLOLightstepResourceModel) AttrTypes

func (*CatalogEntitySLOLightstepResourceModel) FromApiModel

func (*CatalogEntitySLOLightstepResourceModel) ToApiModel

type CatalogEntitySLOLightstepStreamResourceModel

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

func (*CatalogEntitySLOLightstepStreamResourceModel) AttrTypes

func (*CatalogEntitySLOLightstepStreamResourceModel) FromApiModel

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) FromApiModel

func (*CatalogEntitySLOLightstepStreamTargetLatencyResourceModel) ToApiModel

type CatalogEntitySLOLightstepStreamTargetResourceModel

type CatalogEntitySLOLightstepStreamTargetResourceModel struct {
	Latencies []types.Object `tfsdk:"latencies"`
}

func (*CatalogEntitySLOLightstepStreamTargetResourceModel) AttrTypes

func (*CatalogEntitySLOLightstepStreamTargetResourceModel) FromApiModel

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  types.Object                              `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 CatalogEntityServiceNowResourceModel

type CatalogEntityServiceNowResourceModel struct {
	Services []CatalogEntityServiceNowServiceResourceModel `tfsdk:"services"`
}

func (*CatalogEntityServiceNowResourceModel) AttrTypes

func (*CatalogEntityServiceNowResourceModel) FromApiModel

func (*CatalogEntityServiceNowResourceModel) ToApiModel

type CatalogEntityServiceNowServiceResourceModel

type CatalogEntityServiceNowServiceResourceModel struct {
	ID        types.Int64  `tfsdk:"id"`
	TableName types.String `tfsdk:"table_name"`
}

func (*CatalogEntityServiceNowServiceResourceModel) AttrTypes

func (*CatalogEntityServiceNowServiceResourceModel) FromApiModel

func (*CatalogEntityServiceNowServiceResourceModel) ToApiModel

type CatalogEntitySlackChannelResourceModel

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

func (*CatalogEntitySlackChannelResourceModel) AttrTypes

func (*CatalogEntitySlackChannelResourceModel) FromApiModel

func (*CatalogEntitySlackChannelResourceModel) ToApiModel

type CatalogEntitySlackResourceModel

type CatalogEntitySlackResourceModel struct {
	Channels []CatalogEntitySlackChannelResourceModel `tfsdk:"channels"`
}

func (*CatalogEntitySlackResourceModel) AttrTypes

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

func (*CatalogEntitySlackResourceModel) FromApiModel

func (*CatalogEntitySlackResourceModel) 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"`
	Owner      types.String `tfsdk:"owner"`
	Flag       types.String `tfsdk:"flag"`
}

func (*CatalogEntityStaticAnalysisCodeCovResourceModel) AttrTypes

func (*CatalogEntityStaticAnalysisCodeCovResourceModel) FromApiModel

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) FromApiModel

func (*CatalogEntityStaticAnalysisMendResourceModel) ToApiModel

type CatalogEntityStaticAnalysisResourceModel

type CatalogEntityStaticAnalysisResourceModel struct {
	CodeCov   types.Object `tfsdk:"code_cov"`
	Mend      types.Object `tfsdk:"mend"`
	SonarQube types.Object `tfsdk:"sonar_qube"`
	Veracode  types.Object `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) FromApiModel

func (*CatalogEntityStaticAnalysisSonarQubeResourceModel) ToApiModel

type CatalogEntityStaticAnalysisVeracodeResourceModel

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

func (*CatalogEntityStaticAnalysisVeracodeResourceModel) AttrTypes

func (*CatalogEntityStaticAnalysisVeracodeResourceModel) FromApiModel

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 CatalogEntityTeamMemberResourceModel

type CatalogEntityTeamMemberResourceModel struct {
	Name                 types.String `tfsdk:"name"`
	Email                types.String `tfsdk:"email"`
	Role                 types.String `tfsdk:"role"`
	NotificationsEnabled types.Bool   `tfsdk:"notifications_enabled"`
}

func (*CatalogEntityTeamMemberResourceModel) AttrTypes

func (*CatalogEntityTeamMemberResourceModel) FromApiModel

func (*CatalogEntityTeamMemberResourceModel) ToApiModel

type CatalogEntityTeamResourceModel

type CatalogEntityTeamResourceModel struct {
	Members []CatalogEntityTeamMemberResourceModel  `tfsdk:"members"`
	Groups  []CatalogEntityGroupMemberResourceModel `tfsdk:"groups"`
}

func (*CatalogEntityTeamResourceModel) AttrTypes

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

func (*CatalogEntityTeamResourceModel) FromApiModel

func (*CatalogEntityTeamResourceModel) ToApiModel

type CatalogEntityWizProjectResourceModel

type CatalogEntityWizProjectResourceModel struct {
	ProjectID types.String `tfsdk:"project_id"`
}

func (*CatalogEntityWizProjectResourceModel) AttrTypes

func (*CatalogEntityWizProjectResourceModel) FromApiModel

func (*CatalogEntityWizProjectResourceModel) ToApiModel

type CatalogEntityWizResourceModel

type CatalogEntityWizResourceModel struct {
	Projects []CatalogEntityWizProjectResourceModel `tfsdk:"projects"`
}

func (*CatalogEntityWizResourceModel) AttrTypes

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

func (*CatalogEntityWizResourceModel) FromApiModel

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

func (*CatalogEntityWizResourceModel) 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(entity 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 NewDepartmentResourceModel

func NewDepartmentResourceModel() DepartmentResourceModel

func (*DepartmentResourceModel) FromApiModel

func (r *DepartmentResourceModel) FromApiModel(entity cortex.Department)

func (*DepartmentResourceModel) ToApiModel

func (r *DepartmentResourceModel) ToApiModel() cortex.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.String `tfsdk:"schema"`
}

ResourceDefinitionDataSourceModel describes the data source data model.

func NewResourceDefinitionDataSourceModel

func NewResourceDefinitionDataSourceModel() ResourceDefinitionDataSourceModel

func (*ResourceDefinitionDataSourceModel) FromApiModel

func (r *ResourceDefinitionDataSourceModel) FromApiModel(ctx context.Context, diagnostics *diag.Diagnostics, entity *cortex.ResourceDefinition)

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.String `tfsdk:"schema"`
}

ResourceDefinitionResourceModel describes the department data model within Terraform.

func NewResourceDefinitionResourceModel

func NewResourceDefinitionResourceModel() ResourceDefinitionResourceModel

func (*ResourceDefinitionResourceModel) FromApiModel

func (r *ResourceDefinitionResourceModel) FromApiModel(ctx context.Context, diagnostics *diag.Diagnostics, entity cortex.ResourceDefinition)

func (*ResourceDefinitionResourceModel) ToApiModel

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"`
	Draft       types.Bool                   `tfsdk:"draft"`
	Ladder      types.Object                 `tfsdk:"ladder"`
	Rules       []ScorecardRuleResourceModel `tfsdk:"rules"`
	Filter      types.Object                 `tfsdk:"filter"`
	Evaluation  types.Object                 `tfsdk:"evaluation"`
}

ScorecardDataSourceModel describes the data source data model.

func (*ScorecardDataSourceModel) FromApiModel

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

type ScorecardEvaluationResourceModel

type ScorecardEvaluationResourceModel struct {
	Window types.Int64 `tfsdk:"window"`
}

func (*ScorecardEvaluationResourceModel) AttrTypes

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

func (*ScorecardEvaluationResourceModel) FromApiModel

func (*ScorecardEvaluationResourceModel) ToApiModel

type ScorecardFilterResourceModel

type ScorecardFilterResourceModel struct {
	Category types.String `tfsdk:"category"`
	Query    types.String `tfsdk:"query"`
}

func (*ScorecardFilterResourceModel) AttrTypes

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

func (*ScorecardFilterResourceModel) FromApiModel

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

func (*ScorecardFilterResourceModel) ToApiModel

type ScorecardLadderResourceModel

type ScorecardLadderResourceModel struct {
	Levels []ScorecardLevelResourceModel `tfsdk:"levels"`
}

func (*ScorecardLadderResourceModel) AttrTypes

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

func (*ScorecardLadderResourceModel) FromApiModel

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

func (*ScorecardLadderResourceModel) ToApiModel

type ScorecardLevelResourceModel

type ScorecardLevelResourceModel struct {
	Name        types.String `tfsdk:"name"`
	Rank        types.Int64  `tfsdk:"rank"`
	Description types.String `tfsdk:"description"`
	Color       types.String `tfsdk:"color"`
}

func (*ScorecardLevelResourceModel) AttrTypes

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

func (*ScorecardLevelResourceModel) FromApiModel

func (*ScorecardLevelResourceModel) ToApiModel

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"`
	Draft       types.Bool                   `tfsdk:"draft"`
	Ladder      types.Object                 `tfsdk:"ladder"`
	Rules       []ScorecardRuleResourceModel `tfsdk:"rules"`
	Filter      types.Object                 `tfsdk:"filter"`
	Evaluation  types.Object                 `tfsdk:"evaluation"`
}

ScorecardResourceModel describes the scorecard data model within Terraform.

func NewScorecardResourceModel

func NewScorecardResourceModel() ScorecardResourceModel

func (*ScorecardResourceModel) FromApiModel

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

func (*ScorecardResourceModel) ToApiModel

func (o *ScorecardResourceModel) ToApiModel(ctx context.Context, diagnostics *diag.Diagnostics) cortex.Scorecard

type ScorecardRuleResourceModel

type ScorecardRuleResourceModel struct {
	Title          types.String `tfsdk:"title"`
	Expression     types.String `tfsdk:"expression"`
	Weight         types.Int64  `tfsdk:"weight"`
	Level          types.String `tfsdk:"level"`
	Description    types.String `tfsdk:"description"`
	FailureMessage types.String `tfsdk:"failure_message"`
}

func (*ScorecardRuleResourceModel) FromApiModel

func (*ScorecardRuleResourceModel) ToApiModel

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.

Jump to

Keyboard shortcuts

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