templates

package
v6.7.2 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Find added in v6.6.7

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

func Resolve(nameOrId string) (string, error)

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 TemplatesCmd() *core.Command

func TemplatesListCmd

func TemplatesListCmd() *core.Command

Types

This section is empty.

Jump to

Keyboard shortcuts

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