Documentation ¶
Index ¶
- func NewClusterPolicyHistoryEventBundle(ctx context.Context, leafHubName string, incarnation uint64, ...) bundlepkg.Bundle
- func NewClustersPerPolicyBundle(leafHubName string, incarnation uint64, ...) bundlepkg.Bundle
- func NewCompleteComplianceStatusBundle(leafHubName string, baseBundle bundlepkg.Bundle, incarnation uint64, ...) bundlepkg.Bundle
- func NewDeltaComplianceStatusBundle(leafHubName string, baseBundle bundlepkg.Bundle, ...) bundlepkg.DeltaStateBundle
- func NewMinimalComplianceStatusBundle(leafHubName string, incarnation uint64) bundlepkg.Bundle
- type ClusterPolicyHistoryEventBundle
- func (bundle *ClusterPolicyHistoryEventBundle) DeleteObject(object bundlepkg.Object)
- func (bundle *ClusterPolicyHistoryEventBundle) GetBundleVersion() *statusbundle.BundleVersion
- func (bundle *ClusterPolicyHistoryEventBundle) ParseCompliance(message string) string
- func (bundle *ClusterPolicyHistoryEventBundle) UpdateObject(object bundlepkg.Object)
- type ClustersPerPolicyBundle
- type ComplianceStatusBundle
- type DeltaComplianceStatusBundle
- func (bundle *DeltaComplianceStatusBundle) DeleteObject(object bundlepkg.Object)
- func (bundle *DeltaComplianceStatusBundle) GetBundleVersion() *statusbundle.BundleVersion
- func (bundle *DeltaComplianceStatusBundle) GetTransportationID() int
- func (bundle *DeltaComplianceStatusBundle) Reset()
- func (bundle *DeltaComplianceStatusBundle) SyncState()
- func (bundle *DeltaComplianceStatusBundle) UpdateObject(object bundlepkg.Object)
- type MinimalComplianceStatusBundle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClusterPolicyHistoryEventBundle ¶ added in v0.7.0
func NewClusterPolicyHistoryEventBundle(ctx context.Context, leafHubName string, incarnation uint64, runtimeClient client.Client, ) bundlepkg.Bundle
NewClustersPerPolicyBundle creates a new instance of ClustersPerPolicyBundle.
func NewClustersPerPolicyBundle ¶
func NewClustersPerPolicyBundle(leafHubName string, incarnation uint64, extractObjIDFunc bundlepkg.ExtractObjIDFunc, ) bundlepkg.Bundle
NewClustersPerPolicyBundle creates a new instance of ClustersPerPolicyBundle.
func NewCompleteComplianceStatusBundle ¶
func NewCompleteComplianceStatusBundle(leafHubName string, baseBundle bundlepkg.Bundle, incarnation uint64, extractObjIDFunc bundlepkg.ExtractObjIDFunc, ) bundlepkg.Bundle
NewCompleteComplianceStatusBundle creates a new instance of ComplianceStatusBundle.
func NewDeltaComplianceStatusBundle ¶
func NewDeltaComplianceStatusBundle(leafHubName string, baseBundle bundlepkg.Bundle, clustersPerPolicyBundle *ClustersPerPolicyBundle, incarnation uint64, extractObjIDFunc bundlepkg.ExtractObjIDFunc, ) bundlepkg.DeltaStateBundle
NewDeltaComplianceStatusBundle creates a new instance of DeltaComplianceStatusBundle.
Types ¶
type ClusterPolicyHistoryEventBundle ¶ added in v0.7.0
type ClusterPolicyHistoryEventBundle struct { statusbundle.BaseClusterPolicyStatusEventBundle // contains filtered or unexported fields }
func (*ClusterPolicyHistoryEventBundle) DeleteObject ¶ added in v0.7.0
func (bundle *ClusterPolicyHistoryEventBundle) DeleteObject(object bundlepkg.Object)
DeleteObject function to delete a single object inside a bundle.
func (*ClusterPolicyHistoryEventBundle) GetBundleVersion ¶ added in v0.7.0
func (bundle *ClusterPolicyHistoryEventBundle) GetBundleVersion() *statusbundle.BundleVersion
GetBundleVersion function to get bundle version.
func (*ClusterPolicyHistoryEventBundle) ParseCompliance ¶ added in v0.7.0
func (bundle *ClusterPolicyHistoryEventBundle) ParseCompliance(message string) string
func (*ClusterPolicyHistoryEventBundle) UpdateObject ¶ added in v0.7.0
func (bundle *ClusterPolicyHistoryEventBundle) UpdateObject(object bundlepkg.Object)
UpdateObject function to update a single object inside a bundle.
type ClustersPerPolicyBundle ¶
type ClustersPerPolicyBundle struct { statusbundle.BaseClustersPerPolicyBundle // contains filtered or unexported fields }
ClustersPerPolicyBundle abstracts management of clusters per policy bundle.
func (*ClustersPerPolicyBundle) DeleteObject ¶
func (bundle *ClustersPerPolicyBundle) DeleteObject(object bundlepkg.Object)
DeleteObject function to delete a single object inside a bundle.
func (*ClustersPerPolicyBundle) GetBundleVersion ¶
func (bundle *ClustersPerPolicyBundle) GetBundleVersion() *statusbundle.BundleVersion
GetBundleVersion function to get bundle version.
func (*ClustersPerPolicyBundle) UpdateObject ¶
func (bundle *ClustersPerPolicyBundle) UpdateObject(object bundlepkg.Object)
UpdateObject function to update a single object inside a bundle.
type ComplianceStatusBundle ¶
type ComplianceStatusBundle struct { statusbundle.BaseCompleteComplianceStatusBundle // contains filtered or unexported fields }
ComplianceStatusBundle abstracts management of compliance status bundle.
func (*ComplianceStatusBundle) DeleteObject ¶
func (bundle *ComplianceStatusBundle) DeleteObject(object bundlepkg.Object)
DeleteObject function to delete a single object inside a bundle.
func (*ComplianceStatusBundle) GetBundleVersion ¶
func (bundle *ComplianceStatusBundle) GetBundleVersion() *statusbundle.BundleVersion
GetBundleVersion function to get bundle version
func (*ComplianceStatusBundle) UpdateObject ¶
func (bundle *ComplianceStatusBundle) UpdateObject(object bundlepkg.Object)
UpdateObject function to update a single object inside a bundle.
type DeltaComplianceStatusBundle ¶
type DeltaComplianceStatusBundle struct { statusbundle.BaseDeltaComplianceStatusBundle // contains filtered or unexported fields }
DeltaComplianceStatusBundle abstracts management of compliance status bundle.
func (*DeltaComplianceStatusBundle) DeleteObject ¶
func (bundle *DeltaComplianceStatusBundle) DeleteObject(object bundlepkg.Object)
DeleteObject function to delete all instances of a single object inside a bundle.
func (*DeltaComplianceStatusBundle) GetBundleVersion ¶
func (bundle *DeltaComplianceStatusBundle) GetBundleVersion() *statusbundle.BundleVersion
GetBundleVersion function to get bundle version.
func (*DeltaComplianceStatusBundle) GetTransportationID ¶
func (bundle *DeltaComplianceStatusBundle) GetTransportationID() int
GetTransportationID function to get bundle transportation ID to be attached to message-key during transportation.
func (*DeltaComplianceStatusBundle) Reset ¶
func (bundle *DeltaComplianceStatusBundle) Reset()
Reset flushes the objects in the bundle (after delivery).
func (*DeltaComplianceStatusBundle) SyncState ¶
func (bundle *DeltaComplianceStatusBundle) SyncState()
SyncState syncs the state of the delta-bundle with the full-state.
func (*DeltaComplianceStatusBundle) UpdateObject ¶
func (bundle *DeltaComplianceStatusBundle) UpdateObject(object bundlepkg.Object)
UpdateObject function to update a single object inside a bundle.
type MinimalComplianceStatusBundle ¶
type MinimalComplianceStatusBundle struct { statusbundle.BaseMinimalComplianceStatusBundle // contains filtered or unexported fields }
MinimalComplianceStatusBundle abstracts management of minimal compliance status bundle.
func (*MinimalComplianceStatusBundle) DeleteObject ¶
func (bundle *MinimalComplianceStatusBundle) DeleteObject(object bundlepkg.Object)
DeleteObject function to delete a single object inside a bundle.
func (*MinimalComplianceStatusBundle) GetBundleVersion ¶
func (bundle *MinimalComplianceStatusBundle) GetBundleVersion() *statusbundle.BundleVersion
GetBundleVersion function to get bundle version.
func (*MinimalComplianceStatusBundle) UpdateObject ¶
func (bundle *MinimalComplianceStatusBundle) UpdateObject(object bundlepkg.Object)
UpdateObject function to update a single object inside a bundle.