template

package
v1.0.0-beta.5 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIClient

type APIClient struct {
	*clients.IonosServices
}

APIClient is a wrapper around IONOS Service

func (*APIClient) GetAPIClient

func (cp *APIClient) GetAPIClient() *sdkgo.APIClient

GetAPIClient gets the APIClient

func (*APIClient) GetTemplateIDByName

func (cp *APIClient) GetTemplateIDByName(ctx context.Context, templateName string) (string, error)

GetTemplateIDByName returns Template with the name specified

func (*APIClient) GetTemplates

func (cp *APIClient) GetTemplates(ctx context.Context) (sdkgo.Templates, *sdkgo.APIResponse, error)

GetTemplates returns all existing Templates

type Client

type Client interface {
	GetTemplates(ctx context.Context) (sdkgo.Templates, *sdkgo.APIResponse, error)
	GetTemplateIDByName(ctx context.Context, templateName string) (string, error)
	GetAPIClient() *sdkgo.APIClient
}

Client is a wrapper around IONOS Service Template methods

Jump to

Keyboard shortcuts

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