grc

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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.

func NewMinimalComplianceStatusBundle

func NewMinimalComplianceStatusBundle(leafHubName string, incarnation uint64) bundlepkg.Bundle

NewMinimalComplianceStatusBundle creates a new instance of MinimalComplianceStatusBundle.

Types

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.

Jump to

Keyboard shortcuts

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