provider

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: MPL-2.0 Imports: 19 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 NewCredentialDataSource

func NewCredentialDataSource() datasource.DataSource

func NewCredentialResource

func NewCredentialResource() resource.Resource

func NewFolderDataSource

func NewFolderDataSource() datasource.DataSource

func NewFolderResource

func NewFolderResource() resource.Resource

func NewFolderRootDataSource

func NewFolderRootDataSource() datasource.DataSource

func NewSearchDataSource

func NewSearchDataSource() datasource.DataSource

Types

type CredentialDataSource

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

func (*CredentialDataSource) Configure

func (CredentialDataSource) Metadata

func (*CredentialDataSource) Read

func (*CredentialDataSource) Schema

type CredentialDataSourceModel

type CredentialDataSourceModel struct {
	Id           types.String `tfsdk:"id"`
	CredentialID types.String `tfsdk:"credential_id"`
	Tags         []models.Tag `tfsdk:"tags"`
	Name         types.String `tfsdk:"name"`
	Username     types.String `tfsdk:"username"`
	Password     types.String `tfsdk:"password"`
	Url          types.String `tfsdk:"url"`
	Notes        types.String `tfsdk:"notes"`
	FolderId     types.String `tfsdk:"folder_id"`
	Created      types.String `tfsdk:"created"`
	Modified     types.String `tfsdk:"modified"`
	Expires      types.String `tfsdk:"expires"`
}

type CredentialResource

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

func (*CredentialResource) Configure

func (*CredentialResource) Create

func (*CredentialResource) Delete

func (*CredentialResource) ImportState

func (*CredentialResource) Metadata

func (*CredentialResource) Read

func (*CredentialResource) Schema

func (*CredentialResource) Update

type CredentialResourceModel

type CredentialResourceModel struct {
	Id types.String `tfsdk:"id"`
	//Tags     []Tag        `tfsdk:"tags"`
	Name     types.String `tfsdk:"name"`
	Username types.String `tfsdk:"username"`
	Password types.String `tfsdk:"password"`
	Url      types.String `tfsdk:"url"`
	Notes    types.String `tfsdk:"notes"`
	FolderId types.String `tfsdk:"folder_id"`
	Created  types.String `tfsdk:"created"`
	Modified types.String `tfsdk:"modified"`
	Expires  types.String `tfsdk:"expires"`
}

type FolderDataSource

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

func (*FolderDataSource) Configure

func (FolderDataSource) Metadata

func (*FolderDataSource) Read

func (*FolderDataSource) Schema

type FolderDataSourceModel

type FolderDataSourceModel struct {
	Id          types.String             `tfsdk:"id"`
	FolderID    types.String             `tfsdk:"folder_id"`
	Name        types.String             `tfsdk:"name"`
	ParentID    types.String             `tfsdk:"parent_id"`
	Credentials []models.Credential      `tfsdk:"credentials"`
	Children    []models.CredentialGroup `tfsdk:"children"`
	Tags        []models.Tag             `tfsdk:"tags"`
	Notes       types.String             `tfsdk:"notes"`
	Created     types.String             `tfsdk:"created"`
	Modified    types.String             `tfsdk:"modified"`
	Expires     types.String             `tfsdk:"expires"`
}

type FolderResource

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

ExampleResource defines the resource implementation.

func (*FolderResource) Configure

func (*FolderResource) Create

func (*FolderResource) Delete

func (*FolderResource) ImportState

func (*FolderResource) Metadata

func (*FolderResource) Read

func (*FolderResource) Schema

func (*FolderResource) Update

type FolderResourceModel

type FolderResourceModel struct {
	Id       types.String `tfsdk:"id"`
	Name     types.String `tfsdk:"name"`
	ParentID types.String `tfsdk:"parent_id"`
	Notes    types.String `tfsdk:"notes"`
}

ExampleResourceModel describes the resource data model.

type FolderRootDataSource

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

func (*FolderRootDataSource) Configure

func (FolderRootDataSource) Metadata

func (*FolderRootDataSource) Read

func (*FolderRootDataSource) Schema

type FolderRootDataSourceModel

type FolderRootDataSourceModel struct {
	ID types.String `tfsdk:"id"`
}

type PleasantpasswordProvider

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

func (*PleasantpasswordProvider) Configure

func (*PleasantpasswordProvider) DataSources

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

func (*PleasantpasswordProvider) Metadata

func (*PleasantpasswordProvider) Resources

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

func (*PleasantpasswordProvider) Schema

type PleasantpasswordProviderModel

type PleasantpasswordProviderModel struct {
	ServerURL      types.String `tfsdk:"server_url"`
	Username       types.String `tfsdk:"username"`
	Password       types.String `tfsdk:"password"`
	Allow_insecure types.Bool   `tfsdk:"allow_insecure"`
}

type ProviderClient

type ProviderClient struct {
	Client PPSClient.APIClient
	Ctx    context.Context
}

type SearchDataSource

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

func (*SearchDataSource) Configure

func (SearchDataSource) Metadata

func (*SearchDataSource) Read

func (*SearchDataSource) Schema

type SearchDataSourceModel

type SearchDataSourceModel struct {
	Search      types.String                           `tfsdk:"search"`
	Credentials []models.V6CredentialSearchResult      `tfsdk:"credentials"`
	Folders     []models.V6CredentialGroupSearchResult `tfsdk:"folders"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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