lbprobe

package
v0.0.0-...-ea4a84b Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2018 License: MPL-2.0 Imports: 9 Imported by: 0

README

#Azure Load balancer

Create a LoadBalancer Resource.

Argument reference

The following arguments are supported:

  • name : (Required) Specifies the name of the Probe.

  • resource_group_name : (Required) The name of the resource group in which to create the resource.

  • loadbalancer_id : (Required) The ID of the LoadBalancer in which to create the NAT Rule.

  • protocol : (Optional) Specifies the protocol of the end point. Possible values are Http or Tcp. If Tcp is specified, a received ACK is required for the probe to be successful. If Http is specified, a 200 OK response from the specified URI is required for the probe to be successful.

  • port : (Required) Port on which the Probe queries the backend endpoint. Possible values range from 1 to 65535, inclusive.

  • request_path : (Optional) The URI used for requesting health status from the backend endpoint. Required if protocol is set to Http. Otherwise, it is not allowed.

  • interval_in_seconds : (Optional) The interval, in seconds between probes to the backend endpoint for health status. The default value is 15, the minimum value is 5.

  • number_of_probes : (Optional) The number of failed probe attempts after which the backend endpoint is removed from rotation. The default value is 2. NumberOfProbes multiplied by intervalInSeconds value must be greater or equal to 10.Endpoints are returned to rotation when at least one probe is successful.

Attributes reference

The following attributes are exported:

  • id : The ID of the LoadBalancer to which the resource is attached.

Dependencies

This resource has required dependencies on:

And optinal ones through:

Example

You'll find a json example here

Running "real" tests

This library is provided with a suite of "real" tests to be ran against Azure. In order to run load balancer specific tests, you'll need to setup your test suite as described here

And then run load balancers specific tests from the root of the project with:

$ gucumber --tags=@lb_probe

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(subject, cryptoKey string, body []byte, val *validator.Validator) (event.Event, error)

New : Constructor

Types

type Event

type Event struct {
	event.Base
	types.Event
	ErrorMessage string               `json:"error,omitempty" diff:"-"`
	CryptoKey    string               `json:"-" diff:"-"`
	Validator    *validator.Validator `json:"-" diff:"-"`
}

Event : This is the Ernest representation of an azure lb

func (*Event) Clone

func (ev *Event) Clone() (event.Event, error)

Clone : will mark the event as errored

func (*Event) Error

func (ev *Event) Error(err error)

Error : will mark the event as errored

func (*Event) EventToResourceData

func (ev *Event) EventToResourceData(d *schema.ResourceData) error

EventToResourceData : Translates the current event on a valid ResourceData

func (*Event) GetID

func (ev *Event) GetID() string

GetID : id getter

func (*Event) ResourceDataToEvent

func (ev *Event) ResourceDataToEvent(d *schema.ResourceData) error

ResourceDataToEvent : Translates a ResourceData on a valid Ernest Event

func (*Event) SetComponents

func (ev *Event) SetComponents(components []event.Event)

SetComponents : ....

func (*Event) SetID

func (ev *Event) SetID(id string)

SetID : id setter

func (*Event) SetState

func (ev *Event) SetState(state string)

SetState : state setter

func (*Event) ValidateID

func (ev *Event) ValidateID(id string) bool

ValidateID : determines if the given id is valid for this resource type

Jump to

Keyboard shortcuts

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