resourcecontroller

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

Package resourcecontroller implements resourcecontroller code.

Index

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

func (s *Service) GetServiceURL() string

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

func (s *Service) SetServiceURL(url string) error

SetServiceURL sets the service URL.

type ServiceOptions

type ServiceOptions struct {
	*resourcecontrollerv2.ResourceControllerV2Options
}

ServiceOptions holds the IBM Cloud Resource Controller Service Options specific information.

Jump to

Keyboard shortcuts

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