loadbalancer

package
v1.30.4 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() datasource.DataSource

New returns a new configured data source

Types

type DataSource

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

DataSource is the exported data source

func (*DataSource) Configure

Configure configures the data source client

func (*DataSource) Metadata

Metadata returns data resource metadata

func (DataSource) Read

Read - lifecycle function

func (*DataSource) Schema

Schema returns the terraform schema structure

type HealthCheck

type HealthCheck struct {
	HealthyThreshold   types.Int64  `tfsdk:"healthy_threshold"`
	Interval           types.String `tfsdk:"interval"`
	IntervalJitter     types.String `tfsdk:"interval_jitter"`
	Timeout            types.String `tfsdk:"timeout"`
	UnhealthyThreshold types.Int64  `tfsdk:"unhealthy_threshold"`
}

type Instance

type Instance struct {
	ID                 types.String `tfsdk:"id"`
	Name               types.String `tfsdk:"name"`
	ProjectID          types.String `tfsdk:"project_id"`
	ExternalAddress    types.String `tfsdk:"external_address"`
	Listeners          types.Set    `tfsdk:"listeners"`
	Networks           types.Set    `tfsdk:"networks"`
	TargetPools        types.Set    `tfsdk:"target_pools"`
	ACL                types.Set    `tfsdk:"acl"`
	PrivateNetworkOnly types.Bool   `tfsdk:"private_network_only"`
	PrivateAddress     types.String `tfsdk:"private_address"`
}

Instance is the schema model

type Listener

type Listener struct {
	DisplayName types.String `tfsdk:"display_name"`
	Port        types.Int64  `tfsdk:"port"`
	Protocol    types.String `tfsdk:"protocol"`
	TargetPool  types.String `tfsdk:"target_pool"`
}

type Network

type Network struct {
	NetworkID types.String `tfsdk:"network_id"`
	Role      types.String `tfsdk:"role"`
}

type Target

type Target struct {
	DisplayName types.String `tfsdk:"display_name"`
	IPAddress   types.String `tfsdk:"ip_address"`
}

type TargetPool

type TargetPool struct {
	Name        types.String `tfsdk:"name"`
	TargetPort  types.Int64  `tfsdk:"target_port"`
	Targets     types.Set    `tfsdk:"targets"`
	HealthCheck types.Object `tfsdk:"health_check"`
}

Jump to

Keyboard shortcuts

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