Documentation ¶
Index ¶
- func Find(found func(x ionoscloud.TemplateResponse) bool) (ionoscloud.TemplateResponse, error)
- func List(filters ...func(x ionoscloud.TemplateResponse) bool) ([]ionoscloud.TemplateResponse, error)
- func Resolve(nameOrId string) (string, error)
- func TemplatesCmd() *core.Command
- func TemplatesListCmd() *core.Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Find ¶ added in v6.6.7
func Find(found func(x ionoscloud.TemplateResponse) bool) (ionoscloud.TemplateResponse, error)
Find returns the first template for which found() returns true
func List ¶ added in v6.6.7
func List(filters ...func(x ionoscloud.TemplateResponse) bool) ([]ionoscloud.TemplateResponse, error)
List retrieves a list of templates, optionally filtered by a given funcs
func Resolve ¶ added in v6.6.7
Resolve resolves nameOrId to the ID of the template. If it's an ID, it's returned as is. If it's not, then it's a name, and we try to resolve it with a case sensitive "whole word match" operation for the name of the template
e.g.: - Resolve("S") -> "id of MongoDB Business S template" (note that 4XL_S is correctly ignored in this case) - Resolve("id of MongoDB Business L template") -> "id of MongoDB Business L template"
func TemplatesCmd ¶
func TemplatesListCmd ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.