Documentation ¶
Index ¶
- type TargetsManager
- func (t *TargetsManager) DeleteSpec(ctx context.Context, name string, namespace string) error
- func (t *TargetsManager) GetState(ctx context.Context, id string, namespace string) (model.TargetState, error)
- func (s *TargetsManager) Init(context *contexts.VendorContext, config managers.ManagerConfig, ...) error
- func (t *TargetsManager) ListState(ctx context.Context, namespace string) ([]model.TargetState, error)
- func (t *TargetsManager) ReportState(ctx context.Context, current model.TargetState) (model.TargetState, error)
- func (t *TargetsManager) UpsertState(ctx context.Context, name string, state model.TargetState) error
- func (t *TargetsManager) ValidateDelete(ctx context.Context, name string, namespace string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TargetsManager ¶
type TargetsManager struct { managers.Manager StateProvider states.IStateProvider RegistryProvider registry.IRegistryProvider TargetValidator validation.TargetValidator // contains filtered or unexported fields }
func (*TargetsManager) DeleteSpec ¶
func (*TargetsManager) GetState ¶
func (t *TargetsManager) GetState(ctx context.Context, id string, namespace string) (model.TargetState, error)
func (*TargetsManager) Init ¶
func (s *TargetsManager) Init(context *contexts.VendorContext, config managers.ManagerConfig, providers map[string]providers.IProvider) error
func (*TargetsManager) ListState ¶
func (t *TargetsManager) ListState(ctx context.Context, namespace string) ([]model.TargetState, error)
func (*TargetsManager) ReportState ¶
func (t *TargetsManager) ReportState(ctx context.Context, current model.TargetState) (model.TargetState, error)
Caller need to explicitly set namespace in current.Metadata!
func (*TargetsManager) UpsertState ¶
func (t *TargetsManager) UpsertState(ctx context.Context, name string, state model.TargetState) error
func (*TargetsManager) ValidateDelete ¶
Click to show internal directories.
Click to hide internal directories.