Documentation ¶
Index ¶
- Constants
- func New(version string) func() provider.Provider
- func NewOnePasswordItemDataSource() datasource.DataSource
- func NewOnePasswordItemResource() resource.Resource
- func NewOnePasswordVaultDataSource() datasource.DataSource
- func ValueModifier() planmodifier.String
- type OnePasswordItemDataSource
- func (d *OnePasswordItemDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *OnePasswordItemDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *OnePasswordItemDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *OnePasswordItemDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type OnePasswordItemDataSourceModel
- type OnePasswordItemFieldModel
- type OnePasswordItemFileModel
- type OnePasswordItemResource
- func (r *OnePasswordItemResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *OnePasswordItemResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *OnePasswordItemResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *OnePasswordItemResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *OnePasswordItemResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *OnePasswordItemResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *OnePasswordItemResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *OnePasswordItemResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type OnePasswordItemResourceFieldModel
- type OnePasswordItemResourceModel
- type OnePasswordItemResourceSectionModel
- type OnePasswordItemSectionModel
- type OnePasswordProvider
- func (p *OnePasswordProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *OnePasswordProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *OnePasswordProvider) Functions(ctx context.Context) []func() function.Function
- func (p *OnePasswordProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *OnePasswordProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *OnePasswordProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type OnePasswordProviderModel
- type OnePasswordVaultDataSource
- func (d *OnePasswordVaultDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *OnePasswordVaultDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *OnePasswordVaultDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *OnePasswordVaultDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type OnePasswordVaultDataSourceModel
- type PasswordRecipeModel
Constants ¶
View Source
const (
OTPFieldIDPrefix = "TOTP_"
)
Variables ¶
This section is empty.
Functions ¶
func NewOnePasswordItemDataSource ¶
func NewOnePasswordItemDataSource() datasource.DataSource
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 (d *OnePasswordItemDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*OnePasswordItemDataSource) Metadata ¶
func (d *OnePasswordItemDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*OnePasswordItemDataSource) Read ¶
func (d *OnePasswordItemDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*OnePasswordItemDataSource) Schema ¶
func (d *OnePasswordItemDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
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 OnePasswordItemResource ¶
type OnePasswordItemResource struct {
// contains filtered or unexported fields
}
OnePasswordItemResource defines the resource implementation.
func (*OnePasswordItemResource) Configure ¶
func (r *OnePasswordItemResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*OnePasswordItemResource) Create ¶
func (r *OnePasswordItemResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*OnePasswordItemResource) Delete ¶
func (r *OnePasswordItemResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*OnePasswordItemResource) ImportState ¶
func (r *OnePasswordItemResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*OnePasswordItemResource) Metadata ¶
func (r *OnePasswordItemResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*OnePasswordItemResource) Read ¶
func (r *OnePasswordItemResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*OnePasswordItemResource) Schema ¶
func (r *OnePasswordItemResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*OnePasswordItemResource) Update ¶
func (r *OnePasswordItemResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
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 (p *OnePasswordProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
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 (p *OnePasswordProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*OnePasswordProvider) Resources ¶
func (p *OnePasswordProvider) Resources(ctx context.Context) []func() resource.Resource
func (*OnePasswordProvider) Schema ¶
func (p *OnePasswordProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
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 (d *OnePasswordVaultDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*OnePasswordVaultDataSource) Metadata ¶
func (d *OnePasswordVaultDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*OnePasswordVaultDataSource) Read ¶
func (d *OnePasswordVaultDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*OnePasswordVaultDataSource) Schema ¶
func (d *OnePasswordVaultDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
Click to show internal directories.
Click to hide internal directories.