api

package
Version: v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: MPL-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultFirewallSettings

func DefaultFirewallSettings() map[string]interface{}

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func New

func New(baseUrl, apiKey string, useragent string) *API

func (*API) AcceptVpcPeering

func (api *API) AcceptVpcPeering(instanceID int, peeringID string) (map[string]interface{}, error)

func (*API) CreateAlarm

func (api *API) CreateAlarm(instanceID int, params map[string]interface{}) (map[string]interface{}, error)

func (*API) CreateFirewallSettings

func (api *API) CreateFirewallSettings(instanceID int, params []map[string]interface{}) ([]map[string]interface{}, error)

func (*API) CreateInstance

func (api *API) CreateInstance(params map[string]interface{}) (map[string]interface{}, error)

func (*API) CreateIntegration added in v1.3.0

func (api *API) CreateIntegration(instanceID int, intType string, intName string, params map[string]interface{}) (map[string]interface{}, error)

CreateIntegration enables integration communication, either for logs or metrics.

func (*API) CreateNotification

func (api *API) CreateNotification(instanceID int, params map[string]interface{}) (map[string]interface{}, error)

func (*API) CreateWebhook added in v1.3.4

func (api *API) CreateWebhook(instanceID int, params map[string]interface{}) (map[string]interface{}, error)

CreateWebhook - create a webhook for a vhost and a specific qeueu

func (*API) DefaultRmqVersion

func (api *API) DefaultRmqVersion() (map[string]interface{}, error)

func (*API) DeleteAlarm

func (api *API) DeleteAlarm(instanceID int, params map[string]interface{}) error

func (*API) DeleteFirewallSettings

func (api *API) DeleteFirewallSettings(instanceID int) ([]map[string]interface{}, error)

func (*API) DeleteInstance

func (api *API) DeleteInstance(instanceID string) error

func (*API) DeleteIntegration added in v1.3.0

func (api *API) DeleteIntegration(instanceID int, intType, intID string) error

DeleteIntegration removes log or metric integration.

func (*API) DeleteNotification

func (api *API) DeleteNotification(instanceID int, params map[string]interface{}) error

func (*API) DeletePlugin added in v1.3.2

func (api *API) DeletePlugin(instanceID int, pluginName string) error

func (*API) DeleteWebhook added in v1.3.4

func (api *API) DeleteWebhook(instanceID int, webhookID string) error

DeleteWebhook - removes a specific webhook for an instance

func (*API) DisablePlugin

func (api *API) DisablePlugin(instanceID int, pluginName string) (map[string]interface{}, error)

func (*API) DisablePluginCommunity

func (api *API) DisablePluginCommunity(instanceID int, pluginName string) (map[string]interface{}, error)

func (*API) EnablePlugin

func (api *API) EnablePlugin(instanceID int, pluginName string) (map[string]interface{}, error)

func (*API) EnablePluginCommunity

func (api *API) EnablePluginCommunity(instanceID int, pluginName string) (map[string]interface{}, error)

func (*API) ReadAlarm

func (api *API) ReadAlarm(instanceID int, alarmID string) (map[string]interface{}, error)

func (*API) ReadAlarms

func (api *API) ReadAlarms(instanceID int) ([]map[string]interface{}, error)

func (*API) ReadCredentials

func (api *API) ReadCredentials(id int) (map[string]interface{}, error)

func (*API) ReadFirewallSettings

func (api *API) ReadFirewallSettings(instanceID int) ([]map[string]interface{}, error)

func (*API) ReadInstance

func (api *API) ReadInstance(instanceID string) (map[string]interface{}, error)

func (*API) ReadInstances

func (api *API) ReadInstances() ([]map[string]interface{}, error)

func (*API) ReadIntegration added in v1.3.0

func (api *API) ReadIntegration(instanceID int, intType, intID string) (map[string]interface{}, error)

ReadIntegration retrieves a specific logs or metrics integration

func (*API) ReadNodes added in v1.3.1

func (api *API) ReadNodes(instanceID int) ([]map[string]interface{}, error)

ReadNodes - read out node information of the cluster

func (*API) ReadNotification

func (api *API) ReadNotification(instanceID int, recipientID string) (map[string]interface{}, error)

func (*API) ReadNotifications added in v1.1.1

func (api *API) ReadNotifications(instanceID int) ([]map[string]interface{}, error)

func (*API) ReadPlugin

func (api *API) ReadPlugin(instanceID int, pluginName string) (map[string]interface{}, error)

func (*API) ReadPluginCommunity

func (api *API) ReadPluginCommunity(instanceID int, pluginName string) (map[string]interface{}, error)

func (*API) ReadPlugins

func (api *API) ReadPlugins(instanceID int) ([]map[string]interface{}, error)

func (*API) ReadPluginsCommunity

func (api *API) ReadPluginsCommunity(instanceID int) ([]map[string]interface{}, error)

func (*API) ReadVpcInfo

func (api *API) ReadVpcInfo(instanceID int) (map[string]interface{}, error)

func (*API) ReadVpcPeeringRequest

func (api *API) ReadVpcPeeringRequest(instanceID int, peeringID string) (map[string]interface{}, error)

func (*API) ReadWebhook added in v1.3.4

func (api *API) ReadWebhook(instanceID int, webhookID string) (map[string]interface{}, error)

ReadWebhook - retrieves a specific webhook for an instance

func (*API) ReadWebhooks added in v1.3.4

func (api *API) ReadWebhooks(instanceID int) (map[string]interface{}, error)

ReadWebhooks - retrieves all webhooks for an instance.

func (*API) RemoveVpcPeering

func (api *API) RemoveVpcPeering(instanceID int, peeringID string) error

func (*API) UpdateAlarm

func (api *API) UpdateAlarm(instanceID int, params map[string]interface{}) error

func (*API) UpdateFirewallSettings

func (api *API) UpdateFirewallSettings(instanceID int, params []map[string]interface{}) ([]map[string]interface{}, error)

func (*API) UpdateInstance

func (api *API) UpdateInstance(instanceID string, params map[string]interface{}) error

func (*API) UpdateIntegration added in v1.3.0

func (api *API) UpdateIntegration(instanceID int, intType, intID string, params map[string]interface{}) error

UpdateIntegration updated the integration with new information

func (*API) UpdateNotification

func (api *API) UpdateNotification(instanceID int, params map[string]interface{}) error

func (*API) UpdatePlugin

func (api *API) UpdatePlugin(instanceID int, params map[string]interface{}) (map[string]interface{}, error)

func (*API) UpdatePluginCommunity

func (api *API) UpdatePluginCommunity(instanceID int, params map[string]interface{}) (map[string]interface{}, error)

func (*API) UrlInformation

func (api *API) UrlInformation(url string) map[string]interface{}

type PluginParams

type PluginParams struct {
	Name    string `json:"plugin_name,omitempty"`
	Enabled bool   `json:"enabled,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL