solution

package
v0.0.0-...-c302471 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SYMPHONY_AGENT string = "/symphony-agent:"
	ENV_NAME       string = "SYMPHONY_AGENT_ADDRESS"

	// DeploymentType_Update indicates the type of deployment is Update. This is
	// to give a deployment status on Symphony Target deployment.
	DeploymentType_Update string = "Target Update"
	// DeploymentType_Delete indicates the type of deployment is Delete. This is
	// to give a deployment status on Symphony Target deployment.
	DeploymentType_Delete string = "Target Delete"

	Summary         = "Summary"
	DeploymentState = "DeployState"
)

Variables

This section is empty.

Functions

func MergeDeploymentStates

func MergeDeploymentStates(previous *model.DeploymentState, current model.DeploymentState) model.DeploymentState

func NewDeploymentState

func NewDeploymentState(deployment model.DeploymentSpec) (model.DeploymentState, error)

func PlanForDeployment

func PlanForDeployment(deployment model.DeploymentSpec, state model.DeploymentState) (model.DeploymentPlan, error)

Types

type SolutionManager

type SolutionManager struct {
	managers.Manager
	TargetProviders map[string]tgt.ITargetProvider
	StateProvider   states.IStateProvider
	ConfigProvider  config.IExtConfigProvider
	SecretProvider  secret.ISecretProvider
	IsTarget        bool
	TargetNames     []string
	ApiClientHttp   api_utils.ApiClient
}

func (*SolutionManager) DeleteSummary

func (s *SolutionManager) DeleteSummary(ctx context.Context, key string, namespace string) error

func (*SolutionManager) Enabled

func (s *SolutionManager) Enabled() bool

func (*SolutionManager) Get

func (*SolutionManager) GetSummary

func (s *SolutionManager) GetSummary(ctx context.Context, key string, namespace string) (model.SummaryResult, error)

func (*SolutionManager) Init

func (s *SolutionManager) Init(context *contexts.VendorContext, config managers.ManagerConfig, providers map[string]providers.IProvider) error

func (*SolutionManager) Poll

func (s *SolutionManager) Poll() []error

func (*SolutionManager) Reconcil

func (s *SolutionManager) Reconcil() []error

func (*SolutionManager) Reconcile

func (s *SolutionManager) Reconcile(ctx context.Context, deployment model.DeploymentSpec, remove bool, namespace string, targetName string) (model.SummarySpec, error)

type SolutionManagerDeploymentState

type SolutionManagerDeploymentState struct {
	Spec  model.DeploymentSpec  `json:"spec,omitempty"`
	State model.DeploymentState `json:"state,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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