agent

package
v15.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
}

func (*Factory) Name

func (f *Factory) Name() string

func (*Factory) New

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

func (*Factory) StartStopPhase

func (f *Factory) StartStopPhase() modshared.ModuleStartStopPhase

type MessageType

type MessageType string
const (
	MessageTypeWorkspaceUpdates MessageType = "workspace_updates"
)

type RequestPayload

type RequestPayload struct {
	MessageType         MessageType          `json:"message_type"`
	WorkspaceAgentInfos []WorkspaceAgentInfo `json:"workspace_agent_infos"`
}

type ResponsePayload

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

type WorkspaceAgentInfo

type WorkspaceAgentInfo struct {
	Name                    string                 `json:"name"`
	Namespace               string                 `json:"namespace,omitempty"`
	LatestK8sDeploymentInfo map[string]interface{} `json:"latest_k8s_deployment_info,omitempty"`
	Terminated              bool                   `json:"terminated,omitempty"`
}

type WorkspaceRailsInfo

type WorkspaceRailsInfo struct {
	Name                               string `json:"name"`
	Namespace                          string `json:"namespace"`
	PersistedDeploymentResourceVersion string `json:"persisted_deployment_resource_version,omitempty"`
	PersistedActualStateIsTerminated   bool   `json:"persisted_actual_state_is_terminated,omitempty"`
	DesiredStateIsTerminated           bool   `json:"desired_state_is_terminated,omitempty"`
	ConfigToApply                      string `json:"config_to_apply,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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