terraform

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Member

type Member struct {
	NodeID  string
	Name    string
	Address string
	Port    int
}

type Monitor

type Monitor struct {
	CreateMonitor bool
	Delay         string
	Timeout       string
	MaxRetries    uint
}

type Pool

type Pool struct {
	Name     string
	Primary  bool
	Protocol string
	Method   string
	Members  []Member
}

type Port

type Port struct {
	PoolName string
	Port     int
}

type Rule

type Rule struct {
	PoolName string
	Path     string
	Host     string
}

type State

type State struct {
	Output struct {
		LbIP struct {
			Value string `json:"value,omitempty"`
		} `json:"lb_ip,omitempty"`
	} `json:"outputs,omitempty"`
}

type TLS

type TLS struct {
	Name        string
	Certificate string
	Key         string
}

type Terraform

type Terraform struct {
	AuthOpts                *openstack_provider.AuthOpts
	SkipHTTP                bool
	LoadBalancerUID         string
	LoadBalancerName        string
	LoadBalancerDescription string
	LoadBalancerProvider    string
	SubnetID                string
	IsInternal              bool
	UseOctavia              bool
	LockTimeout             string
	FloatingIPNetworkID     string
	FloatingIPSubnetID      string
	ManageSecurityGroups    bool
	Pools                   []Pool
	Rules                   []Rule
	TCP                     []Port
	UDP                     []Port
	Monitor                 Monitor
	CreateTLS               bool
	TLS                     []TLS
}

Terraform is an implementation of cloud provider Interface for Terraform.

func (*Terraform) DeleteLoadbalancer

func (*Terraform) DeleteLoadbalancer(lb Terraform, client v1core.CoreV1Interface, namespace string) error

func (*Terraform) EnsureLoadBalancer

func (*Terraform) EnsureLoadBalancer(lb Terraform, client v1core.CoreV1Interface, namespace string, templateCM string) (string, error)

Jump to

Keyboard shortcuts

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