Documentation ¶
Index ¶
- func ConvertCoreCertsToTFValues(certs []core.Certificate) []attr.Value
- func LoadBalancerRuleSchemaAttributes() map[string]schema.Attribute
- func LoadBalancerRuleType() types.ObjectType
- func LoadBalancerType() types.ObjectType
- func New(k *KatapultProvider) func() provider.Provider
- type IPDataSource
- func (r *IPDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, ...)
- func (r IPDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (r *IPDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (r IPDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type IPDataSourceModel
- type IPResource
- func (r *IPResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *IPResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *IPResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *IPResource) IPRead(ctx context.Context, id string, model *IPResourceModel) error
- func (r *IPResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r IPResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *IPResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r IPResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *IPResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type IPResourceModel
- type KatapultProvider
- func (k *KatapultProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (k *KatapultProvider) DataSources(_ context.Context) []func() datasource.DataSource
- func (k *KatapultProvider) Metadata(_ context.Context, _ provider.MetadataRequest, resp *provider.MetadataResponse)
- func (k *KatapultProvider) Resources(_ context.Context) []func() resource.Resource
- func (k *KatapultProvider) Schema(_ context.Context, _ provider.SchemaRequest, resp *provider.SchemaResponse)
- type KatapultProviderModel
- type LoadBalancerDataSource
- func (ds *LoadBalancerDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, ...)
- func (ds *LoadBalancerDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (ds *LoadBalancerDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (ds *LoadBalancerDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type LoadBalancerDataSourceModel
- type LoadBalancerResource
- func (r *LoadBalancerResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *LoadBalancerResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *LoadBalancerResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *LoadBalancerResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *LoadBalancerResource) LoadBalancerRead(ctx context.Context, id string, model *LoadBalancerResourceModel) error
- func (r *LoadBalancerResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *LoadBalancerResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r LoadBalancerResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *LoadBalancerResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type LoadBalancerResourceModel
- type LoadBalancerRuleDataSource
- func (ds *LoadBalancerRuleDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, ...)
- func (ds *LoadBalancerRuleDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (ds LoadBalancerRuleDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (ds *LoadBalancerRuleDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type LoadBalancerRuleDataSourceModel
- type LoadBalancerRuleResource
- func (r *LoadBalancerRuleResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *LoadBalancerRuleResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *LoadBalancerRuleResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *LoadBalancerRuleResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *LoadBalancerRuleResource) LoadBalancerRuleRead(ctx context.Context, id string, model *LoadBalancerRuleResourceModel) error
- func (r *LoadBalancerRuleResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *LoadBalancerRuleResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r LoadBalancerRuleResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *LoadBalancerRuleResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- func (r LoadBalancerRuleResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, ...)
- type LoadBalancerRuleResourceModel
- type LoadBalancerRulesDataSource
- func (ds *LoadBalancerRulesDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, ...)
- func (ds *LoadBalancerRulesDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (ds *LoadBalancerRulesDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (ds *LoadBalancerRulesDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type LoadBalancerRulesDataSourceModel
- type LoadBalancersDataSource
- func (ds *LoadBalancersDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, ...)
- func (ds *LoadBalancersDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (ds *LoadBalancersDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (ds *LoadBalancersDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type LoadBalancersDataSourceModel
- type Meta
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertCoreCertsToTFValues ¶ added in v0.0.12
func ConvertCoreCertsToTFValues(certs []core.Certificate) []attr.Value
func LoadBalancerRuleSchemaAttributes ¶ added in v0.0.12
func LoadBalancerRuleType ¶ added in v0.0.12
func LoadBalancerRuleType() types.ObjectType
func LoadBalancerType ¶ added in v0.0.12
func LoadBalancerType() types.ObjectType
func New ¶
func New(k *KatapultProvider) func() provider.Provider
Types ¶
type IPDataSource ¶
type IPDataSource struct {
M *Meta
}
func (*IPDataSource) Configure ¶
func (r *IPDataSource) Configure( _ context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse, )
func (IPDataSource) Metadata ¶
func (r IPDataSource) Metadata( _ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse, )
func (*IPDataSource) Read ¶
func (r *IPDataSource) Read( ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse, )
func (IPDataSource) Schema ¶
func (r IPDataSource) Schema( _ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse, )
type IPDataSourceModel ¶
type IPDataSourceModel struct { ID types.String `tfsdk:"id"` NetworkID types.String `tfsdk:"network_id"` Version types.Int64 `tfsdk:"version"` Address types.String `tfsdk:"address"` AddressWithMask types.String `tfsdk:"address_with_mask"` ReverseDNS types.String `tfsdk:"reverse_dns"` VIP types.Bool `tfsdk:"vip"` Label types.String `tfsdk:"label"` AllocationType types.String `tfsdk:"allocation_type"` AllocationID types.String `tfsdk:"allocation_id"` }
type IPResource ¶
type IPResource struct {
M *Meta
}
func (*IPResource) Configure ¶
func (r *IPResource) Configure( _ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse, )
func (*IPResource) Create ¶
func (r *IPResource) Create( ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse, )
func (*IPResource) Delete ¶
func (r *IPResource) Delete( ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse, )
func (*IPResource) IPRead ¶
func (r *IPResource) IPRead( ctx context.Context, id string, model *IPResourceModel, ) error
func (*IPResource) ImportState ¶
func (r *IPResource) ImportState( ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse, )
func (IPResource) Metadata ¶
func (r IPResource) Metadata( _ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse, )
func (*IPResource) Read ¶
func (r *IPResource) Read( ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse, )
func (IPResource) Schema ¶
func (r IPResource) Schema( _ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse, )
func (*IPResource) Update ¶
func (r *IPResource) Update( ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse, )
type IPResourceModel ¶
type IPResourceModel struct { ID types.String `tfsdk:"id"` NetworkID types.String `tfsdk:"network_id"` Version types.Int64 `tfsdk:"version"` Address types.String `tfsdk:"address"` AddressWithMask types.String `tfsdk:"address_with_mask"` ReverseDNS types.String `tfsdk:"reverse_dns"` VIP types.Bool `tfsdk:"vip"` Label types.String `tfsdk:"label"` AllocationType types.String `tfsdk:"allocation_type"` AllocationID types.String `tfsdk:"allocation_id"` }
type KatapultProvider ¶
type KatapultProvider struct { Version string Commit string HTTPClient *http.Client GeneratedNamePrefix string // contains filtered or unexported fields }
func (*KatapultProvider) Configure ¶
func (k *KatapultProvider) Configure( ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse, )
func (*KatapultProvider) DataSources ¶
func (k *KatapultProvider) DataSources( _ context.Context, ) []func() datasource.DataSource
func (*KatapultProvider) Metadata ¶
func (k *KatapultProvider) Metadata( _ context.Context, _ provider.MetadataRequest, resp *provider.MetadataResponse, )
func (*KatapultProvider) Resources ¶
func (k *KatapultProvider) Resources( _ context.Context, ) []func() resource.Resource
func (*KatapultProvider) Schema ¶
func (k *KatapultProvider) Schema( _ context.Context, _ provider.SchemaRequest, resp *provider.SchemaResponse, )
type KatapultProviderModel ¶
type LoadBalancerDataSource ¶
type LoadBalancerDataSource struct {
M *Meta
}
func (*LoadBalancerDataSource) Configure ¶
func (ds *LoadBalancerDataSource) Configure( _ context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse, )
func (*LoadBalancerDataSource) Metadata ¶
func (ds *LoadBalancerDataSource) Metadata( _ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse, )
func (*LoadBalancerDataSource) Read ¶
func (ds *LoadBalancerDataSource) Read( ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse, )
func (*LoadBalancerDataSource) Schema ¶
func (ds *LoadBalancerDataSource) Schema( _ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse, )
type LoadBalancerDataSourceModel ¶
type LoadBalancerDataSourceModel struct { ID types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` VirtualMachineIDs types.Set `tfsdk:"virtual_machine_ids"` VirtualMachineGroupIDs types.Set `tfsdk:"virtual_machine_group_ids"` TagIDs types.Set `tfsdk:"tag_ids"` IPAddress types.String `tfsdk:"ip_address"` HTTPSRedirect types.Bool `tfsdk:"https_redirect"` }
type LoadBalancerResource ¶
type LoadBalancerResource struct {
M *Meta
}
func (*LoadBalancerResource) Configure ¶
func (r *LoadBalancerResource) Configure( _ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse, )
func (*LoadBalancerResource) Create ¶
func (r *LoadBalancerResource) Create( ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse, )
func (*LoadBalancerResource) Delete ¶
func (r *LoadBalancerResource) Delete( ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse, )
func (*LoadBalancerResource) ImportState ¶
func (r *LoadBalancerResource) ImportState( ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse, )
func (*LoadBalancerResource) LoadBalancerRead ¶
func (r *LoadBalancerResource) LoadBalancerRead( ctx context.Context, id string, model *LoadBalancerResourceModel, ) error
func (*LoadBalancerResource) Metadata ¶
func (r *LoadBalancerResource) Metadata( _ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse, )
func (*LoadBalancerResource) Read ¶
func (r *LoadBalancerResource) Read( ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse, )
func (LoadBalancerResource) Schema ¶
func (r LoadBalancerResource) Schema( _ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse, )
func (*LoadBalancerResource) Update ¶
func (r *LoadBalancerResource) Update( ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse, )
type LoadBalancerResourceModel ¶
type LoadBalancerResourceModel struct { ID types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` VirtualMachineIDs types.Set `tfsdk:"virtual_machine_ids"` VirtualMachineGroupIDs types.Set `tfsdk:"virtual_machine_group_ids"` TagIDs types.Set `tfsdk:"tag_ids"` IPAddress types.String `tfsdk:"ip_address"` HTTPSRedirect types.Bool `tfsdk:"https_redirect"` }
type LoadBalancerRuleDataSource ¶ added in v0.0.12
type LoadBalancerRuleDataSource struct {
M *Meta
}
func (*LoadBalancerRuleDataSource) Configure ¶ added in v0.0.12
func (ds *LoadBalancerRuleDataSource) Configure( _ context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse, )
func (*LoadBalancerRuleDataSource) Metadata ¶ added in v0.0.12
func (ds *LoadBalancerRuleDataSource) Metadata( _ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse, )
func (LoadBalancerRuleDataSource) Read ¶ added in v0.0.12
func (ds LoadBalancerRuleDataSource) Read( ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse, )
func (*LoadBalancerRuleDataSource) Schema ¶ added in v0.0.12
func (ds *LoadBalancerRuleDataSource) Schema( _ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse, )
type LoadBalancerRuleDataSourceModel ¶ added in v0.0.12
type LoadBalancerRuleDataSourceModel struct { ID types.String `tfsdk:"id"` LoadBalancerID types.String `tfsdk:"load_balancer_id"` Algorithm types.String `tfsdk:"algorithm"` DestinationPort types.Int64 `tfsdk:"destination_port"` ListenPort types.Int64 `tfsdk:"listen_port"` Protocol types.String `tfsdk:"protocol"` ProxyProtocol types.Bool `tfsdk:"proxy_protocol"` CertificateIDs types.Set `tfsdk:"certificate_ids"` BackendSSL types.Bool `tfsdk:"backend_ssl"` PassthroughSSL types.Bool `tfsdk:"passthrough_ssl"` CheckEnabled types.Bool `tfsdk:"check_enabled"` CheckFall types.Int64 `tfsdk:"check_fall"` CheckInterval types.Int64 `tfsdk:"check_interval"` CheckHTTPStatuses types.String `tfsdk:"check_http_statuses"` CheckPath types.String `tfsdk:"check_path"` CheckProtocol types.String `tfsdk:"check_protocol"` CheckRise types.Int64 `tfsdk:"check_rise"` CheckTimeout types.Int64 `tfsdk:"check_timeout"` }
type LoadBalancerRuleResource ¶ added in v0.0.12
type LoadBalancerRuleResource struct {
M *Meta
}
func (*LoadBalancerRuleResource) Configure ¶ added in v0.0.12
func (r *LoadBalancerRuleResource) Configure( _ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse, )
func (*LoadBalancerRuleResource) Create ¶ added in v0.0.12
func (r *LoadBalancerRuleResource) Create( ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse, )
func (*LoadBalancerRuleResource) Delete ¶ added in v0.0.12
func (r *LoadBalancerRuleResource) Delete( ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse, )
func (*LoadBalancerRuleResource) ImportState ¶ added in v0.0.12
func (r *LoadBalancerRuleResource) ImportState( ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse, )
func (*LoadBalancerRuleResource) LoadBalancerRuleRead ¶ added in v0.0.12
func (r *LoadBalancerRuleResource) LoadBalancerRuleRead( ctx context.Context, id string, model *LoadBalancerRuleResourceModel, ) error
func (*LoadBalancerRuleResource) Metadata ¶ added in v0.0.12
func (r *LoadBalancerRuleResource) Metadata( _ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse, )
func (*LoadBalancerRuleResource) Read ¶ added in v0.0.12
func (r *LoadBalancerRuleResource) Read( ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse, )
func (LoadBalancerRuleResource) Schema ¶ added in v0.0.12
func (r LoadBalancerRuleResource) Schema( _ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse, )
func (*LoadBalancerRuleResource) Update ¶ added in v0.0.12
func (r *LoadBalancerRuleResource) Update( ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse, )
func (LoadBalancerRuleResource) ValidateConfig ¶ added in v0.0.12
func (r LoadBalancerRuleResource) ValidateConfig( ctx context.Context, req resource.ValidateConfigRequest, resp *resource.ValidateConfigResponse, )
type LoadBalancerRuleResourceModel ¶ added in v0.0.12
type LoadBalancerRuleResourceModel struct { ID types.String `tfsdk:"id"` LoadBalancerID types.String `tfsdk:"load_balancer_id"` Algorithm types.String `tfsdk:"algorithm"` DestinationPort types.Int64 `tfsdk:"destination_port"` ListenPort types.Int64 `tfsdk:"listen_port"` Protocol types.String `tfsdk:"protocol"` ProxyProtocol types.Bool `tfsdk:"proxy_protocol"` CertificateIDs types.Set `tfsdk:"certificate_ids"` BackendSSL types.Bool `tfsdk:"backend_ssl"` PassthroughSSL types.Bool `tfsdk:"passthrough_ssl"` CheckEnabled types.Bool `tfsdk:"check_enabled"` CheckFall types.Int64 `tfsdk:"check_fall"` CheckInterval types.Int64 `tfsdk:"check_interval"` CheckHTTPStatuses types.String `tfsdk:"check_http_statuses"` CheckPath types.String `tfsdk:"check_path"` CheckProtocol types.String `tfsdk:"check_protocol"` CheckRise types.Int64 `tfsdk:"check_rise"` CheckTimeout types.Int64 `tfsdk:"check_timeout"` }
type LoadBalancerRulesDataSource ¶ added in v0.0.12
type LoadBalancerRulesDataSource struct {
M *Meta
}
func (*LoadBalancerRulesDataSource) Configure ¶ added in v0.0.12
func (ds *LoadBalancerRulesDataSource) Configure( _ context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse, )
func (*LoadBalancerRulesDataSource) Metadata ¶ added in v0.0.12
func (ds *LoadBalancerRulesDataSource) Metadata( _ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse, )
func (*LoadBalancerRulesDataSource) Read ¶ added in v0.0.12
func (ds *LoadBalancerRulesDataSource) Read( ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse, )
func (*LoadBalancerRulesDataSource) Schema ¶ added in v0.0.12
func (ds *LoadBalancerRulesDataSource) Schema( _ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse, )
type LoadBalancerRulesDataSourceModel ¶ added in v0.0.12
type LoadBalancersDataSource ¶ added in v0.0.12
type LoadBalancersDataSource struct {
M *Meta
}
func (*LoadBalancersDataSource) Configure ¶ added in v0.0.12
func (ds *LoadBalancersDataSource) Configure( _ context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse, )
func (*LoadBalancersDataSource) Metadata ¶ added in v0.0.12
func (ds *LoadBalancersDataSource) Metadata( _ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse, )
func (*LoadBalancersDataSource) Read ¶ added in v0.0.12
func (ds *LoadBalancersDataSource) Read( ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse, )
func (*LoadBalancersDataSource) Schema ¶ added in v0.0.12
func (ds *LoadBalancersDataSource) Schema( _ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse, )
type LoadBalancersDataSourceModel ¶ added in v0.0.12
type Meta ¶
type Meta struct { Client *katapult.Client Core *core.Client Logger hclog.Logger GeneratedNamePrefix string SkipTrashObjectPurge bool // Internal cache of shallow lookup reference objects DataCenterRef core.DataCenterRef OrganizationRef core.OrganizationRef // contains filtered or unexported fields }
func (*Meta) UseOrGenerateHostname ¶
func (*Meta) UseOrGenerateName ¶
Click to show internal directories.
Click to hide internal directories.