provider

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 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 added in v0.1.7

func NewCatalogEntityCustomDataDataSource() datasource.DataSource

func NewCatalogEntityCustomDataResource added in v0.1.7

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 added in v0.0.3

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 added in v0.1.0

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

CatalogEntityChildResourceModel describes a child of the catalog entity.

func (*CatalogEntityChildResourceModel) AttrTypes added in v0.1.0

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

func (*CatalogEntityChildResourceModel) FromApiModel added in v0.1.0

func (*CatalogEntityChildResourceModel) ToApiModel added in v0.1.0

type CatalogEntityCiCdBuildkitePipelineResourceModel added in v0.1.8

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

func (*CatalogEntityCiCdBuildkitePipelineResourceModel) AttrTypes added in v0.1.8

func (*CatalogEntityCiCdBuildkitePipelineResourceModel) FromApiModel added in v0.1.8

func (*CatalogEntityCiCdBuildkitePipelineResourceModel) ToApiModel added in v0.1.8

type CatalogEntityCiCdBuildkiteResourceModel added in v0.1.8

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

func (*CatalogEntityCiCdBuildkiteResourceModel) AttrTypes added in v0.1.8

func (*CatalogEntityCiCdBuildkiteResourceModel) FromApiModel added in v0.1.8

func (*CatalogEntityCiCdBuildkiteResourceModel) ToApiModel added in v0.1.8

type CatalogEntityCiCdBuildkiteTagResourceModel added in v0.1.8

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

func (*CatalogEntityCiCdBuildkiteTagResourceModel) AttrTypes added in v0.1.8

func (*CatalogEntityCiCdBuildkiteTagResourceModel) FromApiModel added in v0.1.8

func (*CatalogEntityCiCdBuildkiteTagResourceModel) ToApiModel added in v0.1.8

type CatalogEntityCiCdResourceModel added in v0.1.8

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

func (*CatalogEntityCiCdResourceModel) AttrTypes added in v0.1.8

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

func (*CatalogEntityCiCdResourceModel) FromApiModel added in v0.1.8

func (*CatalogEntityCiCdResourceModel) ToApiModel added in v0.1.8

type CatalogEntityCoralogixApplicationResourceModel added in v0.2.1

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

func (*CatalogEntityCoralogixApplicationResourceModel) AttrTypes added in v0.2.1

func (*CatalogEntityCoralogixApplicationResourceModel) FromApiModel added in v0.2.1

func (*CatalogEntityCoralogixApplicationResourceModel) ToApiModel added in v0.2.1

type CatalogEntityCoralogixResourceModel added in v0.2.1

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

func (*CatalogEntityCoralogixResourceModel) AttrTypes added in v0.2.1

func (*CatalogEntityCoralogixResourceModel) FromApiModel added in v0.2.1

func (*CatalogEntityCoralogixResourceModel) ToApiModel added in v0.2.1

type CatalogEntityCustomDataDataSource added in v0.1.7

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

CatalogEntityCustomDataDataSource defines the data source implementation.

func (*CatalogEntityCustomDataDataSource) Configure added in v0.1.7

func (*CatalogEntityCustomDataDataSource) Metadata added in v0.1.7

func (*CatalogEntityCustomDataDataSource) Read added in v0.1.7

func (*CatalogEntityCustomDataDataSource) Schema added in v0.1.7

type CatalogEntityCustomDataDataSourceModel added in v0.1.7

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 added in v0.1.7

func NewCatalogEntityCustomDataDataSourceModel() CatalogEntityCustomDataDataSourceModel

func (*CatalogEntityCustomDataDataSourceModel) FromApiModel added in v0.1.7

type CatalogEntityCustomDataResource added in v0.1.7

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

func (*CatalogEntityCustomDataResource) Configure added in v0.1.7

func (*CatalogEntityCustomDataResource) Create added in v0.1.7

func (*CatalogEntityCustomDataResource) Delete added in v0.1.7

func (*CatalogEntityCustomDataResource) ImportState added in v0.1.7

func (*CatalogEntityCustomDataResource) Metadata added in v0.1.7

func (*CatalogEntityCustomDataResource) Read added in v0.1.7

func (*CatalogEntityCustomDataResource) Schema added in v0.1.7

func (*CatalogEntityCustomDataResource) Update added in v0.1.7

type CatalogEntityCustomDataResourceModel added in v0.1.7

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 added in v0.1.7

func NewCatalogEntityCustomDataResourceModel() CatalogEntityCustomDataResourceModel

func (*CatalogEntityCustomDataResourceModel) FromApiModel added in v0.1.7

func (*CatalogEntityCustomDataResourceModel) ToApiModel added in v0.1.7

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 added in v0.1.7

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

CatalogEntityDomainParentResourceModel describes a parent domain of the catalog entity.

func (*CatalogEntityDomainParentResourceModel) AttrTypes added in v0.1.7

func (*CatalogEntityDomainParentResourceModel) FromApiModel added in v0.1.7

func (*CatalogEntityDomainParentResourceModel) ToApiModel added in v0.1.7

type CatalogEntityFireHydrantResourceModel added in v0.1.0

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

func (*CatalogEntityFireHydrantResourceModel) AttrTypes added in v0.1.0

func (*CatalogEntityFireHydrantResourceModel) FromApiModel added in v0.1.0

func (*CatalogEntityFireHydrantResourceModel) ToApiModel added in v0.1.0

type CatalogEntityFireHydrantServiceResourceModel added in v0.1.0

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

func (*CatalogEntityFireHydrantServiceResourceModel) AttrTypes added in v0.1.0

func (*CatalogEntityFireHydrantServiceResourceModel) FromApiModel added in v0.1.0

func (*CatalogEntityFireHydrantServiceResourceModel) ToApiModel added in v0.1.0

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 added in v0.1.7

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

func (*CatalogEntityGroupMemberResourceModel) AttrTypes added in v0.1.7

func (*CatalogEntityGroupMemberResourceModel) FromApiModel added in v0.1.7

func (*CatalogEntityGroupMemberResourceModel) ToApiModel added in v0.1.7

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 added in v0.2.1

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

func (*CatalogEntityK8sArgoRolloutResourceModel) AttrTypes added in v0.2.1

func (*CatalogEntityK8sArgoRolloutResourceModel) FromApiModel added in v0.2.1

func (*CatalogEntityK8sArgoRolloutResourceModel) ToApiModel added in v0.2.1

type CatalogEntityK8sCronJobResourceModel added in v0.2.1

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

func (*CatalogEntityK8sCronJobResourceModel) AttrTypes added in v0.2.1

func (*CatalogEntityK8sCronJobResourceModel) FromApiModel added in v0.2.1

func (*CatalogEntityK8sCronJobResourceModel) ToApiModel added in v0.2.1

type CatalogEntityK8sDeploymentResourceModel added in v0.2.1

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

func (*CatalogEntityK8sDeploymentResourceModel) AttrTypes added in v0.2.1

func (*CatalogEntityK8sDeploymentResourceModel) FromApiModel added in v0.2.1

func (*CatalogEntityK8sDeploymentResourceModel) ToApiModel added in v0.2.1

type CatalogEntityK8sResourceModel added in v0.2.1

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 added in v0.2.1

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

func (*CatalogEntityK8sResourceModel) FromApiModel added in v0.2.1

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

func (*CatalogEntityK8sResourceModel) ToApiModel added in v0.2.1

type CatalogEntityK8sStatefulSetResourceModel added in v0.2.1

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

func (*CatalogEntityK8sStatefulSetResourceModel) AttrTypes added in v0.2.1

func (*CatalogEntityK8sStatefulSetResourceModel) FromApiModel added in v0.2.1

func (*CatalogEntityK8sStatefulSetResourceModel) ToApiModel added in v0.2.1

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 added in v0.2.0

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

func (*CatalogEntityMicrosoftTeamResourceModel) AttrTypes added in v0.2.0

func (*CatalogEntityMicrosoftTeamResourceModel) FromApiModel added in v0.2.0

func (*CatalogEntityMicrosoftTeamResourceModel) ToApiModel added in v0.2.0

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 added in v0.1.0

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

func (*CatalogEntityOnCallXMattersResourceModel) AttrTypes added in v0.1.0

func (*CatalogEntityOnCallXMattersResourceModel) FromApiModel added in v0.1.0

func (*CatalogEntityOnCallXMattersResourceModel) ToApiModel added in v0.1.0

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"`
	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 added in v0.1.0

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 added in v0.2.0

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

func (*CatalogEntityServiceNowResourceModel) AttrTypes added in v0.2.0

func (*CatalogEntityServiceNowResourceModel) FromApiModel added in v0.2.0

func (*CatalogEntityServiceNowResourceModel) ToApiModel added in v0.2.0

type CatalogEntityServiceNowServiceResourceModel added in v0.2.0

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

func (*CatalogEntityServiceNowServiceResourceModel) AttrTypes added in v0.2.0

func (*CatalogEntityServiceNowServiceResourceModel) FromApiModel added in v0.2.0

func (*CatalogEntityServiceNowServiceResourceModel) ToApiModel added in v0.2.0

type CatalogEntitySlackChannelResourceModel added in v0.1.8

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

func (*CatalogEntitySlackChannelResourceModel) AttrTypes added in v0.1.8

func (*CatalogEntitySlackChannelResourceModel) FromApiModel added in v0.1.8

func (*CatalogEntitySlackChannelResourceModel) ToApiModel added in v0.1.8

type CatalogEntitySlackResourceModel added in v0.1.8

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

func (*CatalogEntitySlackResourceModel) AttrTypes added in v0.1.8

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

func (*CatalogEntitySlackResourceModel) FromApiModel added in v0.1.8

func (*CatalogEntitySlackResourceModel) ToApiModel added in v0.1.8

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 added in v0.1.7

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 added in v0.1.7

func (*CatalogEntityTeamMemberResourceModel) FromApiModel added in v0.1.7

func (*CatalogEntityTeamMemberResourceModel) ToApiModel added in v0.1.7

type CatalogEntityTeamResourceModel added in v0.1.7

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

func (*CatalogEntityTeamResourceModel) AttrTypes added in v0.1.7

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

func (*CatalogEntityTeamResourceModel) FromApiModel added in v0.1.7

func (*CatalogEntityTeamResourceModel) ToApiModel added in v0.1.7

type CatalogEntityWizProjectResourceModel added in v0.1.0

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

func (*CatalogEntityWizProjectResourceModel) AttrTypes added in v0.1.0

func (*CatalogEntityWizProjectResourceModel) FromApiModel added in v0.1.0

func (*CatalogEntityWizProjectResourceModel) ToApiModel added in v0.1.0

type CatalogEntityWizResourceModel added in v0.1.0

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

func (*CatalogEntityWizResourceModel) AttrTypes added in v0.1.0

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

func (*CatalogEntityWizResourceModel) FromApiModel added in v0.1.0

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

func (*CatalogEntityWizResourceModel) ToApiModel added in v0.1.0

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 added in v0.1.7

func NewDepartmentResourceModel() DepartmentResourceModel

func (*DepartmentResourceModel) FromApiModel

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

func (*DepartmentResourceModel) ToApiModel added in v0.1.7

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 added in v0.1.7

func NewResourceDefinitionDataSourceModel() ResourceDefinitionDataSourceModel

func (*ResourceDefinitionDataSourceModel) FromApiModel added in v0.1.7

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 added in v0.1.7

func NewResourceDefinitionResourceModel() ResourceDefinitionResourceModel

func (*ResourceDefinitionResourceModel) FromApiModel added in v0.1.7

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

func (*ResourceDefinitionResourceModel) ToApiModel added in v0.1.7

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 added in v0.1.7

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

type ScorecardEvaluationResourceModel added in v0.1.7

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

func (*ScorecardEvaluationResourceModel) AttrTypes added in v0.1.7

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

func (*ScorecardEvaluationResourceModel) FromApiModel added in v0.1.7

func (*ScorecardEvaluationResourceModel) ToApiModel added in v0.1.7

type ScorecardFilterResourceModel added in v0.1.7

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

func (*ScorecardFilterResourceModel) AttrTypes added in v0.1.7

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

func (*ScorecardFilterResourceModel) FromApiModel added in v0.1.7

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

func (*ScorecardFilterResourceModel) ToApiModel added in v0.1.7

type ScorecardLadderResourceModel added in v0.1.7

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

func (*ScorecardLadderResourceModel) AttrTypes added in v0.1.7

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

func (*ScorecardLadderResourceModel) FromApiModel added in v0.1.7

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

func (*ScorecardLadderResourceModel) ToApiModel added in v0.1.7

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 added in v0.1.7

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

func (*ScorecardLevelResourceModel) FromApiModel added in v0.1.7

func (*ScorecardLevelResourceModel) ToApiModel added in v0.1.7

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 added in v0.1.7

func NewScorecardResourceModel() ScorecardResourceModel

func (*ScorecardResourceModel) FromApiModel added in v0.1.7

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

func (*ScorecardResourceModel) ToApiModel added in v0.1.7

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 added in v0.1.7

func (*ScorecardRuleResourceModel) ToApiModel added in v0.1.7

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