lb

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: May 1, 2017 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HealthCheckerSchema = &schema.Schema{
	Type:     schema.TypeList,
	Optional: true,
	MaxItems: 1,
	Elem: &schema.Resource{
		Schema: map[string]*schema.Schema{
			"interval_ms": {
				Type:     schema.TypeInt,
				Optional: true,
				Default:  30000,
			},
			"port": {
				Type:     schema.TypeInt,
				Required: true,
			},
			"protocol": {
				Type:     schema.TypeString,
				Required: true,
			},
			"response_body_regex": {
				Type:     schema.TypeString,
				Required: true,
			},
		},
	},
}
View Source
var SSLConfigSchema = &schema.Schema{
	Type:     schema.TypeList,
	Optional: true,
	MaxItems: 1,
	Elem: &schema.Resource{
		Schema: map[string]*schema.Schema{
			"certificate_name": {
				Type:     schema.TypeString,
				Required: true,
			},
			"verify_depth": {
				Type:     schema.TypeInt,
				Optional: true,
				Default:  5,
			},
			"verify_peer_certificate": {
				Type:     schema.TypeBool,
				Optional: true,
				Default:  true,
			},
		},
	},
}

Functions

func BackendDatasource

func BackendDatasource() *schema.Resource

func BackendSetDatasource

func BackendSetDatasource() *schema.Resource

func CertificateDatasource

func CertificateDatasource() *schema.Resource

func LoadBalancerBackendResource

func LoadBalancerBackendResource() *schema.Resource

func LoadBalancerBackendSetResource

func LoadBalancerBackendSetResource() *schema.Resource

func LoadBalancerCertificateResource

func LoadBalancerCertificateResource() *schema.Resource

func LoadBalancerDatasource

func LoadBalancerDatasource() *schema.Resource

func LoadBalancerListenerResource

func LoadBalancerListenerResource() *schema.Resource

func LoadBalancerResource

func LoadBalancerResource() *schema.Resource

func PolicyDatasource

func PolicyDatasource() *schema.Resource

func ProtocolDatasource

func ProtocolDatasource() *schema.Resource

func ShapeDatasource

func ShapeDatasource() *schema.Resource

Types

type BackendDatasourceCrud

type BackendDatasourceCrud struct {
	crud.BaseCrud
	Res *baremetal.ListBackends
}

func (*BackendDatasourceCrud) Get

func (s *BackendDatasourceCrud) Get() (e error)

func (*BackendDatasourceCrud) SetData

func (s *BackendDatasourceCrud) SetData()

type BackendSetDatasourceCrud

type BackendSetDatasourceCrud struct {
	crud.BaseCrud
	Res *baremetal.ListBackendSets
}

func (*BackendSetDatasourceCrud) Get

func (s *BackendSetDatasourceCrud) Get() (e error)

func (*BackendSetDatasourceCrud) SetData

func (s *BackendSetDatasourceCrud) SetData()

type CertificateDatasourceCrud

type CertificateDatasourceCrud struct {
	crud.BaseCrud
	Res *baremetal.ListCertificates
}

func (*CertificateDatasourceCrud) Get

func (s *CertificateDatasourceCrud) Get() (e error)

func (*CertificateDatasourceCrud) SetData

func (s *CertificateDatasourceCrud) SetData()

type LoadBalancerBackendResourceCrud

type LoadBalancerBackendResourceCrud struct {
	crud.BaseCrud
	WorkRequest *baremetal.WorkRequest
	Resource    *baremetal.Backend
}

func (*LoadBalancerBackendResourceCrud) Create

func (s *LoadBalancerBackendResourceCrud) Create() (e error)

func (*LoadBalancerBackendResourceCrud) CreatedPending

func (s *LoadBalancerBackendResourceCrud) CreatedPending() []string

func (*LoadBalancerBackendResourceCrud) CreatedTarget

func (s *LoadBalancerBackendResourceCrud) CreatedTarget() []string

func (*LoadBalancerBackendResourceCrud) Delete

func (s *LoadBalancerBackendResourceCrud) Delete() (e error)

func (*LoadBalancerBackendResourceCrud) DeletedPending

func (s *LoadBalancerBackendResourceCrud) DeletedPending() []string

func (*LoadBalancerBackendResourceCrud) DeletedTarget

func (s *LoadBalancerBackendResourceCrud) DeletedTarget() []string

func (*LoadBalancerBackendResourceCrud) Get

func (*LoadBalancerBackendResourceCrud) ID

func (*LoadBalancerBackendResourceCrud) RefreshWorkRequest

func (s *LoadBalancerBackendResourceCrud) RefreshWorkRequest() (*baremetal.WorkRequest, error)

RefreshWorkRequest returns the last updated workRequest

func (*LoadBalancerBackendResourceCrud) SetData

func (s *LoadBalancerBackendResourceCrud) SetData()

func (*LoadBalancerBackendResourceCrud) Update

func (s *LoadBalancerBackendResourceCrud) Update() (e error)

type LoadBalancerBackendSetResourceCrud

type LoadBalancerBackendSetResourceCrud struct {
	crud.BaseCrud
	WorkRequest  *baremetal.WorkRequest
	Resource     *baremetal.BackendSet
	ResourceName string
}

func (*LoadBalancerBackendSetResourceCrud) Create

func (s *LoadBalancerBackendSetResourceCrud) Create() (e error)

func (*LoadBalancerBackendSetResourceCrud) CreatedPending

func (s *LoadBalancerBackendSetResourceCrud) CreatedPending() []string

func (*LoadBalancerBackendSetResourceCrud) CreatedTarget

func (s *LoadBalancerBackendSetResourceCrud) CreatedTarget() []string

func (*LoadBalancerBackendSetResourceCrud) Delete

func (s *LoadBalancerBackendSetResourceCrud) Delete() (e error)

func (*LoadBalancerBackendSetResourceCrud) DeletedPending

func (s *LoadBalancerBackendSetResourceCrud) DeletedPending() []string

func (*LoadBalancerBackendSetResourceCrud) DeletedTarget

func (s *LoadBalancerBackendSetResourceCrud) DeletedTarget() []string

func (*LoadBalancerBackendSetResourceCrud) Get

func (*LoadBalancerBackendSetResourceCrud) ID

func (*LoadBalancerBackendSetResourceCrud) RefreshWorkRequest

func (s *LoadBalancerBackendSetResourceCrud) RefreshWorkRequest() (*baremetal.WorkRequest, error)

RefreshWorkRequest returns the last updated workRequest

func (*LoadBalancerBackendSetResourceCrud) SetData

func (*LoadBalancerBackendSetResourceCrud) Update

func (s *LoadBalancerBackendSetResourceCrud) Update() (e error)

type LoadBalancerCertificateResourceCrud

type LoadBalancerCertificateResourceCrud struct {
	crud.BaseCrud
	WorkRequest *baremetal.WorkRequest
	Resource    *baremetal.Certificate
}

func (*LoadBalancerCertificateResourceCrud) Create

func (*LoadBalancerCertificateResourceCrud) CreatedPending

func (s *LoadBalancerCertificateResourceCrud) CreatedPending() []string

func (*LoadBalancerCertificateResourceCrud) CreatedTarget

func (s *LoadBalancerCertificateResourceCrud) CreatedTarget() []string

func (*LoadBalancerCertificateResourceCrud) Delete

func (*LoadBalancerCertificateResourceCrud) DeletedPending

func (s *LoadBalancerCertificateResourceCrud) DeletedPending() []string

func (*LoadBalancerCertificateResourceCrud) DeletedTarget

func (s *LoadBalancerCertificateResourceCrud) DeletedTarget() []string

func (*LoadBalancerCertificateResourceCrud) Get

func (*LoadBalancerCertificateResourceCrud) ID

func (*LoadBalancerCertificateResourceCrud) RefreshWorkRequest

func (s *LoadBalancerCertificateResourceCrud) RefreshWorkRequest() (*baremetal.WorkRequest, error)

RefreshWorkRequest returns the last updated workRequest

func (*LoadBalancerCertificateResourceCrud) SetData

type LoadBalancerDatasourceCrud

type LoadBalancerDatasourceCrud struct {
	crud.BaseCrud
	Res *baremetal.ListLoadBalancers
}

func (*LoadBalancerDatasourceCrud) Get

func (s *LoadBalancerDatasourceCrud) Get() (e error)

func (*LoadBalancerDatasourceCrud) SetData

func (s *LoadBalancerDatasourceCrud) SetData()

type LoadBalancerListenerResourceCrud

type LoadBalancerListenerResourceCrud struct {
	crud.BaseCrud
	WorkRequest *baremetal.WorkRequest
	Resource    *baremetal.Listener
}

func (*LoadBalancerListenerResourceCrud) Create

func (s *LoadBalancerListenerResourceCrud) Create() (e error)

func (*LoadBalancerListenerResourceCrud) CreatedPending

func (s *LoadBalancerListenerResourceCrud) CreatedPending() []string

func (*LoadBalancerListenerResourceCrud) CreatedTarget

func (s *LoadBalancerListenerResourceCrud) CreatedTarget() []string

func (*LoadBalancerListenerResourceCrud) Delete

func (s *LoadBalancerListenerResourceCrud) Delete() (e error)

func (*LoadBalancerListenerResourceCrud) DeletedPending

func (s *LoadBalancerListenerResourceCrud) DeletedPending() []string

func (*LoadBalancerListenerResourceCrud) DeletedTarget

func (s *LoadBalancerListenerResourceCrud) DeletedTarget() []string

func (*LoadBalancerListenerResourceCrud) Get

func (*LoadBalancerListenerResourceCrud) GetListener

func (s *LoadBalancerListenerResourceCrud) GetListener(loadBalancerID, name string) (*baremetal.Listener, error)

TODO: move this into the SDK, onto the client

func (*LoadBalancerListenerResourceCrud) ID

ID uniquely identifies the listener and its parent load balancer

func (*LoadBalancerListenerResourceCrud) RefreshWorkRequest

func (s *LoadBalancerListenerResourceCrud) RefreshWorkRequest() (*baremetal.WorkRequest, error)

RefreshWorkRequest returns the last updated workRequest

func (*LoadBalancerListenerResourceCrud) SetData

func (s *LoadBalancerListenerResourceCrud) SetData()

func (*LoadBalancerListenerResourceCrud) Update

func (s *LoadBalancerListenerResourceCrud) Update() (e error)

type LoadBalancerResourceCrud

type LoadBalancerResourceCrud struct {
	crud.BaseCrud
	WorkRequest *baremetal.WorkRequest
	Resource    *baremetal.LoadBalancer
}

LoadBalancerResourceCrud wraps a baremetal.LoadBalancer to support crud

func (*LoadBalancerResourceCrud) Create

func (s *LoadBalancerResourceCrud) Create() (e error)

Create makes a request to create a new load balancer from the resourceData It should leave the work request set up

func (*LoadBalancerResourceCrud) CreatedPending

func (s *LoadBalancerResourceCrud) CreatedPending() []string

CreatedPending returns the resource states which qualify as "creating"

func (*LoadBalancerResourceCrud) CreatedTarget

func (s *LoadBalancerResourceCrud) CreatedTarget() []string

CreatedTarget returns the resource states which qualify as "created"

func (*LoadBalancerResourceCrud) Delete

func (s *LoadBalancerResourceCrud) Delete() (e error)

Delete makes a request to delete the load balancer

func (*LoadBalancerResourceCrud) DeletedPending

func (s *LoadBalancerResourceCrud) DeletedPending() []string

DeletedPending returns the resource states which qualify as "deleting"

func (*LoadBalancerResourceCrud) DeletedTarget

func (s *LoadBalancerResourceCrud) DeletedTarget() []string

DeletedTarget returns the resource states which qualify as "deleted"

func (*LoadBalancerResourceCrud) Get

func (s *LoadBalancerResourceCrud) Get() (e error)

Get makes a request to get the load balancer, populating s.Resource.

func (*LoadBalancerResourceCrud) ID

ID delegates to the load balancer ID, falling back to the work request ID

func (*LoadBalancerResourceCrud) RefreshWorkRequest

func (s *LoadBalancerResourceCrud) RefreshWorkRequest() (*baremetal.WorkRequest, error)

RefreshWorkRequest returns the last updated workRequest

func (*LoadBalancerResourceCrud) SetData

func (s *LoadBalancerResourceCrud) SetData()

SetData populates the resourceData from the model

func (*LoadBalancerResourceCrud) Update

func (s *LoadBalancerResourceCrud) Update() (e error)

Update makes a request to update the load balancer

type PoliciesDatasourceCrud

type PoliciesDatasourceCrud struct {
	crud.BaseCrud
	Res *baremetal.ListLoadBalancerPolicies
}

func (*PoliciesDatasourceCrud) Get

func (s *PoliciesDatasourceCrud) Get() (e error)

func (*PoliciesDatasourceCrud) SetData

func (s *PoliciesDatasourceCrud) SetData()

type ProtocolDatasourceCrud

type ProtocolDatasourceCrud struct {
	crud.BaseCrud
	Res *baremetal.ListLoadBalancerProtocols
}

func (*ProtocolDatasourceCrud) Get

func (s *ProtocolDatasourceCrud) Get() (e error)

func (*ProtocolDatasourceCrud) SetData

func (s *ProtocolDatasourceCrud) SetData()

type ShapeDatasourceCrud

type ShapeDatasourceCrud struct {
	crud.BaseCrud
	Res *baremetal.ListLoadBalancerShapes
}

func (*ShapeDatasourceCrud) Get

func (s *ShapeDatasourceCrud) Get() (e error)

func (*ShapeDatasourceCrud) SetData

func (s *ShapeDatasourceCrud) SetData()

Jump to

Keyboard shortcuts

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