things

package
v0.0.0-...-1d8dca5 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SoftwareUpdatableManifestsFeatureID = "SoftwareUpdatable:manifest"
)

Constants the define the respective Ditto feature based on the SU v2 Vorto model

View Source
const (
	// ThingsUpdateManagerServiceLocalID is the ID of the things management service in the registry
	ThingsUpdateManagerServiceLocalID = "updatemanagerd.service.local.v1.service-things-update-manager"
)
View Source
const (
	UpdateOrchestratorFeatureID = "UpdateOrchestrator"
)

Constants the define the respective Ditto feature based on the UpdateOrchestrator Vorto model

Variables

This section is empty.

Functions

This section is empty.

Types

type UpdateThingsManager

type UpdateThingsManager interface {
	Connect() error
	Disconnect()
}

UpdateThingsManager is the things management abstraction

type UpdateThingsManagerOpt

type UpdateThingsManagerOpt func(thingsOptions *thingsOpts) error

UpdateThingsManagerOpt represents the available configuration options for the UpdateThingsManager service

func WithConnectionAcknowledgeTimeout

func WithConnectionAcknowledgeTimeout(acknowledgeTimeout time.Duration) UpdateThingsManagerOpt

WithConnectionAcknowledgeTimeout configures the timeout for the acknowledge receival

func WithConnectionBroker

func WithConnectionBroker(broker string) UpdateThingsManagerOpt

WithConnectionBroker configures the broker, where the connection will be established

func WithConnectionClientPassword

func WithConnectionClientPassword(password string) UpdateThingsManagerOpt

WithConnectionClientPassword configures the client password used when establishing connection to the broker

func WithConnectionClientUsername

func WithConnectionClientUsername(username string) UpdateThingsManagerOpt

WithConnectionClientUsername configures the client username used when establishing connection to the broker

func WithConnectionConnectTimeout

func WithConnectionConnectTimeout(connectTimeout time.Duration) UpdateThingsManagerOpt

WithConnectionConnectTimeout configures the timeout before terminating the connect attempt

func WithConnectionDisconnectTimeout

func WithConnectionDisconnectTimeout(disconnectTimeout time.Duration) UpdateThingsManagerOpt

WithConnectionDisconnectTimeout configures the duration of inactivity before disconnecting from the broker

func WithConnectionKeepAlive

func WithConnectionKeepAlive(keepAlive time.Duration) UpdateThingsManagerOpt

WithConnectionKeepAlive configures the time between between each check for the connection presence

func WithConnectionSubscribeTimeout

func WithConnectionSubscribeTimeout(subscribeTimeout time.Duration) UpdateThingsManagerOpt

WithConnectionSubscribeTimeout configures the timeout before terminating the subscribe attempt

func WithConnectionUnsubscribeTimeout

func WithConnectionUnsubscribeTimeout(unsubscribeTimeout time.Duration) UpdateThingsManagerOpt

WithConnectionUnsubscribeTimeout configures the timeout before terminating the unsubscribe attempt

func WithFeatures

func WithFeatures(featureIds []string) UpdateThingsManagerOpt

WithFeatures configures the update manager runtime's Things representation via providing the desired Ditto Features to be created by ID

func WithMetaPath

func WithMetaPath(path string) UpdateThingsManagerOpt

WithMetaPath configures the directory to be used for storage by the service

Jump to

Keyboard shortcuts

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