Exemplo n.º 1
0
func (command *commandPreview) Execute(resource *handler.Resource) {
	opts := resource.Params.(*paramsPreview).opts
	stack, err := osStacks.Preview(command.Ctx.ServiceClient, opts).Extract()
	if err != nil {
		resource.Err = err
		return
	}
	resource.Result = stack
}
Exemplo n.º 2
0
// Preview provides a preview of a stack based on the options provided.
func Preview(c *gophercloud.ServiceClient, opts os.PreviewOptsBuilder) os.PreviewResult {
	return os.Preview(c, opts)
}