provider

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MPL-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ValuePatternRegex *regexp.Regexp
View Source
var ValuesPatternRegex *regexp.Regexp

Functions

func New

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

func NewIdentityDataSource

func NewIdentityDataSource() datasource.DataSource

func NewIdentityResource

func NewIdentityResource() resource.Resource

func NewKeyPairResource added in v0.1.0

func NewKeyPairResource() resource.Resource

func NewPublicKeyDataSource added in v0.1.0

func NewPublicKeyDataSource() datasource.DataSource

func NewValueDataSource

func NewValueDataSource() datasource.DataSource

func NewValueResource

func NewValueResource() resource.Resource

func NewVaultDataSource

func NewVaultDataSource() datasource.DataSource

func NewVaultResource

func NewVaultResource() resource.Resource

Types

type IdentityDataSource

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

func (*IdentityDataSource) Configure

func (*IdentityDataSource) Metadata

func (*IdentityDataSource) Read

func (*IdentityDataSource) Schema

type IdentityDataSourceModel

type IdentityDataSourceModel struct {
	Id         types.String `tfsdk:"id"`
	Name       types.String `tfsdk:"name"`
	PublicKey  types.String `tfsdk:"public_key"`
	PrivateKey types.String `tfsdk:"private_key"`
	VaultID    types.String `tfsdk:"vault_id"`
}

type IdentityResource

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

IdentityResource defines the resource implementation.

func (*IdentityResource) Configure

func (*IdentityResource) Create

func (*IdentityResource) Delete

func (*IdentityResource) ImportState

func (*IdentityResource) Metadata

func (*IdentityResource) Read

func (*IdentityResource) Schema

func (*IdentityResource) Update

type IdentityResourceModel

type IdentityResourceModel struct {
	Id          types.String          `tfsdk:"id"`
	Name        types.String          `tfsdk:"name"`
	LastUpdated types.String          `tfsdk:"last_updated"`
	PublicKey   types.String          `tfsdk:"public_key"`
	VaultID     types.String          `tfsdk:"vault_id"`
	CreatorKey  types.String          `tfsdk:"creator_key"`
	Rights      []RightsResourceModel `tfsdk:"rights"`
}

ExampleResourceModel describes the resource data model.

type KeyPairResource added in v0.1.0

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

func (*KeyPairResource) Configure added in v0.1.0

func (*KeyPairResource) Create added in v0.1.0

func (*KeyPairResource) Delete added in v0.1.0

func (*KeyPairResource) Metadata added in v0.1.0

func (*KeyPairResource) Read added in v0.1.0

func (*KeyPairResource) Schema added in v0.1.0

func (*KeyPairResource) Update added in v0.1.0

type KeyPairResourceModel added in v0.1.0

type KeyPairResourceModel struct {
	PublicKey   types.String `tfsdk:"public_key"`
	PrivateKey  types.String `tfsdk:"private_key"`
	LastUpdated types.String `tfsdk:"last_updated"`
}

type PublicKeyDataSource added in v0.1.0

type PublicKeyDataSource struct {
}

func (*PublicKeyDataSource) Metadata added in v0.1.0

func (*PublicKeyDataSource) Read added in v0.1.0

func (*PublicKeyDataSource) Schema added in v0.1.0

type PublicKeyDataSourceModel added in v0.1.0

type PublicKeyDataSourceModel struct {
	PublicKey types.String `tfsdk:"public_key"`
}

type RightsResourceModel

type RightsResourceModel struct {
	RightValuePattern types.String `tfsdk:"right_value_pattern"`
}

type ValueDataSource

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

func (*ValueDataSource) Configure

func (*ValueDataSource) Metadata

func (*ValueDataSource) Read

func (*ValueDataSource) Schema

type ValueDataSourceModel

type ValueDataSourceModel struct {
	Id         types.String `tfsdk:"id"`
	VaultID    types.String `tfsdk:"vault_id"`
	Name       types.String `tfsdk:"name"`
	Passframe  types.String `tfsdk:"passframe"`
	Type       types.String `tfsdk:"type"`
	CreatorKey types.String `tfsdk:"creator_key"`
}

type ValueResource

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

ValueResource defines the resource implementation.

func (*ValueResource) Configure

func (*ValueResource) Create

func (*ValueResource) Delete

func (*ValueResource) ImportState

func (*ValueResource) Metadata

func (*ValueResource) Read

func (*ValueResource) Schema

func (*ValueResource) Update

type ValueResourceModel

type ValueResourceModel struct {
	Id          types.String `tfsdk:"id"`
	VaultID     types.String `tfsdk:"vault_id"`
	LastUpdated types.String `tfsdk:"last_updated"`
	Name        types.String `tfsdk:"name"`
	Passframe   types.String `tfsdk:"passframe"`
	Type        types.String `tfsdk:"type"`
	CreatorKey  types.String `tfsdk:"creator_key"`
}

ExampleResourceModel describes the resource data model.

type VaultCloud

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

VaultCloud defines the provider implementation.

func (*VaultCloud) Configure

func (*VaultCloud) DataSources

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

func (*VaultCloud) Metadata

func (*VaultCloud) Resources

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

func (*VaultCloud) Schema

type VaultCloudProviderModel

type VaultCloudProviderModel struct {
	Endpoint types.String `tfsdk:"endpoint"`
}

VaultCloudProviderModel describes the provider data model.

type VaultDataSource

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

func (*VaultDataSource) Configure

func (*VaultDataSource) Metadata

func (*VaultDataSource) Read

func (*VaultDataSource) Schema

type VaultDataSourceModel

type VaultDataSourceModel struct {
	Id types.String `tfsdk:"id"`
}

type VaultResource

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

VaultResource defines the resource implementation.

func (*VaultResource) Configure

func (*VaultResource) Create

func (*VaultResource) Delete

func (*VaultResource) ImportState

func (*VaultResource) Metadata

func (*VaultResource) Read

func (*VaultResource) Schema

func (*VaultResource) Update

type VaultResourceModel

type VaultResourceModel struct {
	Id                  types.String `tfsdk:"id"`
	Token               types.String `tfsdk:"token"`
	Name                types.String `tfsdk:"name"`
	LastUpdated         types.String `tfsdk:"last_updated"`
	Operator_Id         types.String `tfsdk:"operator_id"`
	Operator_PublicKey  types.String `tfsdk:"operator_public_key"`
	Operator_PrivateKey types.String `tfsdk:"operator_private_key"`
	Operator_Name       types.String `tfsdk:"operator_name"`
}

ExampleResourceModel describes the resource data model.

Jump to

Keyboard shortcuts

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