resource

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKey

func CreateKey(session *session.Session, name string, crn crn.CRN, parameters map[string]interface{}) (id string, credentials map[string]interface{}, err error)

func CreateServiceInstance

func CreateServiceInstance(session *session.Session, externalName, servicePlanID, resourceGroupID, targetCrn string, params map[string]interface{}, tags []string) (id, state string, err error)

func DeleteKey

func DeleteKey(session *session.Session, keyID string) error

func DeleteServiceInstance

func DeleteServiceInstance(session *session.Session, instanceID string, logt logr.Logger) error

func GetKey

func GetKey(session *session.Session, keyID string) (guid, name string, credentials map[string]interface{}, err error)

func GetServiceAliasInstance

func GetServiceAliasInstance(session *session.Session, instanceID, resourceGroupID, servicePlanID, externalName string, logt logr.Logger) (id, state string, err error)

GetServiceAliasInstance retrieves a service instance ID and state with optional 'instanceID'. instanceID is only used to resolve name conflicts.

func GetServiceInstanceCRN

func GetServiceInstanceCRN(session *session.Session, instanceID string) (instanceCRN crn.CRN, serviceID string, err error)

func GetServiceInstanceState

func GetServiceInstanceState(session *session.Session, resourceGroupID, servicePlanID, externalName, instanceID string) (state string, err error)

func GetServiceName

func GetServiceName(session *session.Session, serviceID string) (string, error)

func UpdateServiceInstance

func UpdateServiceInstance(session *session.Session, serviceInstanceID, externalName, servicePlanID string, params map[string]interface{}, tags []string) (state string, err error)

Types

type KeyCreator

type KeyCreator func(session *session.Session, name string, crn crn.CRN, parameters map[string]interface{}) (id string, credentials map[string]interface{}, err error)

type KeyDeleter

type KeyDeleter func(session *session.Session, keyID string) error

type KeyGetter

type KeyGetter func(session *session.Session, keyID string) (guid, name string, credentials map[string]interface{}, err error)

type NotFoundError

type NotFoundError struct {
	Err error
}

func (NotFoundError) Error added in v0.2.4

func (n NotFoundError) Error() string

type ServiceAliasInstanceGetter

type ServiceAliasInstanceGetter func(session *session.Session, instanceID, resourceGroupID, servicePlanID, externalName string, logt logr.Logger) (id, state string, err error)

type ServiceInstanceCRNGetter

type ServiceInstanceCRNGetter func(session *session.Session, instanceID string) (instanceCRN crn.CRN, serviceID string, err error)

type ServiceInstanceCreator

type ServiceInstanceCreator func(session *session.Session, externalName, servicePlanID, resourceGroupID, targetCrn string, params map[string]interface{}, tags []string) (id, state string, err error)

type ServiceInstanceDeleter

type ServiceInstanceDeleter func(session *session.Session, instanceID string, logt logr.Logger) error

type ServiceInstanceStatusGetter

type ServiceInstanceStatusGetter func(session *session.Session, resourceGroupID, servicePlanID, externalName, instanceID string) (state string, err error)

type ServiceInstanceUpdater

type ServiceInstanceUpdater func(session *session.Session, serviceInstanceID, externalName, servicePlanID string, params map[string]interface{}, tags []string) (state string, err error)

type ServiceNameGetter

type ServiceNameGetter func(session *session.Session, serviceID string) (string, error)

Jump to

Keyboard shortcuts

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