v6provider

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 38 Imported by: 0

Documentation

Index

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 LoadBalancerRuleSchemaAttributes() map[string]schema.Attribute

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 (IPDataSource) Metadata

func (*IPDataSource) Read

func (IPDataSource) Schema

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 (*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 (IPResource) Metadata

func (*IPResource) Read

func (r *IPResource) Read(
	ctx context.Context,
	req resource.ReadRequest,
	resp *resource.ReadResponse,
)

func (IPResource) Schema

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 (*KatapultProvider) DataSources

func (k *KatapultProvider) DataSources(
	_ context.Context,
) []func() datasource.DataSource

func (*KatapultProvider) Metadata

func (*KatapultProvider) Resources

func (k *KatapultProvider) Resources(
	_ context.Context,
) []func() resource.Resource

func (*KatapultProvider) Schema

type KatapultProviderModel

type KatapultProviderModel struct {
	APIKey               types.String `tfsdk:"api_key"`
	Organization         types.String `tfsdk:"organization"`
	DataCenter           types.String `tfsdk:"data_center"`
	SkipTrashObjectPurge types.Bool   `tfsdk:"skip_trash_object_purge"`
	LogLevel             types.String `tfsdk:"log_level"`
}

type LoadBalancerDataSource

type LoadBalancerDataSource struct {
	M *Meta
}

func (*LoadBalancerDataSource) Configure

func (*LoadBalancerDataSource) Metadata

func (*LoadBalancerDataSource) Read

func (*LoadBalancerDataSource) Schema

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 (*LoadBalancerResource) Create

func (*LoadBalancerResource) Delete

func (*LoadBalancerResource) ImportState

func (*LoadBalancerResource) LoadBalancerRead

func (r *LoadBalancerResource) LoadBalancerRead(
	ctx context.Context,
	id string,
	model *LoadBalancerResourceModel,
) error

func (*LoadBalancerResource) Metadata

func (*LoadBalancerResource) Read

func (LoadBalancerResource) Schema

func (*LoadBalancerResource) Update

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 (*LoadBalancerRuleDataSource) Metadata added in v0.0.12

func (LoadBalancerRuleDataSource) Read added in v0.0.12

func (*LoadBalancerRuleDataSource) Schema added in v0.0.12

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 (*LoadBalancerRuleResource) Create added in v0.0.12

func (*LoadBalancerRuleResource) Delete added in v0.0.12

func (*LoadBalancerRuleResource) ImportState added in v0.0.12

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 (*LoadBalancerRuleResource) Read added in v0.0.12

func (LoadBalancerRuleResource) Schema added in v0.0.12

func (*LoadBalancerRuleResource) Update added in v0.0.12

func (LoadBalancerRuleResource) ValidateConfig added in v0.0.12

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 (*LoadBalancerRulesDataSource) Metadata added in v0.0.12

func (*LoadBalancerRulesDataSource) Read added in v0.0.12

func (*LoadBalancerRulesDataSource) Schema added in v0.0.12

type LoadBalancerRulesDataSourceModel added in v0.0.12

type LoadBalancerRulesDataSourceModel struct {
	LoadBalancerID types.String `tfsdk:"load_balancer_id"`
	Rules          types.List   `tfsdk:"rules"`
}

type LoadBalancersDataSource added in v0.0.12

type LoadBalancersDataSource struct {
	M *Meta
}

func (*LoadBalancersDataSource) Configure added in v0.0.12

func (*LoadBalancersDataSource) Metadata added in v0.0.12

func (*LoadBalancersDataSource) Read added in v0.0.12

func (*LoadBalancersDataSource) Schema added in v0.0.12

type LoadBalancersDataSourceModel added in v0.0.12

type LoadBalancersDataSourceModel struct {
	ID            types.String `tfsdk:"id"`
	LoadBalancers types.List   `tfsdk:"load_balancers"`
}

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 NewMeta

func NewMeta(
	apiKey string,
	datacenter string,
	org string,
	skipTrashObjectPurge *bool,
	logLevel string,
	generatedNamePrefix string,
	httpClient *http.Client,
	version string,
	terraformVersion string,
) (*Meta, error)

func (*Meta) UseOrGenerateHostname

func (m *Meta) UseOrGenerateHostname(hostname string) string

func (*Meta) UseOrGenerateName

func (m *Meta) UseOrGenerateName(name string) string

Jump to

Keyboard shortcuts

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