Versions in this module Expand all Collapse all v2 v2.2.1 Sep 25, 2024 Changes in this version + func List(client *gophercloud.ServiceClient, opts ListOptsBuilder) pagination.Pager + type CreateOpts struct + Name string + Policies []string + Policy string + Rules *Rules + func (opts CreateOpts) ToServerGroupCreateMap() (map[string]any, error) + type CreateOptsBuilder interface + ToServerGroupCreateMap func() (map[string]any, error) + type CreateResult struct + func Create(ctx context.Context, client *gophercloud.ServiceClient, opts CreateOptsBuilder) (r CreateResult) + type DeleteResult struct + func Delete(ctx context.Context, client *gophercloud.ServiceClient, id string) (r DeleteResult) + type GetResult struct + func Get(ctx context.Context, client *gophercloud.ServiceClient, id string) (r GetResult) + type ListOpts struct + AllProjects bool + Limit int + Offset int + func (opts ListOpts) ToServerListQuery() (string, error) + type ListOptsBuilder interface + ToServerListQuery func() (string, error) + type Rules struct + MaxServerPerHost int + type ServerGroup struct + ID string + Members []string + Metadata map[string]any + Name string + Policies []string + Policy *string + ProjectID string + Rules *Rules + UserID string + func ExtractServerGroups(r pagination.Page) ([]ServerGroup, error) + type ServerGroupPage struct + func (page ServerGroupPage) IsEmpty() (bool, error) + type ServerGroupResult struct + func (r ServerGroupResult) Extract() (*ServerGroup, error)