ipportforwardings

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 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 {
	DCInterfaceID string  `json:"dc_interface_id"`
	Protocol      string  `json:"protocol"`
	Source        *string `json:"source"`
	Destination   *string `json:"destination"`
	Port          *int64  `json:"port"`
	ToDestination string  `json:"to_destination"`
	ToPort        *int64  `json:"to_port"`
	Name          string  `json:"name,omitempty"`
	Description   string  `json:"description,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() (*IPPortForwarding, 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() (*IPPortForwarding, error)

type IPPortForwarding

type IPPortForwarding struct {
	DCInterfaceID string  `json:"dc_interface_id"`
	Protocol      string  `json:"protocol"`
	Source        *string `json:"source"`
	Destination   *string `json:"destination"`
	Port          *int64  `json:"port"`
	ToDestination string  `json:"to_destination"`
	ToPort        *int64  `json:"to_port"`
	Name          string  `json:"name,omitempty"`
	Description   string  `json:"description,omitempty"`
	CreatedAt     string  `json:"created_at"`
	ID            string  `json:"id"`
	UpdatedAt     string  `json:"updated_at"`
}

type IPPortForwardingCreate

type IPPortForwardingCreate struct {
	IPPortForwarding *CreateOpts `json:"dc_ip_port_forwarding"`
}

func (*IPPortForwardingCreate) Map

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

type IPPortForwardingResp

type IPPortForwardingResp struct {
	IPPortForwarding IPPortForwarding `json:"dc_ip_port_forwarding"`
}

type IPPortForwardingUpdate

type IPPortForwardingUpdate struct {
	IPPortForwarding *UpdateOpts `json:"dc_ip_port_forwarding"`
}

func (*IPPortForwardingUpdate) Map

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

type OptsBuilder

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

type UpdateOpts

type UpdateOpts struct {
	Protocol      string  `json:"protocol,omitempty"`
	Source        *string `json:"source"`
	Destination   *string `json:"destination"`
	Port          *int64  `json:"port"`
	ToDestination string  `json:"to_destination,omitempty"`
	ToPort        *int64  `json:"to_port"`
	Name          string  `json:"name,omitempty"`
	Description   string  `json:"description,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() (*IPPortForwarding, error)

Jump to

Keyboard shortcuts

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