Documentation
¶
Overview ¶
Package provider implements the MISP Terraform provider.
Index ¶
- func New(version string) func() provider.Provider
- func NewFeedDataSource() datasource.DataSource
- func NewFeedResource() resource.Resource
- func NewGalaxyClusterDataSource() datasource.DataSource
- func NewGalaxyClusterResource() resource.Resource
- func NewNoticelistDataSource() datasource.DataSource
- func NewNoticelistResource() resource.Resource
- func NewOrganisationDataSource() datasource.DataSource
- func NewOrganisationResource() resource.Resource
- func NewRoleDataSource() datasource.DataSource
- func NewRoleResource() resource.Resource
- func NewServerDataSource() datasource.DataSource
- func NewServerResource() resource.Resource
- func NewSettingDataSource() datasource.DataSource
- func NewSettingResource() resource.Resource
- func NewSharingGroupDataSource() datasource.DataSource
- func NewSharingGroupMemberResource() resource.Resource
- func NewSharingGroupResource() resource.Resource
- func NewSharingGroupServerResource() resource.Resource
- func NewTagDataSource() datasource.DataSource
- func NewTagResource() resource.Resource
- func NewTaxonomyDataSource() datasource.DataSource
- func NewTaxonomyResource() resource.Resource
- func NewUserDataSource() datasource.DataSource
- func NewUserResource() resource.Resource
- func NewWarninglistDataSource() datasource.DataSource
- func NewWarninglistResource() resource.Resource
- type MISPProvider
- func (p *MISPProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *MISPProvider) DataSources(_ context.Context) []func() datasource.DataSource
- func (p *MISPProvider) Functions(_ context.Context) []func() function.Function
- func (p *MISPProvider) Metadata(_ context.Context, _ provider.MetadataRequest, resp *provider.MetadataResponse)
- func (p *MISPProvider) Resources(_ context.Context) []func() resource.Resource
- func (p *MISPProvider) Schema(_ context.Context, _ provider.SchemaRequest, resp *provider.SchemaResponse)
- type MISPProviderModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFeedDataSource ¶
func NewFeedDataSource() datasource.DataSource
NewFeedDataSource constructs a misp_feed data source.
func NewFeedResource ¶
NewFeedResource constructs a misp_feed resource.
func NewGalaxyClusterDataSource ¶
func NewGalaxyClusterDataSource() datasource.DataSource
NewGalaxyClusterDataSource constructs a misp_galaxy_cluster data source.
func NewGalaxyClusterResource ¶
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 ¶
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 ¶
NewOrganisationResource constructs a misp_organisation resource.
func NewRoleDataSource ¶
func NewRoleDataSource() datasource.DataSource
NewRoleDataSource constructs a misp_role data source.
func NewRoleResource ¶
NewRoleResource constructs a misp_role resource.
func NewServerDataSource ¶
func NewServerDataSource() datasource.DataSource
NewServerDataSource constructs a misp_server data source.
func NewServerResource ¶
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 ¶
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 ¶
NewSharingGroupMemberResource constructs a misp_sharing_group_member resource.
func NewSharingGroupResource ¶
NewSharingGroupResource constructs a misp_sharing_group resource.
func NewSharingGroupServerResource ¶
NewSharingGroupServerResource constructs a misp_sharing_group_server resource.
func NewTagDataSource ¶
func NewTagDataSource() datasource.DataSource
NewTagDataSource constructs a misp_tag data source.
func NewTagResource ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (p *MISPProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
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 ¶
func (p *MISPProvider) Metadata(_ context.Context, _ provider.MetadataRequest, resp *provider.MetadataResponse)
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 ¶
func (p *MISPProvider) Schema(_ context.Context, _ provider.SchemaRequest, resp *provider.SchemaResponse)
Schema defines the provider-block configuration schema.
Source Files
¶
- feed_data_source.go
- feed_resource.go
- galaxy_cluster_data_source.go
- galaxy_cluster_resource.go
- noticelist_data_source.go
- noticelist_resource.go
- organisation_data_source.go
- organisation_resource.go
- paths.go
- provider.go
- role_data_source.go
- role_resource.go
- server_data_source.go
- server_resource.go
- setting_data_source.go
- setting_resource.go
- sharing_group_data_source.go
- sharing_group_member_resource.go
- sharing_group_resource.go
- sharing_group_server_resource.go
- tag_data_source.go
- tag_resource.go
- taxonomy_data_source.go
- taxonomy_resource.go
- testing.go
- user_data_source.go
- user_resource.go
- warninglist_data_source.go
- warninglist_resource.go