services

package
v0.0.0-...-c97221a Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

JSONParsersByType parsers of service specific options from JSON request.

Functions

func IsTypeValid

func IsTypeValid(s string) bool

IsTypeValid returns true if a given string is valid service type.

func TypeConfiguredOptions

func TypeConfiguredOptions(serviceType string) (service.Options, error)

TypeConfiguredOptions returns specific service options.

func Types

func Types() []string

Types returns all possible service types.

Types

type ServiceOptionsParser

type ServiceOptionsParser func(*json.RawMessage) (service.Options, error)

ServiceOptionsParser parses request to service specific options

func TypeJSONParser

func TypeJSONParser(serviceType string) (ServiceOptionsParser, error)

TypeJSONParser get parser to parse service specific options from JSON request.

type StartOptions

type StartOptions struct {
	AccessPolicyList []string
	TypeOptions      service.Options
}

StartOptions describes options shared among multiple services

func GetStartOptions

func GetStartOptions(serviceType string) (opts StartOptions, err error)

GetStartOptions returns options to use for starting a service.

Jump to

Keyboard shortcuts

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