Help us shape the future of Go! Take the 2026 Go Developer Survey

loadbalancer

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLoadBalancerDataSource

func NewLoadBalancerDataSource() datasource.DataSource

NewLoadBalancerDataSource is a helper function to simplify the provider implementation.

func NewLoadBalancerResource

func NewLoadBalancerResource() resource.Resource

NewLoadBalancerResource is a helper function to simplify the provider implementation.

Types

type ActiveHealthCheck

type ActiveHealthCheck 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"`
}

Struct corresponding to each Model.TargetPool.ActiveHealthCheck

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"`
}

Struct corresponding to each Model.Listener

type Model

type Model struct {
	Id              types.String `tfsdk:"id"` // needed by TF
	ProjectId       types.String `tfsdk:"project_id"`
	ExternalAddress types.String `tfsdk:"external_address"`
	Listeners       []Listener   `tfsdk:"listeners"`
	Name            types.String `tfsdk:"name"`
	Networks        []Network    `tfsdk:"networks"`
	Options         types.Object `tfsdk:"options"`
	PrivateAddress  types.String `tfsdk:"private_address"`
	TargetPools     []TargetPool `tfsdk:"target_pools"`
}

type Network

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

Struct corresponding to each Model.Network

type Options

type Options struct {
	ACL                types.Set  `tfsdk:"acl"`
	PrivateNetworkOnly types.Bool `tfsdk:"private_network_only"`
}

Struct corresponding to Model.Options

type Target

type Target struct {
	DisplayName types.String `tfsdk:"display_name"`
	Ip          types.String `tfsdk:"ip"`
}

Struct corresponding to each Model.TargetPool.Targets

type TargetPool

type TargetPool struct {
	ActiveHealthCheck types.Object `tfsdk:"active_health_check"`
	Name              types.String `tfsdk:"name"`
	TargetPort        types.Int64  `tfsdk:"target_port"`
	Targets           []Target     `tfsdk:"targets"`
}

Struct corresponding to each Model.TargetPool

Jump to

Keyboard shortcuts

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