vrrpinterfaces

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MPL-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 {
	Name          string `json:"name,omitempty"`
	Description   string `json:"description,omitempty"`
	DCVRRPID      string `json:"dc_vrrp_id"`
	DCInterfaceID string `json:"dc_interface_id"`
	Priority      int    `json:"priority,omitempty"`
	Preempt       *bool  `json:"preempt,omitempty"`
	Master        *bool  `json:"master,omitempty"`
}

type CreateResult

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

func Create

func Create(client *gophercloud.ServiceClient, opts OptsBuilder) (r CreateResult)

func (CreateResult) Extract

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

type DeleteResult

type DeleteResult struct {
	gophercloud.ErrResult
}

func Delete

func Delete(client *gophercloud.ServiceClient, id string) (r DeleteResult)

type GetResult

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

func Get

func Get(client *gophercloud.ServiceClient, id string) (r GetResult)

func (GetResult) Extract

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

type OptsBuilder

type OptsBuilder interface {
	Map() (map[string]interface{}, error)
}

type UpdateOpts

type UpdateOpts struct {
	Name        string `json:"name,omitempty"`
	Description string `json:"description,omitempty"`
	Priority    int    `json:"priority,omitempty"`
	Preempt     *bool  `json:"preempt,omitempty"`
	Master      *bool  `json:"master,omitempty"`
}

type UpdateResult

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

func Update

func Update(client *gophercloud.ServiceClient, id string, opts OptsBuilder) (r UpdateResult)

func (UpdateResult) Extract

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

type VRRPInterface

type VRRPInterface struct {
	ID            string `json:"id"`
	Name          string `json:"name"`
	Description   string `json:"description"`
	DCVRRPID      string `json:"dc_vrrp_id"`
	DCInterfaceID string `json:"dc_interface_id"`
	Priority      int    `json:"priority"`
	Preempt       bool   `json:"preempt"`
	Master        bool   `json:"master"`
	CreatedAt     string `json:"created_at"`
	UpdatedAt     string `json:"updated_at"`
}

type VRRPInterfaceCreate

type VRRPInterfaceCreate struct {
	VRRPInterface *CreateOpts `json:"dc_vrrp_interface"`
}

func (*VRRPInterfaceCreate) Map

func (opts *VRRPInterfaceCreate) Map() (map[string]interface{}, error)

type VRRPInterfaceResp

type VRRPInterfaceResp struct {
	VRRPInterface VRRPInterface `json:"dc_vrrp_interface"`
}

type VRRPInterfaceUpdate

type VRRPInterfaceUpdate struct {
	VRRPInterface *UpdateOpts `json:"dc_vrrp_interface"`
}

func (*VRRPInterfaceUpdate) Map

func (opts *VRRPInterfaceUpdate) Map() (map[string]interface{}, error)

Jump to

Keyboard shortcuts

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