provider

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SYNOLOGY_HOST_ENV_VAR            = "SYNOLOGY_HOST"
	SYNOLOGY_USER_ENV_VAR            = "SYNOLOGY_USER"
	SYNOLOGY_PASSWORD_ENV_VAR        = "SYNOLOGY_PASSWORD"
	SYNOLOGY_OTP_SECRET_ENV_VAR      = "SYNOLOGY_OTP_SECRET"
	SYNOLOGY_SKIP_CERT_CHECK_ENV_VAR = "SYNOLOGY_SKIP_CERT_CHECK"
)

Variables

This section is empty.

Functions

func New

func New() func() provider.Provider

func NewApiResource

func NewApiResource() resource.Resource

func NewISOFunction

func NewISOFunction() function.Function

func NewMkPasswdFunction

func NewMkPasswdFunction() function.Function

func NewPasswordResource

func NewPasswordResource() resource.Resource

Types

type ApiResource

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

func (*ApiResource) Configure

func (*ApiResource) Create

Create implements resource.Resource.

func (*ApiResource) Delete

Delete implements resource.Resource.

func (*ApiResource) Metadata

Metadata implements resource.Resource.

func (*ApiResource) Read

Read implements resource.Resource.

func (*ApiResource) Schema

Schema implements resource.Resource.

func (*ApiResource) Update

Update implements resource.Resource.

type ApiResourceModel

type ApiResourceModel struct {
	API        types.String  `tfsdk:"api"`
	Method     types.String  `tfsdk:"method"`
	Version    types.Int64   `tfsdk:"version"`
	Parameters types.Map     `tfsdk:"parameters"`
	When       types.String  `tfsdk:"when"`
	Result     types.Dynamic `tfsdk:"result"`
}

type ISOFunction

type ISOFunction struct{}

func (ISOFunction) Definition

func (ISOFunction) Metadata

func (ISOFunction) Run

type MkPasswdFunction

type MkPasswdFunction struct{}

func (*MkPasswdFunction) Definition

func (*MkPasswdFunction) Metadata

func (*MkPasswdFunction) Run

type PasswordResource

type PasswordResource struct {
}

func (*PasswordResource) Configure

func (*PasswordResource) Create

Create implements resource.Resource.

func (*PasswordResource) Delete

Delete implements resource.Resource.

func (*PasswordResource) Metadata

Metadata implements resource.Resource.

func (*PasswordResource) Read

Read implements resource.Resource.

func (*PasswordResource) Schema

Schema implements resource.Resource.

func (*PasswordResource) Update

Update implements resource.Resource.

type PasswordResourceModel

type PasswordResourceModel struct {
	Password types.String `tfsdk:"password"`
	Result   types.String `tfsdk:"result"`
}

type SynologyProvider

type SynologyProvider struct{}

SynologyProvider defines the provider implementation.

func (*SynologyProvider) Configure

func (*SynologyProvider) DataSources

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

func (*SynologyProvider) Functions

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

func (*SynologyProvider) Metadata

func (*SynologyProvider) Resources

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

func (*SynologyProvider) Schema

func (*SynologyProvider) ValidateConfig

type SynologyProviderModel

type SynologyProviderModel struct {
	Host          types.String `tfsdk:"host"`
	User          types.String `tfsdk:"user"`
	Password      types.String `tfsdk:"password"`
	OtpSecret     types.String `tfsdk:"otp_secret"`
	SkipCertCheck types.Bool   `tfsdk:"skip_cert_check"`
}

SynologyProviderModel describes the provider data model.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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