updateagent

package
v0.1.0-M4 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: Apache-2.0, EPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ContainerUpdateAgentServiceLocalID is the ID of the local container update agent
	ContainerUpdateAgentServiceLocalID = "container-management.service.local.v1.service-container-update-agent"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainersUpdateAgentOpt

type ContainersUpdateAgentOpt func(updateAgentOptions *updateAgentOpts) error

ContainersUpdateAgentOpt represents the available configuration options for the Containers UpdateAgent service

func WithConnectionAcknowledgeTimeout

func WithConnectionAcknowledgeTimeout(acknowledgeTimeout time.Duration) ContainersUpdateAgentOpt

WithConnectionAcknowledgeTimeout configures the timeout for the acknowledge receival

func WithConnectionBroker

func WithConnectionBroker(broker string) ContainersUpdateAgentOpt

WithConnectionBroker configures the broker, where the connection will be established

func WithConnectionClientPassword

func WithConnectionClientPassword(password string) ContainersUpdateAgentOpt

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

func WithConnectionClientUsername

func WithConnectionClientUsername(username string) ContainersUpdateAgentOpt

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

func WithConnectionConnectTimeout

func WithConnectionConnectTimeout(connectTimeout time.Duration) ContainersUpdateAgentOpt

WithConnectionConnectTimeout configures the timeout before terminating the connect attempt

func WithConnectionDisconnectTimeout

func WithConnectionDisconnectTimeout(disconnectTimeout time.Duration) ContainersUpdateAgentOpt

WithConnectionDisconnectTimeout configures the duration of inactivity before disconnecting from the broker

func WithConnectionKeepAlive

func WithConnectionKeepAlive(keepAlive time.Duration) ContainersUpdateAgentOpt

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

func WithConnectionSubscribeTimeout

func WithConnectionSubscribeTimeout(subscribeTimeout time.Duration) ContainersUpdateAgentOpt

WithConnectionSubscribeTimeout configures the timeout before terminating the subscribe attempt

func WithConnectionUnsubscribeTimeout

func WithConnectionUnsubscribeTimeout(unsubscribeTimeout time.Duration) ContainersUpdateAgentOpt

WithConnectionUnsubscribeTimeout configures the timeout before terminating the unsubscribe attempt

func WithDomainName

func WithDomainName(domain string) ContainersUpdateAgentOpt

WithDomainName configures the domain name for the containers update agent

func WithSystemContainers

func WithSystemContainers(systemContainers []string) ContainersUpdateAgentOpt

WithSystemContainers configures the list of system containers (names) that will not be processed by the containers update agent

func WithTLSConfig

func WithTLSConfig(rootCA, clientCert, clientKey string) ContainersUpdateAgentOpt

WithTLSConfig configures the CA certificate for TLS communication

func WithVerboseInventoryReport

func WithVerboseInventoryReport(verboseInventoryReport bool) ContainersUpdateAgentOpt

WithVerboseInventoryReport enables / disables verbose inventory reporting of current containers

type UpdateOperation

type UpdateOperation interface {
	GetActivityID() string
	Identify() error
	Execute(command types.CommandType, baseline string)
	Feedback(status types.StatusType, message string, baseline string)
}

UpdateOperation defines an interface for an update operation process

Jump to

Keyboard shortcuts

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