Documentation ¶
Index ¶
- Constants
- func MergeDeploymentStates(previous *model.DeploymentState, current model.DeploymentState) model.DeploymentState
- func NewDeploymentState(deployment model.DeploymentSpec) (model.DeploymentState, error)
- func PlanForDeployment(deployment model.DeploymentSpec, state model.DeploymentState) (model.DeploymentPlan, error)
- type SolutionManager
- func (s *SolutionManager) DeleteSummary(ctx context.Context, key string, namespace string) error
- func (s *SolutionManager) Enabled() bool
- func (s *SolutionManager) Get(ctx context.Context, deployment model.DeploymentSpec, targetName string) (model.DeploymentState, []model.ComponentSpec, error)
- func (s *SolutionManager) GetSummary(ctx context.Context, key string, namespace string) (model.SummaryResult, error)
- func (s *SolutionManager) Init(context *contexts.VendorContext, config managers.ManagerConfig, ...) error
- func (s *SolutionManager) Poll() []error
- func (s *SolutionManager) Reconcil() []error
- func (s *SolutionManager) Reconcile(ctx context.Context, deployment model.DeploymentSpec, remove bool, ...) (model.SummarySpec, error)
- type SolutionManagerDeploymentState
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 (*SolutionManager) Enabled ¶
func (s *SolutionManager) Enabled() bool
func (*SolutionManager) Get ¶
func (s *SolutionManager) Get(ctx context.Context, deployment model.DeploymentSpec, targetName string) (model.DeploymentState, []model.ComponentSpec, error)
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"` }
Click to show internal directories.
Click to hide internal directories.