provider

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MPL-2.0 Imports: 66 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoValidCredentials = errors.New("\n\nNo valid credentials found " +
	"for ControlMonkey Provider.\nPlease see https://www.terraform.io/docs/" +
	"providers/internal/index.html\nfor more information on providing " +
	"credentials for ControlMonkey Provider.")

Functions

func New

func New() provider.Provider

New is a helper function to simplify provider server and testing implementation.

func NewBlueprintNamespaceMappingsResource added in v1.9.0

func NewBlueprintNamespaceMappingsResource() resource.Resource

func NewControlPolicyGroupMappingResource added in v1.9.0

func NewControlPolicyGroupMappingResource() resource.Resource

func NewControlPolicyGroupResource added in v1.13.0

func NewControlPolicyGroupResource() resource.Resource

func NewControlPolicyMappingResource added in v1.7.0

func NewControlPolicyMappingResource() resource.Resource

func NewControlPolicyResource added in v1.13.0

func NewControlPolicyResource() resource.Resource

func NewEventsSubscriptionsResource added in v1.10.0

func NewEventsSubscriptionsResource() resource.Resource

func NewNamespacePermissionsResource added in v1.7.0

func NewNamespacePermissionsResource() resource.Resource

func NewNamespaceResource

func NewNamespaceResource() resource.Resource

func NewNotificationEndpointResource added in v1.10.0

func NewNotificationEndpointResource() resource.Resource

func NewOrgConfigurationResource added in v1.10.0

func NewOrgConfigurationResource() resource.Resource

func NewStackResource

func NewStackResource() resource.Resource

func NewTeamResource added in v1.7.0

func NewTeamResource() resource.Resource

func NewTeamUsersResource added in v1.7.0

func NewTeamUsersResource() resource.Resource

func NewTemplateNamespaceMappingsResource added in v1.9.0

func NewTemplateNamespaceMappingsResource() resource.Resource

func NewTemplateResource added in v1.7.0

func NewTemplateResource() resource.Resource

func NewVariableResource

func NewVariableResource() resource.Resource

Types

type BlueprintNamespaceMappingsResource added in v1.9.0

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

func (*BlueprintNamespaceMappingsResource) Configure added in v1.9.0

Configure adds the provider configured client to the data source.

func (*BlueprintNamespaceMappingsResource) Create added in v1.9.0

Create creates the resource and sets the initial Terraform state.

func (*BlueprintNamespaceMappingsResource) Delete added in v1.9.0

func (*BlueprintNamespaceMappingsResource) ImportState added in v1.9.0

func (*BlueprintNamespaceMappingsResource) Metadata added in v1.9.0

func (*BlueprintNamespaceMappingsResource) Read added in v1.9.0

Read refreshes the Terraform state with the latest data.

func (*BlueprintNamespaceMappingsResource) Schema added in v1.9.0

func (*BlueprintNamespaceMappingsResource) Update added in v1.9.0

func (*BlueprintNamespaceMappingsResource) ValidateConfig added in v1.9.0

type Client

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

type Config

type Config struct {
	Token        string
	FeatureFlags string
	// contains filtered or unexported fields
}

func (*Config) Client

func (c *Config) Client() (*Client, diag.Diagnostics)

Client configures and returns a fully initialized ControlMonkey client.

type ControlMonkeyAPIClient

type ControlMonkeyAPIClient struct {
	Client *Client
}

type ControlMonkeyProvider

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

ControlMonkeyProvider defines the provider implementation.

func (*ControlMonkeyProvider) Configure

func (*ControlMonkeyProvider) DataSources

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

func (*ControlMonkeyProvider) Metadata

func (*ControlMonkeyProvider) Resources

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

func (*ControlMonkeyProvider) Schema

type ControlMonkeyProviderModel

type ControlMonkeyProviderModel struct {
	Token types.String `tfsdk:"token"`
}

ControlMonkeyProviderModel describes the provider data model.

type ControlPolicyGroupMappingResource added in v1.9.0

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

func (*ControlPolicyGroupMappingResource) Configure added in v1.9.0

Configure adds the provider configured client to the data source.

func (*ControlPolicyGroupMappingResource) Create added in v1.9.0

Create creates the resource and sets the initial Terraform state.

func (*ControlPolicyGroupMappingResource) Delete added in v1.9.0

func (*ControlPolicyGroupMappingResource) ImportState added in v1.9.0

func (*ControlPolicyGroupMappingResource) Metadata added in v1.9.0

func (*ControlPolicyGroupMappingResource) Read added in v1.9.0

Read refreshes the Terraform state with the latest data.

func (*ControlPolicyGroupMappingResource) Schema added in v1.9.0

func (*ControlPolicyGroupMappingResource) Update added in v1.9.0

func (*ControlPolicyGroupMappingResource) ValidateConfig added in v1.9.0

type ControlPolicyGroupResource added in v1.13.0

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

func (*ControlPolicyGroupResource) Configure added in v1.13.0

Configure adds the provider configured client to the data source.

func (*ControlPolicyGroupResource) Create added in v1.13.0

Create creates the resource and sets the initial Terraform state.

func (*ControlPolicyGroupResource) Delete added in v1.13.0

func (*ControlPolicyGroupResource) ImportState added in v1.13.0

func (*ControlPolicyGroupResource) Metadata added in v1.13.0

func (*ControlPolicyGroupResource) Read added in v1.13.0

Read refreshes the Terraform state with the latest data.

func (*ControlPolicyGroupResource) Schema added in v1.13.0

func (*ControlPolicyGroupResource) Update added in v1.13.0

type ControlPolicyMappingResource added in v1.7.0

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

func (*ControlPolicyMappingResource) Configure added in v1.7.0

Configure adds the provider configured client to the data source.

func (*ControlPolicyMappingResource) Create added in v1.7.0

Create creates the resource and sets the initial Terraform state.

func (*ControlPolicyMappingResource) Delete added in v1.7.0

func (*ControlPolicyMappingResource) ImportState added in v1.7.0

func (*ControlPolicyMappingResource) Metadata added in v1.7.0

func (*ControlPolicyMappingResource) Read added in v1.7.0

Read refreshes the Terraform state with the latest data.

func (*ControlPolicyMappingResource) Schema added in v1.7.0

func (*ControlPolicyMappingResource) Update added in v1.7.0

func (*ControlPolicyMappingResource) ValidateConfig added in v1.9.0

type ControlPolicyResource added in v1.13.0

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

func (*ControlPolicyResource) Configure added in v1.13.0

Configure adds the provider configured client to the data source.

func (*ControlPolicyResource) Create added in v1.13.0

Create creates the resource and sets the initial Terraform state.

func (*ControlPolicyResource) Delete added in v1.13.0

func (*ControlPolicyResource) ImportState added in v1.13.0

func (*ControlPolicyResource) Metadata added in v1.13.0

func (*ControlPolicyResource) Read added in v1.13.0

Read refreshes the Terraform state with the latest data.

func (*ControlPolicyResource) Schema added in v1.13.0

func (*ControlPolicyResource) Update added in v1.13.0

type EventsSubscriptionsResource added in v1.10.0

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

func (*EventsSubscriptionsResource) Configure added in v1.10.0

Configure adds the provider configured client to the data source.

func (*EventsSubscriptionsResource) Create added in v1.10.0

Create creates the resource and sets the initial Terraform state.

func (*EventsSubscriptionsResource) Delete added in v1.10.0

func (*EventsSubscriptionsResource) ImportState added in v1.10.0

func (*EventsSubscriptionsResource) Metadata added in v1.10.0

func (*EventsSubscriptionsResource) Read added in v1.10.0

Read refreshes the Terraform state with the latest data.

func (*EventsSubscriptionsResource) Schema added in v1.10.0

func (*EventsSubscriptionsResource) Update added in v1.10.0

func (*EventsSubscriptionsResource) ValidateConfig added in v1.10.0

type NamespacePermissionsResource added in v1.7.0

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

func (*NamespacePermissionsResource) Configure added in v1.7.0

Configure adds the provider configured client to the data source.

func (*NamespacePermissionsResource) Create added in v1.7.0

Create creates the resource and sets the initial Terraform state.

func (*NamespacePermissionsResource) Delete added in v1.7.0

func (*NamespacePermissionsResource) ImportState added in v1.7.0

func (*NamespacePermissionsResource) Metadata added in v1.7.0

func (*NamespacePermissionsResource) Read added in v1.7.0

Read refreshes the Terraform state with the latest data.

func (*NamespacePermissionsResource) Schema added in v1.7.0

func (*NamespacePermissionsResource) Update added in v1.7.0

func (*NamespacePermissionsResource) ValidateConfig added in v1.7.0

type NamespaceResource

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

func (*NamespaceResource) Configure

Configure adds the provider configured client to the data source.

func (*NamespaceResource) Create

Create creates the resource and sets the initial Terraform state.

func (*NamespaceResource) Delete

func (*NamespaceResource) ImportState

func (*NamespaceResource) Metadata

func (*NamespaceResource) Read

Read refreshes the Terraform state with the latest data.

func (*NamespaceResource) Schema

func (*NamespaceResource) Update

func (*NamespaceResource) ValidateConfig added in v1.5.0

type NotificationEndpointResource added in v1.10.0

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

func (*NotificationEndpointResource) Configure added in v1.10.0

Configure adds the provider configured client to the data source.

func (*NotificationEndpointResource) Create added in v1.10.0

Create creates the resource and sets the initial Terraform state.

func (*NotificationEndpointResource) Delete added in v1.10.0

func (*NotificationEndpointResource) ImportState added in v1.10.0

func (*NotificationEndpointResource) Metadata added in v1.10.0

func (*NotificationEndpointResource) Read added in v1.10.0

Read refreshes the Terraform state with the latest data.

func (*NotificationEndpointResource) Schema added in v1.10.0

func (*NotificationEndpointResource) Update added in v1.10.0

type OrgConfigurationResource added in v1.10.0

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

func (*OrgConfigurationResource) Configure added in v1.10.0

Configure adds the provider configured client to the data source.

func (*OrgConfigurationResource) Create added in v1.10.0

Create creates the resource and sets the initial Terraform state.

func (*OrgConfigurationResource) Delete added in v1.10.0

func (*OrgConfigurationResource) ImportState added in v1.10.0

func (*OrgConfigurationResource) Metadata added in v1.10.0

func (*OrgConfigurationResource) Read added in v1.10.0

Read refreshes the Terraform state with the latest data.

func (*OrgConfigurationResource) Schema added in v1.10.0

func (*OrgConfigurationResource) Update added in v1.10.0

type StackResource

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

func (*StackResource) Configure

Configure adds the provider configured client to the data source.

func (*StackResource) Create

Create creates the resource and sets the initial Terraform state.

func (*StackResource) Delete

func (*StackResource) ImportState

func (*StackResource) Metadata

func (*StackResource) Read

Read refreshes the Terraform state with the latest data.

func (*StackResource) Schema

func (*StackResource) Update

func (*StackResource) ValidateConfig added in v1.5.0

type TeamResource added in v1.7.0

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

func (*TeamResource) Configure added in v1.7.0

Configure adds the provider configured client to the data source.

func (*TeamResource) Create added in v1.7.0

Create creates the resource and sets the initial Terraform state.

func (*TeamResource) Delete added in v1.7.0

func (*TeamResource) ImportState added in v1.7.0

func (*TeamResource) Metadata added in v1.7.0

func (*TeamResource) Read added in v1.7.0

Read refreshes the Terraform state with the latest data.

func (*TeamResource) Schema added in v1.7.0

func (*TeamResource) Update added in v1.7.0

type TeamUsersResource added in v1.7.0

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

func (*TeamUsersResource) Configure added in v1.7.0

Configure adds the provider configured client to the data source.

func (*TeamUsersResource) Create added in v1.7.0

Create creates the resource and sets the initial Terraform state.

func (*TeamUsersResource) Delete added in v1.7.0

func (*TeamUsersResource) ImportState added in v1.7.0

func (*TeamUsersResource) Metadata added in v1.7.0

func (*TeamUsersResource) Read added in v1.7.0

Read refreshes the Terraform state with the latest data.

func (*TeamUsersResource) Schema added in v1.7.0

func (*TeamUsersResource) Update added in v1.7.0

func (*TeamUsersResource) ValidateConfig added in v1.7.0

type TemplateNamespaceMappingsResource added in v1.9.0

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

func (*TemplateNamespaceMappingsResource) Configure added in v1.9.0

Configure adds the provider configured client to the data source.

func (*TemplateNamespaceMappingsResource) Create added in v1.9.0

Create creates the resource and sets the initial Terraform state.

func (*TemplateNamespaceMappingsResource) Delete added in v1.9.0

func (*TemplateNamespaceMappingsResource) ImportState added in v1.9.0

func (*TemplateNamespaceMappingsResource) Metadata added in v1.9.0

func (*TemplateNamespaceMappingsResource) Read added in v1.9.0

Read refreshes the Terraform state with the latest data.

func (*TemplateNamespaceMappingsResource) Schema added in v1.9.0

func (*TemplateNamespaceMappingsResource) Update added in v1.9.0

func (*TemplateNamespaceMappingsResource) ValidateConfig added in v1.9.0

type TemplateResource added in v1.7.0

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

func (*TemplateResource) Configure added in v1.7.0

Configure adds the provider configured client to the data source.

func (*TemplateResource) Create added in v1.7.0

Create creates the resource and sets the initial Terraform state.

func (*TemplateResource) Delete added in v1.7.0

func (*TemplateResource) ImportState added in v1.7.0

func (*TemplateResource) Metadata added in v1.7.0

func (*TemplateResource) Read added in v1.7.0

Read refreshes the Terraform state with the latest data.

func (*TemplateResource) Schema added in v1.7.0

func (*TemplateResource) Update added in v1.7.0

type VariableResource

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

func (*VariableResource) Configure

Configure adds the provider configured client to the data source.

func (*VariableResource) Create

Create creates the resource and sets the initial Terraform state.

func (*VariableResource) Delete

func (*VariableResource) ImportState

func (*VariableResource) Metadata

func (*VariableResource) Read

Read refreshes the Terraform state with the latest data.

func (*VariableResource) Schema

func (*VariableResource) Update

func (*VariableResource) ValidateConfig added in v1.5.0

Jump to

Keyboard shortcuts

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