Documentation ¶
Index ¶
- func GetResourceByFuncs[T cloudprovider.ICloudResource](objs []T, idFs []func(T) string, id string) (T, error)
- func GetResourceByGlobalId[T cloudprovider.ICloudResource](objs []T, id string) (T, error)
- func GetResourceById[T cloudprovider.ICloudResource](objs []T, id string) (T, error)
- func GetResourceByIdOrName[T cloudprovider.ICloudResource](objs []T, idOrName string) (T, error)
- func GetResourceByName[T cloudprovider.ICloudResource](objs []T, id string) (T, error)
- func GetResourceGlobalId[T cloudprovider.ICloudResource](obj T) string
- func GetResourceId[T cloudprovider.ICloudResource](obj T) string
- func GetResourceName[T cloudprovider.ICloudResource](obj T) string
- func Iter[T cloudprovider.ICloudResource](objs []T, f func(T) error, continueOnErr bool) error
- type Operator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetResourceByFuncs ¶
func GetResourceByFuncs[T cloudprovider.ICloudResource](objs []T, idFs []func(T) string, id string) (T, error)
func GetResourceByGlobalId ¶
func GetResourceByGlobalId[T cloudprovider.ICloudResource](objs []T, id string) (T, error)
func GetResourceById ¶
func GetResourceById[T cloudprovider.ICloudResource](objs []T, id string) (T, error)
func GetResourceByIdOrName ¶
func GetResourceByIdOrName[T cloudprovider.ICloudResource](objs []T, idOrName string) (T, error)
func GetResourceByName ¶
func GetResourceByName[T cloudprovider.ICloudResource](objs []T, id string) (T, error)
func GetResourceGlobalId ¶
func GetResourceGlobalId[T cloudprovider.ICloudResource](obj T) string
func GetResourceId ¶
func GetResourceId[T cloudprovider.ICloudResource](obj T) string
func GetResourceName ¶
func GetResourceName[T cloudprovider.ICloudResource](obj T) string
func Iter ¶
func Iter[T cloudprovider.ICloudResource](objs []T, f func(T) error, continueOnErr bool) error
Types ¶
type Operator ¶
type Operator[T cloudprovider.ICloudResource] struct { // contains filtered or unexported fields }
func NewOperator ¶
func NewOperator[T cloudprovider.ICloudResource](nf func() ([]T, error)) (*Operator[T], error)
Click to show internal directories.
Click to hide internal directories.