Versions in this module Expand all Collapse all v1 v1.0.21 Mar 14, 2020 Changes in this version + func List(client *gophercloud.ServiceClient) pagination.Pager + func ListByServer(client *gophercloud.ServiceClient, serverID string) pagination.Pager + type AddServerResult struct + func AddServer(client *gophercloud.ServiceClient, serverID, groupName string) (r AddServerResult) + type CreateOpts GroupOpts + func (opts CreateOpts) ToSecGroupCreateMap() (map[string]interface{}, error) + type CreateOptsBuilder interface + ToSecGroupCreateMap func() (map[string]interface{}, error) + type CreateResult struct + func Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder) (r CreateResult) + func (r CreateResult) Extract() (*SecurityGroup, error) + type CreateRuleOpts struct + CIDR string + FromGroupID string + FromPort int + IPProtocol string + ParentGroupID string + ToPort int + func (opts CreateRuleOpts) ToRuleCreateMap() (map[string]interface{}, error) + type CreateRuleOptsBuilder interface + ToRuleCreateMap func() (map[string]interface{}, error) + type CreateRuleResult struct + func CreateRule(client *gophercloud.ServiceClient, opts CreateRuleOptsBuilder) (r CreateRuleResult) + func (r CreateRuleResult) Extract() (*Rule, error) + type DeleteResult struct + func Delete(client *gophercloud.ServiceClient, id string) (r DeleteResult) + type DeleteRuleResult struct + func DeleteRule(client *gophercloud.ServiceClient, id string) (r DeleteRuleResult) + type GetResult struct + func Get(client *gophercloud.ServiceClient, id string) (r GetResult) + func (r GetResult) Extract() (*SecurityGroup, error) + type Group struct + Name string + TenantID string + type GroupOpts struct + Description string + Name string + type IPRange struct + CIDR string + type RemoveServerResult struct + func RemoveServer(client *gophercloud.ServiceClient, serverID, groupName string) (r RemoveServerResult) + type Rule struct + FromPort int + Group Group + ID string + IPProtocol string + IPRange IPRange + ParentGroupID string + ToPort int + func (r *Rule) UnmarshalJSON(b []byte) error + type SecurityGroup struct + Description string + ID string + Name string + Rules []Rule + TenantID string + func ExtractSecurityGroups(r pagination.Page) ([]SecurityGroup, error) + func (r *SecurityGroup) UnmarshalJSON(b []byte) error + type SecurityGroupPage struct + func (page SecurityGroupPage) IsEmpty() (bool, error) + type UpdateOpts GroupOpts + func (opts UpdateOpts) ToSecGroupUpdateMap() (map[string]interface{}, error) + type UpdateOptsBuilder interface + ToSecGroupUpdateMap func() (map[string]interface{}, error) + type UpdateResult struct + func Update(client *gophercloud.ServiceClient, id string, opts UpdateOptsBuilder) (r UpdateResult) + func (r UpdateResult) Extract() (*SecurityGroup, error)