Documentation ¶
Index ¶
- func Create(c *gophercloud.ServiceClient, opts ports.CreateOptsBuilder) ports.CreateResult
- func Delete(c *gophercloud.ServiceClient, id string) ports.DeleteResult
- func Get(c *gophercloud.ServiceClient, id string) ports.GetResult
- func Update(c *gophercloud.ServiceClient, id string, opts ports.UpdateOptsBuilder) ports.UpdateResult
- type PortCreateOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(c *gophercloud.ServiceClient, opts ports.CreateOptsBuilder) ports.CreateResult
func Delete ¶
func Delete(c *gophercloud.ServiceClient, id string) ports.DeleteResult
func Get ¶
func Get(c *gophercloud.ServiceClient, id string) ports.GetResult
func Update ¶
func Update(c *gophercloud.ServiceClient, id string, opts ports.UpdateOptsBuilder) ports.UpdateResult
Types ¶
type PortCreateOpts ¶
type PortCreateOpts struct { ports.CreateOpts ValueSpecs map[string]string `json:"value_specs,omitempty"` }
PortCreateOpts represents the attributes used when creating a new port.
func (PortCreateOpts) ToPortCreateMap ¶
func (opts PortCreateOpts) ToPortCreateMap() (map[string]interface{}, error)
ToPortCreateMap casts a CreateOpts struct to a map. It overrides ports.ToPortCreateMap to add the ValueSpecs field.
Click to show internal directories.
Click to hide internal directories.