Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewFirewallDataSource() datasource.DataSource
- func NewFirewallResource() resource.Resource
- func NewServerDataSource() datasource.DataSource
- func NewServerResource() resource.Resource
- type Firewall
- type FirewallDataSource
- func (d *FirewallDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *FirewallDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *FirewallDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *FirewallDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type FirewallDataSourceModel
- type FirewallResource
- func (r *FirewallResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *FirewallResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *FirewallResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *FirewallResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *FirewallResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *FirewallResource) NormalizeFirewall(fw *Firewall) error
- func (r *FirewallResource) NormalizeFirewallRule(rule *FirewallRule) error
- func (r *FirewallResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *FirewallResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *FirewallResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type FirewallResourceModel
- type FirewallResourceModelRuleType
- type FirewallResourceModelRuleValue
- type FirewallRule
- type Group
- type Listener
- type Server
- type ServerDataSource
- func (d *ServerDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *ServerDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *ServerDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *ServerDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type ServerDataSourceModel
- type ServerOSAutoupdatePolicy
- type ServerResource
- func (r *ServerResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *ServerResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ServerResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ServerResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ServerResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *ServerResource) NormalizeServer(server *Server) error
- func (r *ServerResource) NormalizeServerListener(listener *Listener) error
- func (r *ServerResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ServerResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ServerResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ServerResourceModel
- type ServerResourceModelListenerType
- type ServerResourceModelListenerValue
- type ShieldooClient
- func (c *ShieldooClient) CreateFirewall(firewall *Firewall) (*Firewall, error)
- func (c *ShieldooClient) CreateServer(server *Server) (*Server, error)
- func (c *ShieldooClient) DeleteFirewall(id string) error
- func (c *ShieldooClient) DeleteServer(id string) error
- func (c *ShieldooClient) GetFirewall(name string) (*Firewall, error)
- func (c *ShieldooClient) GetServer(name string) (*Server, error)
- func (c *ShieldooClient) ListGroups() ([]Group, error)
- func (c *ShieldooClient) UpdateFirewall(firewall *Firewall) (*Firewall, error)
- func (c *ShieldooClient) UpdateServer(server *Server) (*Server, error)
- type ShieldooJWTData
- type ShieldooProvider
- func (p *ShieldooProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *ShieldooProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *ShieldooProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *ShieldooProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *ShieldooProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type ShieldooProviderModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFirewallDataSource ¶
func NewFirewallDataSource() datasource.DataSource
func NewFirewallResource ¶
func NewServerDataSource ¶
func NewServerDataSource() datasource.DataSource
func NewServerResource ¶
Types ¶
type Firewall ¶
type Firewall struct { Id string `json:"id"` Name string `json:"name"` RulesIn []FirewallRule `json:"rulesIn"` RulesOut []FirewallRule `json:"rulesOut"` }
type FirewallDataSource ¶
type FirewallDataSource struct {
// contains filtered or unexported fields
}
FirewallDataSource defines the data source implementation.
func (*FirewallDataSource) Configure ¶
func (d *FirewallDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*FirewallDataSource) Metadata ¶
func (d *FirewallDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*FirewallDataSource) Read ¶
func (d *FirewallDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*FirewallDataSource) Schema ¶
func (d *FirewallDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type FirewallDataSourceModel ¶
type FirewallDataSourceModel struct { Name types.String `tfsdk:"name"` Id types.String `tfsdk:"id"` }
FirewallDataSourceModel describes the data source data model.
type FirewallResource ¶
type FirewallResource struct {
// contains filtered or unexported fields
}
FirewallResource defines the resource implementation.
func (*FirewallResource) Configure ¶
func (r *FirewallResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*FirewallResource) Create ¶
func (r *FirewallResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*FirewallResource) Delete ¶
func (r *FirewallResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*FirewallResource) ImportState ¶
func (r *FirewallResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*FirewallResource) Metadata ¶
func (r *FirewallResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*FirewallResource) NormalizeFirewall ¶
func (r *FirewallResource) NormalizeFirewall(fw *Firewall) error
func (*FirewallResource) NormalizeFirewallRule ¶
func (r *FirewallResource) NormalizeFirewallRule(rule *FirewallRule) error
func (*FirewallResource) Read ¶
func (r *FirewallResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*FirewallResource) Schema ¶
func (r *FirewallResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*FirewallResource) Update ¶
func (r *FirewallResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type FirewallResourceModel ¶
type FirewallResourceModel struct { Name types.String `tfsdk:"name"` Id types.String `tfsdk:"id"` RulesInbound FirewallResourceModelRuleValue `tfsdk:"rules_inbound"` RulesOutbound FirewallResourceModelRuleValue `tfsdk:"rules_outbound"` }
FirewallResourceModel describes the resource data model.
type FirewallResourceModelRuleType ¶
func (FirewallResourceModelRuleType) ValueFromTerraform ¶
type FirewallResourceModelRuleValue ¶
func (FirewallResourceModelRuleValue) ParseFirewallRulesFromModel ¶
func (c FirewallResourceModelRuleValue) ParseFirewallRulesFromModel(ctx context.Context) []FirewallRule
type FirewallRule ¶
type Server ¶
type Server struct { Id string `json:"id"` Name string `json:"name"` Groups []Group `json:"groups"` Firewall Firewall `json:"firewall"` Listeners []Listener `json:"listeners"` Autoupdate bool `json:"autoupdate"` IpAddress string `json:"ipAddress"` Description string `json:"description"` Configuration string `json:"configuration"` OSUpdatePolicy ServerOSAutoupdatePolicy `json:"osUpdatePolicy"` }
type ServerDataSource ¶
type ServerDataSource struct {
// contains filtered or unexported fields
}
ServerDataSource defines the data source implementation.
func (*ServerDataSource) Configure ¶
func (d *ServerDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*ServerDataSource) Metadata ¶
func (d *ServerDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*ServerDataSource) Read ¶
func (d *ServerDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*ServerDataSource) Schema ¶
func (d *ServerDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type ServerDataSourceModel ¶
type ServerDataSourceModel struct { Name types.String `tfsdk:"name"` Id types.String `tfsdk:"id"` IpAddress types.String `tfsdk:"ip_address"` Configuration types.String `tfsdk:"configuration"` }
ServerDataSourceModel describes the data source data model.
type ServerResource ¶
type ServerResource struct {
// contains filtered or unexported fields
}
ServerResource defines the resource implementation.
func (*ServerResource) Configure ¶
func (r *ServerResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*ServerResource) Create ¶
func (r *ServerResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*ServerResource) Delete ¶
func (r *ServerResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*ServerResource) ImportState ¶
func (r *ServerResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*ServerResource) Metadata ¶
func (r *ServerResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*ServerResource) NormalizeServer ¶
func (r *ServerResource) NormalizeServer(server *Server) error
func (*ServerResource) NormalizeServerListener ¶
func (r *ServerResource) NormalizeServerListener(listener *Listener) error
func (*ServerResource) Read ¶
func (r *ServerResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*ServerResource) Schema ¶
func (r *ServerResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*ServerResource) Update ¶
func (r *ServerResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type ServerResourceModel ¶
type ServerResourceModel struct { Name types.String `tfsdk:"name"` Id types.String `tfsdk:"id"` Configuration types.String `tfsdk:"configuration"` Description types.String `tfsdk:"description"` IpAddress types.String `tfsdk:"ip_address"` FirewallId types.String `tfsdk:"firewall_id"` GroupIds types.List `tfsdk:"group_ids"` GroupObjectIds types.List `tfsdk:"group_object_ids"` GroupNames types.List `tfsdk:"group_names"` Listeners ServerResourceModelListenerValue `tfsdk:"listeners"` Autoupdate types.Bool `tfsdk:"autoupdate"` OSUpdateEnabled types.Bool `tfsdk:"os_update_enabled"` OSSecurityUpdateEnabled types.Bool `tfsdk:"os_security_update_enabled"` OSAllUpdateEnabled types.Bool `tfsdk:"os_all_update_enabled"` OSRestartAfterUpdate types.Bool `tfsdk:"os_restart_after_update"` OSUpdateHour types.Int64 `tfsdk:"os_update_hour"` }
ServerResourceModel describes the resource data model.
type ServerResourceModelListenerType ¶
func (ServerResourceModelListenerType) ValueFromTerraform ¶
type ServerResourceModelListenerValue ¶
func (ServerResourceModelListenerValue) ParseServerListenersFromModel ¶
func (c ServerResourceModelListenerValue) ParseServerListenersFromModel(ctx context.Context) []Listener
type ShieldooClient ¶
type ShieldooClient struct {
// contains filtered or unexported fields
}
func (*ShieldooClient) CreateFirewall ¶
func (c *ShieldooClient) CreateFirewall(firewall *Firewall) (*Firewall, error)
func (*ShieldooClient) CreateServer ¶
func (c *ShieldooClient) CreateServer(server *Server) (*Server, error)
func (*ShieldooClient) DeleteFirewall ¶
func (c *ShieldooClient) DeleteFirewall(id string) error
func (*ShieldooClient) DeleteServer ¶
func (c *ShieldooClient) DeleteServer(id string) error
func (*ShieldooClient) GetFirewall ¶
func (c *ShieldooClient) GetFirewall(name string) (*Firewall, error)
func (*ShieldooClient) ListGroups ¶
func (c *ShieldooClient) ListGroups() ([]Group, error)
func (*ShieldooClient) UpdateFirewall ¶
func (c *ShieldooClient) UpdateFirewall(firewall *Firewall) (*Firewall, error)
func (*ShieldooClient) UpdateServer ¶
func (c *ShieldooClient) UpdateServer(server *Server) (*Server, error)
type ShieldooJWTData ¶
type ShieldooProvider ¶
type ShieldooProvider struct {
// contains filtered or unexported fields
}
ShieldooProvider defines the provider implementation.
func (*ShieldooProvider) Configure ¶
func (p *ShieldooProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*ShieldooProvider) DataSources ¶
func (p *ShieldooProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*ShieldooProvider) Metadata ¶
func (p *ShieldooProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*ShieldooProvider) Resources ¶
func (p *ShieldooProvider) Resources(ctx context.Context) []func() resource.Resource
func (*ShieldooProvider) Schema ¶
func (p *ShieldooProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
Click to show internal directories.
Click to hide internal directories.