provider

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation ¶

Index ¶

Constants ¶

This section is empty.

Variables ¶

This section is empty.

Functions ¶

func New ¶

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

func NewLibraryDataSource ¶

func NewLibraryDataSource() datasource.DataSource

func NewLibraryResource ¶

func NewLibraryResource() resource.Resource

func NewPolicyDataSource ¶

func NewPolicyDataSource() datasource.DataSource

func NewPolicyResource ¶

func NewPolicyResource() resource.Resource

func NewSecretDataSource ¶

func NewSecretDataSource() datasource.DataSource

func NewSecretResource ¶

func NewSecretResource() resource.Resource

func NewStackDataSource ¶

func NewStackDataSource() datasource.DataSource

func NewStackResource ¶

func NewStackResource() resource.Resource

func NewSystemDataSource ¶

func NewSystemDataSource() datasource.DataSource

func NewSystemResource ¶

func NewSystemResource() resource.Resource

Types ¶

type LibraryDataSource ¶

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

LibraryDataSource is the data source implementation.

func (*LibraryDataSource) Configure ¶

func (*LibraryDataSource) Metadata ¶

Metadata returns the data source type name.

func (*LibraryDataSource) Read ¶

func (*LibraryDataSource) Schema ¶

Schema defines the schema for the data source.

type LibraryDataSourceModel ¶

type LibraryDataSourceModel struct {
	DependantBundles types.String                             `tfsdk:"dependant_bundles"`
	ID               types.String                             `tfsdk:"id"`
	Result           tfTypes.LibrariesV1LibraryEntityExpanded `tfsdk:"result"`
}

LibraryDataSourceModel describes the data model.

func (*LibraryDataSourceModel) RefreshFromSharedLibrariesV1LibraryResponse ¶

func (r *LibraryDataSourceModel) RefreshFromSharedLibrariesV1LibraryResponse(resp *shared.LibrariesV1LibraryResponse)

type LibraryResource ¶

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

LibraryResource defines the resource implementation.

func (*LibraryResource) Configure ¶

func (*LibraryResource) Create ¶

func (*LibraryResource) Delete ¶

func (*LibraryResource) ImportState ¶

func (*LibraryResource) Metadata ¶

func (*LibraryResource) Read ¶

func (*LibraryResource) Schema ¶

func (*LibraryResource) Update ¶

type LibraryResourceModel ¶

type LibraryResourceModel struct {
	Description   types.String                             `tfsdk:"description"`
	ID            types.String                             `tfsdk:"id"`
	ReadOnly      types.Bool                               `tfsdk:"read_only"`
	Result        tfTypes.LibrariesV1LibraryEntityExpanded `tfsdk:"result"`
	SourceControl *tfTypes.LibrariesV1SourceControlConfig  `tfsdk:"source_control"`
}

LibraryResourceModel describes the resource data model.

func (*LibraryResourceModel) RefreshFromSharedLibrariesV1LibraryResponse ¶

func (r *LibraryResourceModel) RefreshFromSharedLibrariesV1LibraryResponse(resp *shared.LibrariesV1LibraryResponse)

func (*LibraryResourceModel) ToSharedLibrariesV1CreateLibraryRequest ¶

func (r *LibraryResourceModel) ToSharedLibrariesV1CreateLibraryRequest() *shared.LibrariesV1CreateLibraryRequest

type PolicyDataSource ¶

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

PolicyDataSource is the data source implementation.

func (*PolicyDataSource) Configure ¶

func (*PolicyDataSource) Metadata ¶

Metadata returns the data source type name.

func (*PolicyDataSource) Read ¶

func (*PolicyDataSource) Schema ¶

Schema defines the schema for the data source.

type PolicyDataSourceModel ¶

type PolicyDataSourceModel struct {
	Dependencies types.Bool   `tfsdk:"dependencies"`
	Policy       types.String `tfsdk:"policy"`
	RequestID    types.String `tfsdk:"request_id"`
	Result       types.String `tfsdk:"result"`
}

PolicyDataSourceModel describes the data model.

func (*PolicyDataSourceModel) RefreshFromSharedPoliciesV1PolicyGetResponse ¶

func (r *PolicyDataSourceModel) RefreshFromSharedPoliciesV1PolicyGetResponse(resp *shared.PoliciesV1PolicyGetResponse)

type PolicyResource ¶

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

PolicyResource defines the resource implementation.

func (*PolicyResource) Configure ¶

func (*PolicyResource) Create ¶

func (*PolicyResource) Delete ¶

func (*PolicyResource) ImportState ¶

func (*PolicyResource) Metadata ¶

func (*PolicyResource) Read ¶

func (*PolicyResource) Schema ¶

func (*PolicyResource) Update ¶

type PolicyResourceModel ¶

type PolicyResourceModel struct {
	IfNoneMatch types.String             `tfsdk:"if_none_match"`
	Modules     map[string]types.String  `tfsdk:"modules"`
	Policy      types.String             `tfsdk:"policy"`
	RequestID   types.String             `tfsdk:"request_id"`
	Result      types.String             `tfsdk:"result"`
	Signature   *tfTypes.CryptoSignature `tfsdk:"signature"`
}

PolicyResourceModel describes the resource data model.

func (*PolicyResourceModel) RefreshFromSharedPoliciesV1PolicyGetResponse ¶

func (r *PolicyResourceModel) RefreshFromSharedPoliciesV1PolicyGetResponse(resp *shared.PoliciesV1PolicyGetResponse)

func (*PolicyResourceModel) RefreshFromSharedPoliciesV1PolicyPutResponse ¶

func (r *PolicyResourceModel) RefreshFromSharedPoliciesV1PolicyPutResponse(resp *shared.PoliciesV1PolicyPutResponse)

func (*PolicyResourceModel) ToSharedPoliciesV1PoliciesPutRequest ¶

func (r *PolicyResourceModel) ToSharedPoliciesV1PoliciesPutRequest() *shared.PoliciesV1PoliciesPutRequest

type SecretDataSource ¶

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

SecretDataSource is the data source implementation.

func (*SecretDataSource) Configure ¶

func (*SecretDataSource) Metadata ¶

Metadata returns the data source type name.

func (*SecretDataSource) Read ¶

func (*SecretDataSource) Schema ¶

Schema defines the schema for the data source.

type SecretDataSourceModel ¶

type SecretDataSourceModel struct {
	Description types.String             `tfsdk:"description"`
	ID          types.String             `tfsdk:"id"`
	Metadata    tfTypes.MetaV2ObjectMeta `tfsdk:"metadata"`
	Name        types.String             `tfsdk:"name"`
	RequestID   types.String             `tfsdk:"request_id"`
	SecretID    types.String             `tfsdk:"secret_id"`
}

SecretDataSourceModel describes the data model.

func (*SecretDataSourceModel) RefreshFromSharedSecretsV1Secret ¶

func (r *SecretDataSourceModel) RefreshFromSharedSecretsV1Secret(resp *shared.SecretsV1Secret)

type SecretResource ¶

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

SecretResource defines the resource implementation.

func (*SecretResource) Configure ¶

func (*SecretResource) Create ¶

func (*SecretResource) Delete ¶

func (*SecretResource) ImportState ¶

func (*SecretResource) Metadata ¶

func (*SecretResource) Read ¶

func (*SecretResource) Schema ¶

func (*SecretResource) Update ¶

type SecretResourceModel ¶

type SecretResourceModel struct {
	Description types.String             `tfsdk:"description"`
	ID          types.String             `tfsdk:"id"`
	IfNoneMatch types.String             `tfsdk:"if_none_match"`
	Metadata    tfTypes.MetaV2ObjectMeta `tfsdk:"metadata"`
	Name        types.String             `tfsdk:"name"`
	RequestID   types.String             `tfsdk:"request_id"`
	Secret      types.String             `tfsdk:"secret"`
	SecretID    types.String             `tfsdk:"secret_id"`
}

SecretResourceModel describes the resource data model.

func (*SecretResourceModel) RefreshFromSharedSecretsV1Secret ¶

func (r *SecretResourceModel) RefreshFromSharedSecretsV1Secret(resp *shared.SecretsV1Secret)

func (*SecretResourceModel) RefreshFromSharedSecretsV1SecretsPutResponse ¶

func (r *SecretResourceModel) RefreshFromSharedSecretsV1SecretsPutResponse(resp *shared.SecretsV1SecretsPutResponse)

func (*SecretResourceModel) ToSharedSecretsV1SecretsPutRequest ¶

func (r *SecretResourceModel) ToSharedSecretsV1SecretsPutRequest() *shared.SecretsV1SecretsPutRequest

type StackDataSource ¶

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

StackDataSource is the data source implementation.

func (*StackDataSource) Configure ¶

func (*StackDataSource) Metadata ¶

Metadata returns the data source type name.

func (*StackDataSource) Read ¶

func (*StackDataSource) Schema ¶

Schema defines the schema for the data source.

type StackDataSourceModel ¶

type StackDataSourceModel struct {
	Authz             *tfTypes.SystemsV1AuthzConfig           `tfsdk:"authz"`
	Datasources       []tfTypes.SystemsV1DatasourceConfig     `tfsdk:"datasources"`
	Description       types.String                            `tfsdk:"description"`
	Errors            map[string]tfTypes.SystemsV1AgentErrors `tfsdk:"errors"`
	ID                types.String                            `tfsdk:"id"`
	MatchingSystems   []types.String                          `tfsdk:"matching_systems"`
	Metadata          tfTypes.MetaV2ObjectMeta                `tfsdk:"metadata"`
	MigrationHistory  []tfTypes.SystemsV1MigrationRecord      `tfsdk:"migration_history"`
	MinimumOpaVersion types.String                            `tfsdk:"minimum_opa_version"`
	Name              types.String                            `tfsdk:"name"`
	Policies          []tfTypes.SystemsV1PolicyConfig         `tfsdk:"policies"`
	ReadOnly          types.Bool                              `tfsdk:"read_only"`
	SourceControl     *tfTypes.StacksV1SourceControlConfig    `tfsdk:"source_control"`
	Status            types.String                            `tfsdk:"status"`
	Type              types.String                            `tfsdk:"type"`
	TypeParameters    *tfTypes.TypeParameters                 `tfsdk:"type_parameters"`
}

StackDataSourceModel describes the data model.

func (*StackDataSourceModel) RefreshFromSharedStacksV1StackConfig ¶

func (r *StackDataSourceModel) RefreshFromSharedStacksV1StackConfig(resp shared.StacksV1StackConfig)

type StackResource ¶

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

StackResource defines the resource implementation.

func (*StackResource) Configure ¶

func (*StackResource) Create ¶

func (*StackResource) Delete ¶

func (*StackResource) ImportState ¶

func (*StackResource) Metadata ¶

func (*StackResource) Read ¶

func (*StackResource) Schema ¶

func (*StackResource) Update ¶

type StackResourceModel ¶

type StackResourceModel struct {
	Authz             *tfTypes.SystemsV1AuthzConfig           `tfsdk:"authz"`
	Datasources       []tfTypes.SystemsV1DatasourceConfig     `tfsdk:"datasources"`
	Description       types.String                            `tfsdk:"description"`
	Errors            map[string]tfTypes.SystemsV1AgentErrors `tfsdk:"errors"`
	ID                types.String                            `tfsdk:"id"`
	MatchingSystems   []types.String                          `tfsdk:"matching_systems"`
	Metadata          tfTypes.MetaV2ObjectMeta                `tfsdk:"metadata"`
	MigrationHistory  []tfTypes.SystemsV1MigrationRecord      `tfsdk:"migration_history"`
	MinimumOpaVersion types.String                            `tfsdk:"minimum_opa_version"`
	Name              types.String                            `tfsdk:"name"`
	Policies          []tfTypes.SystemsV1PolicyConfig         `tfsdk:"policies"`
	ReadOnly          types.Bool                              `tfsdk:"read_only"`
	SourceControl     *tfTypes.StacksV1SourceControlConfig    `tfsdk:"source_control"`
	Status            types.String                            `tfsdk:"status"`
	Type              types.String                            `tfsdk:"type"`
	TypeParameters    *tfTypes.TypeParameters                 `tfsdk:"type_parameters"`
}

StackResourceModel describes the resource data model.

func (*StackResourceModel) RefreshFromSharedStacksV1StackConfig ¶

func (r *StackResourceModel) RefreshFromSharedStacksV1StackConfig(resp shared.StacksV1StackConfig)

func (*StackResourceModel) RefreshFromSharedStacksV1StacksPutResponse ¶

func (r *StackResourceModel) RefreshFromSharedStacksV1StacksPutResponse(resp *shared.StacksV1StacksPutResponse)

func (*StackResourceModel) ToSharedStacksV1StacksPostRequest ¶

func (r *StackResourceModel) ToSharedStacksV1StacksPostRequest() *shared.StacksV1StacksPostRequest

func (*StackResourceModel) ToSharedStacksV1StacksPutRequest ¶

func (r *StackResourceModel) ToSharedStacksV1StacksPutRequest() *shared.StacksV1StacksPutRequest

type StyraProvider ¶

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

func (*StyraProvider) Configure ¶

func (*StyraProvider) DataSources ¶

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

func (*StyraProvider) Metadata ¶

func (*StyraProvider) Resources ¶

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

func (*StyraProvider) Schema ¶

type StyraProviderModel ¶

type StyraProviderModel struct {
	ServerURL types.String `tfsdk:"server_url"`
	Bearer    types.String `tfsdk:"bearer"`
}

StyraProviderModel describes the provider data model.

type SystemDataSource ¶

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

SystemDataSource is the data source implementation.

func (*SystemDataSource) Configure ¶

func (*SystemDataSource) Metadata ¶

Metadata returns the data source type name.

func (*SystemDataSource) Read ¶

func (*SystemDataSource) Schema ¶

Schema defines the schema for the data source.

type SystemDataSourceModel ¶

type SystemDataSourceModel struct {
	ID        types.String                  `tfsdk:"id"`
	RequestID types.String                  `tfsdk:"request_id"`
	Result    tfTypes.SystemsV1SystemConfig `tfsdk:"result"`
}

SystemDataSourceModel describes the data model.

func (*SystemDataSourceModel) RefreshFromSharedSystemsV1SystemsGetResponse ¶

func (r *SystemDataSourceModel) RefreshFromSharedSystemsV1SystemsGetResponse(resp *shared.SystemsV1SystemsGetResponse)

type SystemResource ¶

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

SystemResource defines the resource implementation.

func (*SystemResource) Configure ¶

func (*SystemResource) Create ¶

func (*SystemResource) Delete ¶

func (*SystemResource) ImportState ¶

func (*SystemResource) Metadata ¶

func (*SystemResource) Read ¶

func (*SystemResource) Schema ¶

func (*SystemResource) Update ¶

type SystemResourceModel ¶

type SystemResourceModel struct {
	Authz                 tfTypes.SystemsV1AuthzConfig                     `tfsdk:"authz"`
	BundleDownload        *tfTypes.SystemsV1BundleDownloadConfig           `tfsdk:"bundle_download"`
	BundleRegistry        *tfTypes.SystemsV1BundleRegistryConfig           `tfsdk:"bundle_registry"`
	ContextBundleDataOnly types.Bool                                       `tfsdk:"context_bundle_data_only"`
	ContextBundleRoots    []types.String                                   `tfsdk:"context_bundle_roots"`
	Datasources           []tfTypes.SystemsV1DatasourceConfig              `tfsdk:"datasources"`
	DecisionMappings      map[string]tfTypes.SystemsV1RuleDecisionMappings `tfsdk:"decision_mappings"`
	DeploymentParameters  *tfTypes.SystemsV1SystemDeploymentParameters     `tfsdk:"deployment_parameters"`
	Description           types.String                                     `tfsdk:"description"`
	ErrorSetting          types.String                                     `tfsdk:"error_setting"`
	Errors                map[string]tfTypes.SystemsV1AgentErrors          `tfsdk:"errors"`
	ExternalBundles       *tfTypes.SystemsV1ExternalBundleConfig           `tfsdk:"external_bundles"`
	ExternalID            types.String                                     `tfsdk:"external_id"`
	FilterStacks          types.Bool                                       `tfsdk:"filter_stacks"`
	ID                    types.String                                     `tfsdk:"id"`
	KafkaTopic            types.String                                     `tfsdk:"kafka_topic"`
	MatchingStacks        []types.String                                   `tfsdk:"matching_stacks"`
	Metadata              tfTypes.MetaV2ObjectMeta                         `tfsdk:"metadata"`
	MigrationHistory      []tfTypes.SystemsV1MigrationRecord               `tfsdk:"migration_history"`
	MinimumOpaVersion     types.String                                     `tfsdk:"minimum_opa_version"`
	MockOpaEnabled        types.Bool                                       `tfsdk:"mock_opa_enabled"`
	Name                  types.String                                     `tfsdk:"name"`
	Policies              []tfTypes.SystemsV1PolicyConfig                  `tfsdk:"policies"`
	ReadOnly              types.Bool                                       `tfsdk:"read_only"`
	Recursive             types.String                                     `tfsdk:"recursive"`
	RequestID             types.String                                     `tfsdk:"request_id"`
	Result                tfTypes.SystemsV1SystemConfig                    `tfsdk:"result"`
	SourceControl         *tfTypes.GitV1SourceControlConfig                `tfsdk:"source_control"`
	Status                types.String                                     `tfsdk:"status"`
	Tokens                []tfTypes.TokensV1Token                          `tfsdk:"tokens"`
	Type                  types.String                                     `tfsdk:"type"`
	TypeParameters        *tfTypes.TypeParameters                          `tfsdk:"type_parameters"`
	Uninstall             map[string]types.String                          `tfsdk:"uninstall"`
}

SystemResourceModel describes the resource data model.

func (*SystemResourceModel) RefreshFromSharedSystemsV1SystemConfig ¶

func (r *SystemResourceModel) RefreshFromSharedSystemsV1SystemConfig(resp shared.SystemsV1SystemConfig)

func (*SystemResourceModel) RefreshFromSharedSystemsV1SystemsGetResponse ¶

func (r *SystemResourceModel) RefreshFromSharedSystemsV1SystemsGetResponse(resp *shared.SystemsV1SystemsGetResponse)

func (*SystemResourceModel) ToSharedSystemsV1SystemsPostRequest ¶

func (r *SystemResourceModel) ToSharedSystemsV1SystemsPostRequest() *shared.SystemsV1SystemsPostRequest

func (*SystemResourceModel) ToSharedSystemsV1SystemsPutRequest ¶

func (r *SystemResourceModel) ToSharedSystemsV1SystemsPutRequest() *shared.SystemsV1SystemsPutRequest

Directories ¶

Path Synopsis
Package reflect is a forked version of https://github.com/hashicorp/terraform-plugin-framework/tree/main/internal/reflect that has been modified to support speakeasy's terraform generator.
Package reflect is a forked version of https://github.com/hashicorp/terraform-plugin-framework/tree/main/internal/reflect that has been modified to support speakeasy's terraform generator.

Jump to

Keyboard shortcuts

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