provider

package
v2.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: MIT Imports: 45 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OTPFieldIDPrefix = "TOTP_"
)

Variables

This section is empty.

Functions

func New

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

func NewOnePasswordItemDataSource

func NewOnePasswordItemDataSource() datasource.DataSource

func NewOnePasswordItemResource

func NewOnePasswordItemResource() resource.Resource

func NewOnePasswordVaultDataSource

func NewOnePasswordVaultDataSource() datasource.DataSource

func ValueModifier

func ValueModifier() planmodifier.String

Types

type OnePasswordItemDataSource

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

OnePasswordItemDataSource defines the data source implementation.

func (*OnePasswordItemDataSource) Configure

func (*OnePasswordItemDataSource) Metadata

func (*OnePasswordItemDataSource) Read

func (*OnePasswordItemDataSource) Schema

type OnePasswordItemDataSourceModel

type OnePasswordItemDataSourceModel struct {
	ID         types.String                  `tfsdk:"id"`
	Vault      types.String                  `tfsdk:"vault"`
	UUID       types.String                  `tfsdk:"uuid"`
	Title      types.String                  `tfsdk:"title"`
	Category   types.String                  `tfsdk:"category"`
	URL        types.String                  `tfsdk:"url"`
	Hostname   types.String                  `tfsdk:"hostname"`
	Database   types.String                  `tfsdk:"database"`
	Port       types.String                  `tfsdk:"port"`
	Type       types.String                  `tfsdk:"type"`
	Tags       types.List                    `tfsdk:"tags"`
	Username   types.String                  `tfsdk:"username"`
	Password   types.String                  `tfsdk:"password"`
	NoteValue  types.String                  `tfsdk:"note_value"`
	Credential types.String                  `tfsdk:"credential"`
	PublicKey  types.String                  `tfsdk:"public_key"`
	PrivateKey types.String                  `tfsdk:"private_key"`
	Section    []OnePasswordItemSectionModel `tfsdk:"section"`
	File       []OnePasswordItemFileModel    `tfsdk:"file"`
}

OnePasswordItemDataSourceModel describes the data source data model.

type OnePasswordItemFieldModel

type OnePasswordItemFieldModel struct {
	ID      types.String `tfsdk:"id"`
	Label   types.String `tfsdk:"label"`
	Purpose types.String `tfsdk:"purpose"`
	Type    types.String `tfsdk:"type"`
	Value   types.String `tfsdk:"value"`
}

type OnePasswordItemFileModel

type OnePasswordItemFileModel struct {
	ID            types.String `tfsdk:"id"`
	Name          types.String `tfsdk:"name"`
	Content       types.String `tfsdk:"content"`
	ContentBase64 types.String `tfsdk:"content_base64"`
}

type OnePasswordItemResource

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

OnePasswordItemResource defines the resource implementation.

func (*OnePasswordItemResource) Configure

func (*OnePasswordItemResource) Create

func (*OnePasswordItemResource) Delete

func (*OnePasswordItemResource) ImportState

func (*OnePasswordItemResource) Metadata

func (*OnePasswordItemResource) Read

func (*OnePasswordItemResource) Schema

func (*OnePasswordItemResource) Update

type OnePasswordItemResourceFieldModel

type OnePasswordItemResourceFieldModel struct {
	ID      types.String          `tfsdk:"id"`
	Label   types.String          `tfsdk:"label"`
	Purpose types.String          `tfsdk:"purpose"`
	Type    types.String          `tfsdk:"type"`
	Value   types.String          `tfsdk:"value"`
	Recipe  []PasswordRecipeModel `tfsdk:"password_recipe"`
}

type OnePasswordItemResourceModel

type OnePasswordItemResourceModel struct {
	ID        types.String                          `tfsdk:"id"`
	UUID      types.String                          `tfsdk:"uuid"`
	Vault     types.String                          `tfsdk:"vault"`
	Category  types.String                          `tfsdk:"category"`
	Title     types.String                          `tfsdk:"title"`
	URL       types.String                          `tfsdk:"url"`
	Hostname  types.String                          `tfsdk:"hostname"`
	Database  types.String                          `tfsdk:"database"`
	Port      types.String                          `tfsdk:"port"`
	Type      types.String                          `tfsdk:"type"`
	Tags      types.List                            `tfsdk:"tags"`
	Username  types.String                          `tfsdk:"username"`
	Password  types.String                          `tfsdk:"password"`
	NoteValue types.String                          `tfsdk:"note_value"`
	Section   []OnePasswordItemResourceSectionModel `tfsdk:"section"`
	Recipe    []PasswordRecipeModel                 `tfsdk:"password_recipe"`
}

OnePasswordItemResourceModel describes the resource data model.

type OnePasswordItemResourceSectionModel

type OnePasswordItemResourceSectionModel struct {
	ID    types.String                        `tfsdk:"id"`
	Label types.String                        `tfsdk:"label"`
	Field []OnePasswordItemResourceFieldModel `tfsdk:"field"`
}

type OnePasswordItemSectionModel

type OnePasswordItemSectionModel struct {
	ID    types.String                `tfsdk:"id"`
	Label types.String                `tfsdk:"label"`
	Field []OnePasswordItemFieldModel `tfsdk:"field"`
	File  []OnePasswordItemFileModel  `tfsdk:"file"`
}

type OnePasswordProvider

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

OnePasswordProvider defines the provider implementation.

func (*OnePasswordProvider) Configure

func (*OnePasswordProvider) DataSources

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

func (*OnePasswordProvider) Functions

func (p *OnePasswordProvider) Functions(ctx context.Context) []func() function.Function

func (*OnePasswordProvider) Metadata

func (*OnePasswordProvider) Resources

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

func (*OnePasswordProvider) Schema

type OnePasswordProviderModel

type OnePasswordProviderModel struct {
	ConnectHost         types.String `tfsdk:"url"`
	ConnectToken        types.String `tfsdk:"token"`
	ServiceAccountToken types.String `tfsdk:"service_account_token"`
	Account             types.String `tfsdk:"account"`
	OpCLIPath           types.String `tfsdk:"op_cli_path"`
}

OnePasswordProviderModel describes the provider data model.

type OnePasswordVaultDataSource

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

OnePasswordVaultDataSource defines the data source implementation.

func (*OnePasswordVaultDataSource) Configure

func (*OnePasswordVaultDataSource) Metadata

func (*OnePasswordVaultDataSource) Read

func (*OnePasswordVaultDataSource) Schema

type OnePasswordVaultDataSourceModel

type OnePasswordVaultDataSourceModel struct {
	ID          types.String `tfsdk:"id"`
	UUID        types.String `tfsdk:"uuid"`
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
}

OnePasswordVaultDataSourceModel describes the data source data model.

type PasswordRecipeModel

type PasswordRecipeModel struct {
	Length  types.Int64 `tfsdk:"length"`
	Letters types.Bool  `tfsdk:"letters"`
	Digits  types.Bool  `tfsdk:"digits"`
	Symbols types.Bool  `tfsdk:"symbols"`
}

Jump to

Keyboard shortcuts

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