Documentation
¶
Index ¶
- Constants
- type ServiceConnector
- func (sc *ServiceConnector) GetServiceConfiguration(name string) (map[string]string, error)
- func (sc *ServiceConnector) GetServiceList() ([]ServiceDescription, error)
- func (sc *ServiceConnector) GetServiceStatus(name string) (bool, error)
- func (sc *ServiceConnector) SetServiceConfiguration(name string, configuration map[string]string) error
- func (sc *ServiceConnector) SetServiceStatus(name string, enabled bool) error
- func (sc *ServiceConnector) ValidateServiceConfiguration(name string, config any) error
- type ServiceDescription
Constants ¶
View Source
const SERVICE_ENDPOINT = "https://api.plakar.io"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceConnector ¶
type ServiceConnector struct {
// contains filtered or unexported fields
}
func NewServiceConnector ¶
func NewServiceConnector(ctx *appcontext.AppContext, authToken string) *ServiceConnector
func (*ServiceConnector) GetServiceConfiguration ¶
func (sc *ServiceConnector) GetServiceConfiguration(name string) (map[string]string, error)
func (*ServiceConnector) GetServiceList ¶ added in v1.0.3
func (sc *ServiceConnector) GetServiceList() ([]ServiceDescription, error)
func (*ServiceConnector) GetServiceStatus ¶
func (sc *ServiceConnector) GetServiceStatus(name string) (bool, error)
func (*ServiceConnector) SetServiceConfiguration ¶
func (sc *ServiceConnector) SetServiceConfiguration(name string, configuration map[string]string) error
func (*ServiceConnector) SetServiceStatus ¶
func (sc *ServiceConnector) SetServiceStatus(name string, enabled bool) error
func (*ServiceConnector) ValidateServiceConfiguration ¶ added in v1.0.3
func (sc *ServiceConnector) ValidateServiceConfiguration(name string, config any) error
type ServiceDescription ¶ added in v1.0.3
type ServiceDescription struct {
Name string `json:"name"`
DisplayName string `json:"display_name"`
ConfigSchema map[string]any `json:"config_schema"`
}
func (*ServiceDescription) ValidateConfig ¶ added in v1.0.3
func (sd *ServiceDescription) ValidateConfig(value any) error
Click to show internal directories.
Click to hide internal directories.