Documentation ¶
Overview ¶
Package resourcecontroller implements resourcecontroller code.
Index ¶
- type ResourceController
- type Service
- func (s *Service) GetResourceInstance(getResourceInstanceOptions *resourcecontrollerv2.GetResourceInstanceOptions) (result *resourcecontrollerv2.ResourceInstance, response *core.DetailedResponse, ...)
- func (s *Service) GetServiceURL() string
- func (s *Service) ListResourceInstances(...) (result *resourcecontrollerv2.ResourceInstancesList, ...)
- func (s *Service) SetServiceURL(url string) error
- type ServiceOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResourceController ¶
type ResourceController interface { ListResourceInstances(listResourceInstancesOptions *resourcecontrollerv2.ListResourceInstancesOptions) (result *resourcecontrollerv2.ResourceInstancesList, response *core.DetailedResponse, err error) SetServiceURL(url string) error GetServiceURL() string }
ResourceController interface defines a method that a IBMCLOUD service object should implement in order to use the resourcecontrollerv2 package for listing resource instances.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service holds the IBM Cloud Resource Controller Service specific information.
func NewService ¶
func NewService(options ServiceOptions) (*Service, error)
NewService returns a new service for the IBM Cloud Resource Controller api client.
func (*Service) GetResourceInstance ¶
func (s *Service) GetResourceInstance(getResourceInstanceOptions *resourcecontrollerv2.GetResourceInstanceOptions) (result *resourcecontrollerv2.ResourceInstance, response *core.DetailedResponse, err error)
GetResourceInstance will get the resource instance.
func (*Service) GetServiceURL ¶ added in v0.3.0
GetServiceURL will get the service URL.
func (*Service) ListResourceInstances ¶
func (s *Service) ListResourceInstances(listResourceInstancesOptions *resourcecontrollerv2.ListResourceInstancesOptions) (result *resourcecontrollerv2.ResourceInstancesList, response *core.DetailedResponse, err error)
ListResourceInstances will list all the resorce instances.
func (*Service) SetServiceURL ¶ added in v0.3.0
SetServiceURL sets the service URL.
type ServiceOptions ¶
type ServiceOptions struct {
*resourcecontrollerv2.ResourceControllerV2Options
}
ServiceOptions holds the IBM Cloud Resource Controller Service Options specific information.