provider

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: MPL-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package provider implements the MISP Terraform provider.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

New returns a provider constructor bound to a version string set at build time.

func NewFeedDataSource

func NewFeedDataSource() datasource.DataSource

NewFeedDataSource constructs a misp_feed data source.

func NewFeedResource

func NewFeedResource() resource.Resource

NewFeedResource constructs a misp_feed resource.

func NewGalaxyClusterDataSource

func NewGalaxyClusterDataSource() datasource.DataSource

NewGalaxyClusterDataSource constructs a misp_galaxy_cluster data source.

func NewGalaxyClusterResource

func NewGalaxyClusterResource() resource.Resource

NewGalaxyClusterResource constructs a misp_galaxy_cluster resource.

func NewNoticelistDataSource

func NewNoticelistDataSource() datasource.DataSource

NewNoticelistDataSource constructs a misp_noticelist data source. Looks up a noticelist by name — the stable, human-readable identifier.

func NewNoticelistResource

func NewNoticelistResource() resource.Resource

NewNoticelistResource constructs a misp_noticelist resource.

Noticelists ship with MISP — this resource adopts an existing one by name and manages only its enabled flag. Destroying the resource disables the noticelist (does not remove the noticelist definition itself).

func NewOrganisationDataSource

func NewOrganisationDataSource() datasource.DataSource

NewOrganisationDataSource constructs a misp_organisation data source.

func NewOrganisationResource

func NewOrganisationResource() resource.Resource

NewOrganisationResource constructs a misp_organisation resource.

func NewRoleDataSource

func NewRoleDataSource() datasource.DataSource

NewRoleDataSource constructs a misp_role data source.

func NewRoleResource

func NewRoleResource() resource.Resource

NewRoleResource constructs a misp_role resource.

func NewServerDataSource

func NewServerDataSource() datasource.DataSource

NewServerDataSource constructs a misp_server data source.

func NewServerResource

func NewServerResource() resource.Resource

NewServerResource constructs a misp_server resource.

func NewSettingDataSource

func NewSettingDataSource() datasource.DataSource

NewSettingDataSource constructs a misp_setting data source. Looks up a MISP server setting by its dotted name (e.g. "MISP.baseurl").

func NewSettingResource

func NewSettingResource() resource.Resource

NewSettingResource constructs a misp_setting resource.

MISP settings are pre-defined on the server — they cannot be created or deleted via the API. This resource adopts an existing setting by name and manages its value. Destroying the resource is a no-op on the MISP side: it removes Terraform's tracking only; the value on the MISP instance is unchanged.

func NewSharingGroupDataSource

func NewSharingGroupDataSource() datasource.DataSource

NewSharingGroupDataSource constructs a misp_sharing_group data source.

func NewSharingGroupMemberResource

func NewSharingGroupMemberResource() resource.Resource

NewSharingGroupMemberResource constructs a misp_sharing_group_member resource.

func NewSharingGroupResource

func NewSharingGroupResource() resource.Resource

NewSharingGroupResource constructs a misp_sharing_group resource.

func NewSharingGroupServerResource

func NewSharingGroupServerResource() resource.Resource

NewSharingGroupServerResource constructs a misp_sharing_group_server resource.

func NewTagDataSource

func NewTagDataSource() datasource.DataSource

NewTagDataSource constructs a misp_tag data source.

func NewTagResource

func NewTagResource() resource.Resource

NewTagResource constructs a misp_tag resource.

func NewTaxonomyDataSource

func NewTaxonomyDataSource() datasource.DataSource

NewTaxonomyDataSource constructs a misp_taxonomy data source. Looks up a taxonomy by namespace — the stable, human-readable identifier.

func NewTaxonomyResource

func NewTaxonomyResource() resource.Resource

NewTaxonomyResource constructs a misp_taxonomy resource.

Taxonomies ship with MISP — this resource adopts an existing one by namespace and manages only its enabled flag. Destroying the resource disables the taxonomy (does not remove the taxonomy definition itself).

func NewUserDataSource

func NewUserDataSource() datasource.DataSource

NewUserDataSource constructs a misp_user data source.

func NewUserResource

func NewUserResource() resource.Resource

NewUserResource constructs a misp_user resource.

func NewWarninglistDataSource

func NewWarninglistDataSource() datasource.DataSource

NewWarninglistDataSource constructs a misp_warninglist data source. Looks up a warninglist by name — the stable, human-readable identifier.

func NewWarninglistResource

func NewWarninglistResource() resource.Resource

NewWarninglistResource constructs a misp_warninglist resource.

Warninglists ship with MISP — this resource adopts an existing one by name and manages only its enabled flag. Destroying the resource disables the warninglist (does not remove the warninglist definition itself).

Types

type MISPProvider

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

MISPProvider is the Terraform provider implementation.

func (*MISPProvider) Configure

Configure builds the MISP client from provider config (or MISP_* env vars) and stashes it on the response so resources and data sources can reach it.

func (*MISPProvider) DataSources

func (p *MISPProvider) DataSources(_ context.Context) []func() datasource.DataSource

DataSources returns the set of data sources the provider supports.

func (*MISPProvider) Functions

func (p *MISPProvider) Functions(_ context.Context) []func() function.Function

Functions returns provider-defined functions; none are defined yet.

func (*MISPProvider) Metadata

Metadata returns the provider type name ("misp") and its build version.

func (*MISPProvider) Resources

func (p *MISPProvider) Resources(_ context.Context) []func() resource.Resource

Resources returns the set of resources the provider supports.

func (*MISPProvider) Schema

Schema defines the provider-block configuration schema.

type MISPProviderModel

type MISPProviderModel struct {
	URL      types.String `tfsdk:"url"`
	APIKey   types.String `tfsdk:"api_key"`
	Insecure types.Bool   `tfsdk:"insecure"`
}

MISPProviderModel describes the provider data model.

Jump to

Keyboard shortcuts

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