Versions in this module Expand all Collapse all v0 v0.1.0 Jun 11, 2024 Changes in this version + var CreateChangeStepFilter = func(c *ChangeStep) bool + var DeleteChangeStepFilter = func(c *ChangeStep) bool + var UnChangeChangeStepFilter = func(c *ChangeStep) bool + var UpdateChangeStepFilter = func(c *ChangeStep) bool + type ActionType int64 + const Create + const Delete + const UnChanged + const Undefined + const Update + func (t ActionType) Ing() string + func (t ActionType) MarshalJSON() ([]byte, error) + func (t ActionType) PrettyString() string + func (t ActionType) String() string + type ChangeOrder struct + ChangeSteps map[string]*ChangeStep + StepKeys []string + func (o *ChangeOrder) Diffs(noStyle bool) string + func (o *ChangeOrder) Get(key string) *ChangeStep + func (o *ChangeOrder) OutputDiff(target string) + func (o *ChangeOrder) PromptDetails(ui *terminal.UI) (string, error) + func (o *ChangeOrder) Values(filters ...ChangeStepFilterFunc) []*ChangeStep + type ChangeStep struct + Action ActionType + From interface{} + ID string + To interface{} + func NewChangeStep(id string, op ActionType, from, to interface{}) *ChangeStep + func (cs *ChangeStep) Diff(noStyle bool) (string, error) + func (cs *ChangeStep) NoStyleDiff() (string, error) + type ChangeStepFilterFunc func(*ChangeStep) bool + type Changes struct + func NewChanges(p *v1.Project, s *v1.Stack, order *ChangeOrder) *Changes + func (p *Changes) AllUnChange() bool + func (p *Changes) Project() *v1.Project + func (p *Changes) Stack() *v1.Stack + func (p *Changes) Summary(writer io.Writer, noStyle bool) + type Message struct + OpErr error + OpResult OpResult + ResourceID string + type OpResult string + const Failed + const Skip + const Success + type Operation struct + ChangeOrder *ChangeOrder + CtxResourceIndex map[string]*apiv1.Resource + IgnoreFields []string + Lock *sync.Mutex + MsgCh chan Message + OperationType OperationType + PriorStateResourceIndex map[string]*apiv1.Resource + Release *apiv1.Release + ReleaseStorage release.Storage + RuntimeMap map[apiv1.Type]runtime.Runtime + Stack *apiv1.Stack + StateResourceIndex map[string]*apiv1.Resource + WatchCh chan string + func (o *Operation) RefreshResourceIndex(resourceKey string, resource *apiv1.Resource, actionType ActionType) error + func (o *Operation) UpdateReleaseState() error + type OperationType int64 + const Apply + const ApplyPreview + const Destroy + const DestroyPreview + const UndefinedOperation + type Request struct + Project *apiv1.Project + Stack *apiv1.Stack