healthcheck

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateOpts

type CreateOpts struct {
	ListenerID             string `json:"listener_id" required:"true"`
	HealthcheckProtocol    string `json:"healthcheck_protocol,omitempty"`
	HealthcheckUri         string `json:"healthcheck_uri,omitempty"`
	HealthcheckConnectPort int    `json:"healthcheck_connect_port,omitempty"`
	HealthyThreshold       int    `json:"healthy_threshold,omitempty"`
	UnhealthyThreshold     int    `json:"unhealthy_threshold,omitempty"`
	HealthcheckTimeout     int    `json:"healthcheck_timeout,omitempty"`
	HealthcheckInterval    int    `json:"healthcheck_interval,omitempty"`
}

CreateOpts is the common options struct used in this package's Create operation.

func (CreateOpts) ToHealthCheckCreateMap

func (opts CreateOpts) ToHealthCheckCreateMap() (map[string]interface{}, error)

ToHealthCheckCreateMap casts a CreateOpts struct to a map.

type CreateOptsBuilder

type CreateOptsBuilder interface {
	ToHealthCheckCreateMap() (map[string]interface{}, error)
}

CreateOptsBuilder is the interface options structs have to satisfy in order to be used in the main Create operation in this package. Since many extensions decorate or modify the common logic, it is useful for them to satisfy a basic interface in order for them to be used.

type CreateResult

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

func Create

func Create(c *golangsdk.ServiceClient, opts CreateOptsBuilder) (r CreateResult)

Create is an operation which provisions a new loadbalancer based on the configuration defined in the CreateOpts struct. Once the request is validated and progress has started on the provisioning process, a CreateResult will be returned.

Users with an admin role can create loadbalancers on behalf of other tenants by specifying a TenantID attribute different than their own.

func (CreateResult) Extract

func (r CreateResult) Extract() (*HealthCheck, error)

type DeleteResult

type DeleteResult struct {
	golangsdk.ErrResult
}

DeleteResult represents the result of a delete operation.

func Delete

func Delete(c *golangsdk.ServiceClient, id string) (r DeleteResult)

Delete will permanently delete a particular HealthCheck based on its unique ID.

type GetResult

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

GetResult represents the result of a get operation.

func Get

func Get(c *golangsdk.ServiceClient, id string) (r GetResult)

Get retrieves a particular Loadbalancer based on its unique ID.

func (GetResult) Extract

func (r GetResult) Extract() (*HealthCheck, error)

type HealthCheck

type HealthCheck struct {
	HealthcheckInterval    int    `json:"healthcheck_interval"`
	ListenerID             string `json:"listener_id"`
	ID                     string `json:"id"`
	HealthcheckProtocol    string `json:"healthcheck_protocol"`
	UnhealthyThreshold     int    `json:"unhealthy_threshold"`
	UpdateTime             string `json:"update_time"`
	CreateTime             string `json:"create_time"`
	HealthcheckConnectPort int    `json:"healthcheck_connect_port"`
	HealthcheckTimeout     int    `json:"healthcheck_timeout"`
	HealthcheckUri         string `json:"healthcheck_uri"`
	HealthyThreshold       int    `json:"healthy_threshold"`
}

type UpdateOpts

type UpdateOpts struct {
	HealthcheckProtocol    string `json:"healthcheck_protocol,omitempty"`
	HealthcheckUri         string `json:"healthcheck_uri,omitempty"`
	HealthcheckConnectPort int    `json:"healthcheck_connect_port,omitempty"`
	HealthyThreshold       int    `json:"healthy_threshold,omitempty"`
	UnhealthyThreshold     int    `json:"unhealthy_threshold,omitempty"`
	HealthcheckTimeout     int    `json:"healthcheck_timeout,omitempty"`
	HealthcheckInterval    int    `json:"healthcheck_interval,omitempty"`
}

UpdateOpts is the common options struct used in this package's Update operation.

func (UpdateOpts) IsNeedUpdate

func (opts UpdateOpts) IsNeedUpdate() (bool, error)

func (UpdateOpts) ToHealthCheckUpdateMap

func (opts UpdateOpts) ToHealthCheckUpdateMap() (map[string]interface{}, error)

ToHealthCheckUpdateMap casts a UpdateOpts struct to a map.

type UpdateOptsBuilder

type UpdateOptsBuilder interface {
	ToHealthCheckUpdateMap() (map[string]interface{}, error)
}

UpdateOptsBuilder is the interface options structs have to satisfy in order to be used in the main Update operation in this package. Since many extensions decorate or modify the common logic, it is useful for them to satisfy a basic interface in order for them to be used.

type UpdateResult

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

func Update

func Update(c *golangsdk.ServiceClient, id string, opts UpdateOpts) (r UpdateResult)

Update is an operation which modifies the attributes of the specified HealthCheck.

func (UpdateResult) Extract

func (r UpdateResult) Extract() (*HealthCheck, error)

Jump to

Keyboard shortcuts

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