agent

package
v17.7.0-rc31 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 39 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WorkspaceUpdateTypePartial WorkspaceUpdateType = "partial"
	WorkspaceUpdateTypeFull    WorkspaceUpdateType = "full"

	WorkspaceStateTerminated string = "Terminated"
	WorkspaceStateError      string = "Error"

	TerminationProgressTerminating TerminationProgress = "Terminating"
	TerminationProgressTerminated  TerminationProgress = "Terminated"

	ErrorTypeApplier    ErrorType = "applier"
	ErrorTypeKubernetes ErrorType = "kubernetes"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorDetails

type ErrorDetails struct {
	ErrorType    ErrorType `json:"error_type,omitempty"`
	ErrorMessage string    `json:"error_message,omitempty"`
}

type ErrorType

type ErrorType string

type Factory

type Factory struct {
}

func (*Factory) IsProducingLeaderModules

func (f *Factory) IsProducingLeaderModules() bool

func (*Factory) Name

func (f *Factory) Name() string

func (*Factory) New

func (f *Factory) New(config *modagent.Config) (modagent.Module, error)

type ImagePullSecret added in v17.6.0

type ImagePullSecret struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
}

type MessageType

type MessageType string

type RequestPayload

type RequestPayload struct {
	UpdateType          WorkspaceUpdateType  `json:"update_type"`
	WorkspaceAgentInfos []WorkspaceAgentInfo `json:"workspace_agent_infos"`
}

type ResponsePayload

type ResponsePayload struct {
	WorkspaceRailsInfos []*WorkspaceRailsInfo `json:"workspace_rails_infos"`
	Settings            *Settings             `json:"settings"`
}

type Settings added in v17.1.0

type Settings struct {
	FullReconciliationIntervalSeconds    int `json:"full_reconciliation_interval_seconds"`
	PartialReconciliationIntervalSeconds int `json:"partial_reconciliation_interval_seconds"`
}

type TerminationProgress

type TerminationProgress string

type WorkerSettings added in v17.1.0

type WorkerSettings struct {
	FullReconciliationInterval    time.Duration
	PartialReconciliationInterval time.Duration
}

type WorkspaceAgentInfo

type WorkspaceAgentInfo struct {
	Name                    string              `json:"name"`
	Namespace               string              `json:"namespace,omitempty"`
	LatestK8sDeploymentInfo map[string]any      `json:"latest_k8s_deployment_info,omitempty"`
	TerminationProgress     TerminationProgress `json:"termination_progress,omitempty"`
	ErrorDetails            *ErrorDetails       `json:"error_details,omitempty"`
}

type WorkspaceRailsInfo

type WorkspaceRailsInfo struct {
	Name                      string            `json:"name"`
	Namespace                 string            `json:"namespace"`
	DeploymentResourceVersion string            `json:"deployment_resource_version,omitempty"`
	ActualState               string            `json:"actual_state,omitempty"`
	DesiredState              string            `json:"desired_state,omitempty"`
	ConfigToApply             string            `json:"config_to_apply,omitempty"`
	ImagePullSecrets          []ImagePullSecret `json:"image_pull_secrets,omitempty"`
}

type WorkspaceUpdateType

type WorkspaceUpdateType string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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