Documentation ¶
Index ¶
- Constants
- func New() func() provider.Provider
- func NewApiResource() resource.Resource
- func NewISOFunction() function.Function
- func NewMkPasswdFunction() function.Function
- func NewPasswordResource() resource.Resource
- type ApiResource
- func (f *ApiResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (a *ApiResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (a *ApiResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (a *ApiResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (a *ApiResource) Read(context.Context, resource.ReadRequest, *resource.ReadResponse)
- func (a *ApiResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (a *ApiResource) Update(context.Context, resource.UpdateRequest, *resource.UpdateResponse)
- type ApiResourceModel
- type ISOFunction
- type MkPasswdFunction
- type PasswordResource
- func (f *PasswordResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (a *PasswordResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (a *PasswordResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (a *PasswordResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (a *PasswordResource) Read(context.Context, resource.ReadRequest, *resource.ReadResponse)
- func (a *PasswordResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (a *PasswordResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type PasswordResourceModel
- type SynologyProvider
- func (p *SynologyProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *SynologyProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *SynologyProvider) Functions(ctx context.Context) []func() function.Function
- func (p *SynologyProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *SynologyProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *SynologyProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- func (p *SynologyProvider) ValidateConfig(ctx context.Context, req provider.ValidateConfigRequest, ...)
- type SynologyProviderModel
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 NewApiResource ¶
func NewISOFunction ¶
func NewMkPasswdFunction ¶
func NewPasswordResource ¶
Types ¶
type ApiResource ¶
type ApiResource struct {
// contains filtered or unexported fields
}
func (*ApiResource) Configure ¶
func (f *ApiResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*ApiResource) Create ¶
func (a *ApiResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create implements resource.Resource.
func (*ApiResource) Delete ¶
func (a *ApiResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete implements resource.Resource.
func (*ApiResource) Metadata ¶
func (a *ApiResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata implements resource.Resource.
func (*ApiResource) Read ¶
func (a *ApiResource) Read(context.Context, resource.ReadRequest, *resource.ReadResponse)
Read implements resource.Resource.
func (*ApiResource) Schema ¶
func (a *ApiResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema implements resource.Resource.
func (*ApiResource) Update ¶
func (a *ApiResource) Update(context.Context, resource.UpdateRequest, *resource.UpdateResponse)
Update implements resource.Resource.
type ApiResourceModel ¶
type ISOFunction ¶
type ISOFunction struct{}
func (ISOFunction) Definition ¶
func (r ISOFunction) Definition(_ context.Context, _ function.DefinitionRequest, resp *function.DefinitionResponse)
func (ISOFunction) Metadata ¶
func (r ISOFunction) Metadata(_ context.Context, req function.MetadataRequest, resp *function.MetadataResponse)
func (ISOFunction) Run ¶
func (r ISOFunction) Run(ctx context.Context, req function.RunRequest, resp *function.RunResponse)
type MkPasswdFunction ¶
type MkPasswdFunction struct{}
func (*MkPasswdFunction) Definition ¶
func (f *MkPasswdFunction) Definition(ctx context.Context, req function.DefinitionRequest, resp *function.DefinitionResponse)
func (*MkPasswdFunction) Metadata ¶
func (f *MkPasswdFunction) Metadata(ctx context.Context, req function.MetadataRequest, resp *function.MetadataResponse)
func (*MkPasswdFunction) Run ¶
func (f *MkPasswdFunction) Run(ctx context.Context, req function.RunRequest, resp *function.RunResponse)
type PasswordResource ¶
type PasswordResource struct { }
func (*PasswordResource) Configure ¶
func (f *PasswordResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*PasswordResource) Create ¶
func (a *PasswordResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create implements resource.Resource.
func (*PasswordResource) Delete ¶
func (a *PasswordResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete implements resource.Resource.
func (*PasswordResource) Metadata ¶
func (a *PasswordResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata implements resource.Resource.
func (*PasswordResource) Read ¶
func (a *PasswordResource) Read(context.Context, resource.ReadRequest, *resource.ReadResponse)
Read implements resource.Resource.
func (*PasswordResource) Schema ¶
func (a *PasswordResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema implements resource.Resource.
func (*PasswordResource) Update ¶
func (a *PasswordResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update implements resource.Resource.
type PasswordResourceModel ¶
type SynologyProvider ¶
type SynologyProvider struct{}
SynologyProvider defines the provider implementation.
func (*SynologyProvider) Configure ¶
func (p *SynologyProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
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 (p *SynologyProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*SynologyProvider) Resources ¶
func (p *SynologyProvider) Resources(ctx context.Context) []func() resource.Resource
func (*SynologyProvider) Schema ¶
func (p *SynologyProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
func (*SynologyProvider) ValidateConfig ¶
func (p *SynologyProvider) ValidateConfig(ctx context.Context, req provider.ValidateConfigRequest, resp *provider.ValidateConfigResponse)
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.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.