Versions in this module Expand all Collapse all v3 v3.0.0 Jan 5, 2022 Changes in this version + func List(c *gophercloud.ServiceClient, opts ListOptsBuilder) pagination.Pager + type CreateOpts struct + Action string + Description string + DestinationIPAddress string + DestinationPort string + Enabled *bool + IPVersion gophercloud.IPVersion + Name string + ProjectID string + Protocol Protocol + Shared *bool + SourceIPAddress string + SourcePort string + TenantID string + func (opts CreateOpts) ToRuleCreateMap() (map[string]interface{}, error) + type CreateOptsBuilder interface + ToRuleCreateMap func() (map[string]interface{}, error) + type CreateResult struct + func Create(c *gophercloud.ServiceClient, opts CreateOptsBuilder) (r CreateResult) + func (r CreateResult) Extract() (*Rule, error) + type DeleteResult struct + func Delete(c *gophercloud.ServiceClient, id string) (r DeleteResult) + type GetResult struct + func Get(c *gophercloud.ServiceClient, id string) (r GetResult) + func (r GetResult) Extract() (*Rule, error) + type ListOpts struct + Action string + Description string + DestinationIPAddress string + DestinationPort string + Enabled bool + ID string + IPVersion int + Limit int + Marker string + Name string + ProjectID string + Protocol string + SortDir string + SortKey string + SourceIPAddress string + SourcePort string + TenantID string + func (opts ListOpts) ToRuleListQuery() (string, error) + type ListOptsBuilder interface + ToRuleListQuery func() (string, error) + type Protocol string + const ProtocolAny + const ProtocolICMP + const ProtocolTCP + const ProtocolUDP + type Rule struct + Action string + Description string + DestinationIPAddress string + DestinationPort string + Enabled bool + ID string + IPVersion int + Name string + PolicyID string + Position int + ProjectID string + Protocol string + Shared bool + SourceIPAddress string + SourcePort string + TenantID string + func ExtractRules(r pagination.Page) ([]Rule, error) + type RulePage struct + func (r RulePage) IsEmpty() (bool, error) + func (r RulePage) NextPageURL() (string, error) + type UpdateOpts struct + Action *string + Description *string + DestinationIPAddress *string + DestinationPort *string + Enabled *bool + IPVersion *gophercloud.IPVersion + Name *string + Protocol *string + Shared *bool + SourceIPAddress *string + SourcePort *string + func (opts UpdateOpts) ToRuleUpdateMap() (map[string]interface{}, error) + type UpdateOptsBuilder interface + ToRuleUpdateMap func() (map[string]interface{}, error) + type UpdateResult struct + func Update(c *gophercloud.ServiceClient, id string, opts UpdateOptsBuilder) (r UpdateResult) + func (r UpdateResult) Extract() (*Rule, error) Other modules containing this package github.com/pierreprinetti/gophercloud github.com/pierreprinetti/gophercloud/v2