Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewBorgRepoDataSource() datasource.DataSource
- func NewBorgRepoResource() resource.Resource
- func NewSshKeyDataSource() datasource.DataSource
- func NewSshKeyResource() resource.Resource
- type BorgBaseProvider
- func (p *BorgBaseProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *BorgBaseProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *BorgBaseProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *BorgBaseProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *BorgBaseProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type BorgBaseProviderModel
- type BorgRepoAddPayload
- type BorgRepoDataSource
- func (d *BorgRepoDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *BorgRepoDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *BorgRepoDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *BorgRepoDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type BorgRepoDeletePayload
- type BorgRepoEditPayload
- type BorgRepoModel
- type BorgRepoPayload
- type BorgRepoResource
- func (r *BorgRepoResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *BorgRepoResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *BorgRepoResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *BorgRepoResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *BorgRepoResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *BorgRepoResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *BorgRepoResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *BorgRepoResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type BorgReposPayload
- type CompactionModel
- type ServerModel
- type SshAddPayload
- type SshDeletePayload
- type SshKeyDataSource
- func (d *SshKeyDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *SshKeyDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *SshKeyDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *SshKeyDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type SshKeyModel
- type SshKeyPayload
- type SshKeyResource
- func (r *SshKeyResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *SshKeyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *SshKeyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *SshKeyResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *SshKeyResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *SshKeyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *SshKeyResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *SshKeyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type SshKeysPayload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBorgRepoDataSource ¶
func NewBorgRepoDataSource() datasource.DataSource
func NewBorgRepoResource ¶
func NewSshKeyDataSource ¶
func NewSshKeyDataSource() datasource.DataSource
func NewSshKeyResource ¶
Types ¶
type BorgBaseProvider ¶
type BorgBaseProvider struct {
// contains filtered or unexported fields
}
func (*BorgBaseProvider) Configure ¶
func (p *BorgBaseProvider) Configure( ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse, )
func (*BorgBaseProvider) DataSources ¶
func (p *BorgBaseProvider) DataSources( ctx context.Context, ) []func() datasource.DataSource
func (*BorgBaseProvider) Metadata ¶
func (p *BorgBaseProvider) Metadata( ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse, )
func (*BorgBaseProvider) Resources ¶
func (p *BorgBaseProvider) Resources( ctx context.Context, ) []func() resource.Resource
func (*BorgBaseProvider) Schema ¶
func (p *BorgBaseProvider) Schema( ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse, )
type BorgBaseProviderModel ¶
type BorgRepoAddPayload ¶
type BorgRepoAddPayload struct {
RepoAdded BorgRepoPayload `json:"repoAdded"`
}
type BorgRepoDataSource ¶
type BorgRepoDataSource struct {
// contains filtered or unexported fields
}
func (*BorgRepoDataSource) Configure ¶
func (d *BorgRepoDataSource) Configure( ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse, )
func (*BorgRepoDataSource) Metadata ¶
func (d *BorgRepoDataSource) Metadata( ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse, )
func (*BorgRepoDataSource) Read ¶
func (d *BorgRepoDataSource) Read( ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse, )
func (*BorgRepoDataSource) Schema ¶
func (d *BorgRepoDataSource) Schema( ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse, )
type BorgRepoDeletePayload ¶
type BorgRepoDeletePayload struct {
Ok bool `json:"ok"`
}
type BorgRepoEditPayload ¶
type BorgRepoEditPayload struct {
RepoEdited BorgRepoPayload `json:"repoEdited"`
}
type BorgRepoModel ¶
type BorgRepoModel struct { AlertDays types.Int64 `tfsdk:"alert_days"` AppendOnly types.Bool `tfsdk:"append_only"` AppendOnlyKeys types.List `tfsdk:"append_only_keys"` BorgVersion types.String `tfsdk:"borg_version"` Compaction types.Object `tfsdk:"compaction"` CreatedAt types.String `tfsdk:"created_at"` CurrentUsage types.Float64 `tfsdk:"current_usage"` Encryption types.String `tfsdk:"encryption"` Format types.String `tfsdk:"format"` FullAccessKeys types.List `tfsdk:"full_access_keys"` Id types.String `tfsdk:"id"` LastModified types.String `tfsdk:"last_modified"` Name types.String `tfsdk:"name"` Quota types.Int64 `tfsdk:"quota"` QuotaEnabled types.Bool `tfsdk:"quota_enabled"` Region types.String `tfsdk:"region"` RepoPath types.String `tfsdk:"repo_path"` RsyncKeys types.List `tfsdk:"rsync_keys"` Server types.Object `tfsdk:"server"` SftpEnabled types.Bool `tfsdk:"sftp_enabled"` }
type BorgRepoPayload ¶
type BorgRepoPayload struct { Id string `json:"id"` Name string `json:"name"` Server struct { Id string `json:"id"` Hostname string `json:"hostname"` Region string `json:"region"` Public bool `json:"public"` Location string `json:"location"` FingerprintRsa string `json:"fingerprintRsa"` FingerprintEcdsa string `json:"fingerprintEcdsa"` FingerprintEd25519 string `json:"fingerprintEd25519"` } `json:"server"` Quota int `json:"quota"` QuotaEnabled bool `json:"quotaEnabled"` AlertDays int `json:"alertDays"` Region string `json:"region"` Format string `json:"format"` BorgVersion string `json:"borgVersion"` ResticVersion string `json:"resticVersion"` Htpasswd string `json:"htpasswd"` AppendOnly bool `json:"appendOnly"` AppendOnlyKeys []string `json:"appendOnlyKeys"` FullAccessKeys []string `json:"fullAccessKeys"` RsyncKeys []string `json:"rsyncKeys"` SftpEnabled bool `json:"sftpEnabled"` Encryption string `json:"encryption"` CreatedAt string `json:"createdAt"` LastModified string `json:"lastModified"` CompactionEnabled bool `json:"compactionEnabled"` CompactionInterval int `json:"compactionInterval"` CompactionIntervalUnit string `json:"compactionIntervalUnit"` CompactionHour int `json:"compactionHour"` CompactionHourTimezone string `json:"compactionHourTimezone"` RepoPath string `json:"repoPath"` CurrentUsage float64 `json:"currentUsage"` }
type BorgRepoResource ¶
type BorgRepoResource struct {
// contains filtered or unexported fields
}
func (*BorgRepoResource) Configure ¶
func (r *BorgRepoResource) Configure( ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse, )
func (*BorgRepoResource) Create ¶
func (r *BorgRepoResource) Create( ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse, )
func (*BorgRepoResource) Delete ¶
func (r *BorgRepoResource) Delete( ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse, )
func (*BorgRepoResource) ImportState ¶
func (r *BorgRepoResource) ImportState( ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse, )
func (*BorgRepoResource) Metadata ¶
func (r *BorgRepoResource) Metadata( ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse, )
func (*BorgRepoResource) Read ¶
func (r *BorgRepoResource) Read( ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse, )
func (*BorgRepoResource) Schema ¶
func (r *BorgRepoResource) Schema( ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse, )
func (*BorgRepoResource) Update ¶
func (r *BorgRepoResource) Update( ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse, )
type BorgReposPayload ¶
type BorgReposPayload []BorgRepoPayload
type CompactionModel ¶
type ServerModel ¶
type ServerModel struct { FingerprintEcdsa types.String `tfsdk:"fingerprint_ecdsa"` FingerprintEd25519 types.String `tfsdk:"fingerprint_ed25519"` FingerprintRsa types.String `tfsdk:"fingerprint_rsa"` Hostname types.String `tfsdk:"hostname"` Id types.String `tfsdk:"id"` Location types.String `tfsdk:"location"` Public types.Bool `tfsdk:"public"` Region types.String `tfsdk:"region"` }
type SshAddPayload ¶
type SshAddPayload struct {
KeyAdded SshKeyPayload `json:"keyAdded"`
}
type SshDeletePayload ¶
type SshDeletePayload struct {
Ok bool `json:"ok"`
}
type SshKeyDataSource ¶
type SshKeyDataSource struct {
// contains filtered or unexported fields
}
func (*SshKeyDataSource) Configure ¶
func (d *SshKeyDataSource) Configure( ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse, )
func (*SshKeyDataSource) Metadata ¶
func (d *SshKeyDataSource) Metadata( ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse, )
func (*SshKeyDataSource) Read ¶
func (d *SshKeyDataSource) Read( ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse, )
func (*SshKeyDataSource) Schema ¶
func (d *SshKeyDataSource) Schema( ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse, )
type SshKeyModel ¶
type SshKeyModel struct { AddedAt types.String `tfsdk:"added_at"` Bits types.Int64 `tfsdk:"bits"` HashMd5 types.String `tfsdk:"hash_md5"` HashSha256 types.String `tfsdk:"hash_sha256"` Id types.String `tfsdk:"id"` LastUsedAt types.String `tfsdk:"last_used_at"` Name types.String `tfsdk:"name"` PublicKey types.String `tfsdk:"public_key"` Type types.String `tfsdk:"type"` }
type SshKeyPayload ¶
type SshKeyPayload struct { AddedAt string `json:"addedAt"` Bits int `json:"bits"` HashMd5 string `json:"hashMd5"` HashSha256 string `json:"hashSha256"` Id string `json:"id"` LastUsedAt string `json:"lastUsedAt"` Name string `json:"name"` KeyData string `json:"keyData"` KeyType string `json:"keyType"` Comment string `json:"comment"` }
type SshKeyResource ¶
type SshKeyResource struct {
// contains filtered or unexported fields
}
func (*SshKeyResource) Configure ¶
func (r *SshKeyResource) Configure( ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse, )
func (*SshKeyResource) Create ¶
func (r *SshKeyResource) Create( ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse, )
func (*SshKeyResource) Delete ¶
func (r *SshKeyResource) Delete( ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse, )
func (*SshKeyResource) ImportState ¶
func (r *SshKeyResource) ImportState( ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse, )
func (*SshKeyResource) Metadata ¶
func (r *SshKeyResource) Metadata( ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse, )
func (*SshKeyResource) Read ¶
func (r *SshKeyResource) Read( ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse, )
func (*SshKeyResource) Schema ¶
func (r *SshKeyResource) Schema( ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse, )
func (*SshKeyResource) Update ¶
func (r *SshKeyResource) Update( ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse, )
type SshKeysPayload ¶
type SshKeysPayload []SshKeyPayload
Click to show internal directories.
Click to hide internal directories.