Documentation ¶
Index ¶
- func Create(c *gophercloud.ServiceClient, opts networks.CreateOptsBuilder) networks.CreateResult
- func Delete(c *gophercloud.ServiceClient, networkID string) networks.DeleteResult
- func Get(c *gophercloud.ServiceClient, id string) networks.GetResult
- func Update(c *gophercloud.ServiceClient, networkID string, ...) networks.UpdateResult
- type NetworkCreateOpts
- type NetworkUpdateOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(c *gophercloud.ServiceClient, opts networks.CreateOptsBuilder) networks.CreateResult
func Delete ¶
func Delete(c *gophercloud.ServiceClient, networkID string) networks.DeleteResult
func Get ¶
func Get(c *gophercloud.ServiceClient, id string) networks.GetResult
func Update ¶
func Update(c *gophercloud.ServiceClient, networkID string, opts networks.UpdateOptsBuilder) networks.UpdateResult
Types ¶
type NetworkCreateOpts ¶
type NetworkCreateOpts struct { networks.CreateOpts ValueSpecs map[string]string `json:"value_specs,omitempty"` PrivateDNSDomain string `json:"private_dns_domain,omitempty"` ServicesAccess bool `json:"enable_shadow_port,omitempty"` }
NetworkCreateOpts represents the attributes used when creating a new network.
func (NetworkCreateOpts) ToNetworkCreateMap ¶
func (opts NetworkCreateOpts) ToNetworkCreateMap() (map[string]interface{}, error)
ToNetworkCreateMap casts a CreateOpts struct to a map. It overrides networks.ToNetworkCreateMap to add the ValueSpecs field.
type NetworkUpdateOpts ¶
type NetworkUpdateOpts struct { networks.UpdateOpts ServicesAccess *bool `json:"enable_shadow_port,omitempty"` }
NetworkUpdateOpts represents the attributes used when updating a network.
func (NetworkUpdateOpts) ToNetworkUpdateMap ¶
func (opts NetworkUpdateOpts) ToNetworkUpdateMap() (map[string]interface{}, error)
ToNetworkUpdateMap casts a UpdateOpts struct to a map. It overrides networks.ToNetworkUpdateMap to add the ServicesAccess field.
Click to show internal directories.
Click to hide internal directories.