Documentation ¶
Overview ¶
Package resourcemanager implements resourcemanager code. Manage lifecycle of cloud resource groups using Resource Manager APIs.
Index ¶
- type ResourceManager
- type Service
- func (s *Service) GetResourceGroup(getResourceGroupOptions *resourcemanagerv2.GetResourceGroupOptions) (*resourcemanagerv2.ResourceGroup, *core.DetailedResponse, error)
- func (s *Service) GetResourceGroupByName(rgName string) (*resourcemanagerv2.ResourceGroup, error)
- func (s *Service) ListResourceGroups(listResourceGroupsOptions *resourcemanagerv2.ListResourceGroupsOptions) (result *resourcemanagerv2.ResourceGroupList, response *core.DetailedResponse, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResourceManager ¶
type ResourceManager interface { GetResourceGroup(*resourcemanagerv2.GetResourceGroupOptions) (*resourcemanagerv2.ResourceGroup, *core.DetailedResponse, error) ListResourceGroups(*resourcemanagerv2.ListResourceGroupsOptions) (*resourcemanagerv2.ResourceGroupList, *core.DetailedResponse, error) GetResourceGroupByName(string) (*resourcemanagerv2.ResourceGroup, error) }
ResourceManager interface defines a method that a IBMCLOUD service object should implement in order to use the manage lifecycle of cloud resource groups using Resource Manager APIs.
func NewService ¶
func NewService(options *resourcemanagerv2.ResourceManagerV2Options) (ResourceManager, error)
NewService returns a new service for the resource manager.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service holds the IBM Cloud Resource Manager Service specific information.
func (*Service) GetResourceGroup ¶ added in v0.9.0
func (s *Service) GetResourceGroup(getResourceGroupOptions *resourcemanagerv2.GetResourceGroupOptions) (*resourcemanagerv2.ResourceGroup, *core.DetailedResponse, error)
GetResourceGroup returns a Resource Group.
func (*Service) GetResourceGroupByName ¶ added in v0.9.0
func (s *Service) GetResourceGroupByName(rgName string) (*resourcemanagerv2.ResourceGroup, error)
GetResourceGroupByName returns the Resource Group with the provided name, if found.
func (*Service) ListResourceGroups ¶
func (s *Service) ListResourceGroups(listResourceGroupsOptions *resourcemanagerv2.ListResourceGroupsOptions) (result *resourcemanagerv2.ResourceGroupList, response *core.DetailedResponse, err error)
ListResourceGroups lists the resource groups.
Click to show internal directories.
Click to hide internal directories.