resourcemanager

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package resourcemanager implements resourcemanager code. Manage lifecycle of cloud resource groups using Resource Manager APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceManager

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

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.

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL