loadbalancer

package
v1.31.4 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() resource.Resource

New returns a new configured resource

Types

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"`
	Timeouts           timeouts.Value `tfsdk:"timeouts"`
}

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 Resource

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

Resource is the exported resource

func (*Resource) Configure

Configure the resource client

func (Resource) Create

Create - lifecycle function

func (Resource) Delete

Delete - lifecycle function

func (*Resource) ImportState

ImportState handles terraform import

func (*Resource) Metadata

Metadata returns data resource metadata

func (Resource) Read

Read - lifecycle function

func (*Resource) Schema

Schema returns the terraform schema structure

func (Resource) Update

Update - lifecycle function

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