Documentation ¶
Index ¶
- type Bundle
- func NewClustersPerPolicyBundle() Bundle
- func NewCompleteComplianceStatusBundle() Bundle
- func NewControlInfoBundle() Bundle
- func NewDeltaComplianceStatusBundle() Bundle
- func NewLocalClustersPerPolicyBundle() Bundle
- func NewLocalCompleteComplianceStatusBundle() Bundle
- func NewLocalPlacementRulesBundle() Bundle
- func NewLocalPolicySpecBundle() Bundle
- func NewManagedClustersStatusBundle() Bundle
- func NewMinimalComplianceStatusBundle() Bundle
- type ClustersPerPolicyBundle
- type CompleteComplianceStatusBundle
- func (bundle *CompleteComplianceStatusBundle) GetDependencyVersion() *status.BundleVersion
- func (bundle *CompleteComplianceStatusBundle) GetLeafHubName() string
- func (bundle *CompleteComplianceStatusBundle) GetObjects() []interface{}
- func (bundle *CompleteComplianceStatusBundle) GetVersion() *status.BundleVersion
- type ControlInfoBundle
- type CreateBundleFunction
- type DeltaComplianceStatusBundle
- func (bundle *DeltaComplianceStatusBundle) GetDependencyVersion() *status.BundleVersion
- func (bundle *DeltaComplianceStatusBundle) GetLeafHubName() string
- func (bundle *DeltaComplianceStatusBundle) GetObjects() []interface{}
- func (bundle *DeltaComplianceStatusBundle) GetVersion() *status.BundleVersion
- func (bundle *DeltaComplianceStatusBundle) InheritEvents(olderBundle Bundle) error
- type DeltaStateBundle
- type DependantBundle
- type LocalClustersPerPolicyBundle
- type LocalCompleteComplianceStatusBundle
- type LocalPlacementRulesBundle
- type LocalPolicySpecBundle
- type ManagedClustersStatusBundle
- type MinimalComplianceStatusBundle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bundle ¶
type Bundle interface { // GetLeafHubName returns the leaf hub name that sent the bundle. GetLeafHubName() string // GetObjects returns the objects in the bundle. GetObjects() []interface{} // GetVersion returns the bundle version. GetVersion() *status.BundleVersion }
Bundle bundles together a set of objects that were sent from leaf hubs via transport layer.
func NewClustersPerPolicyBundle ¶
func NewClustersPerPolicyBundle() Bundle
NewClustersPerPolicyBundle creates a new instance of ClustersPerPolicyBundle.
func NewCompleteComplianceStatusBundle ¶
func NewCompleteComplianceStatusBundle() Bundle
NewCompleteComplianceStatusBundle creates a new instance of CompleteComplianceStatusBundle.
func NewControlInfoBundle ¶
func NewControlInfoBundle() Bundle
NewControlInfoBundle creates a new instance of ControlInfoBundle.
func NewDeltaComplianceStatusBundle ¶
func NewDeltaComplianceStatusBundle() Bundle
NewDeltaComplianceStatusBundle creates a new instance of DeltaComplianceStatusBundle.
func NewLocalClustersPerPolicyBundle ¶
func NewLocalClustersPerPolicyBundle() Bundle
NewLocalClustersPerPolicyBundle creates a new instance of LocalClustersPerPolicyBundle.
func NewLocalCompleteComplianceStatusBundle ¶
func NewLocalCompleteComplianceStatusBundle() Bundle
NewLocalCompleteComplianceStatusBundle creates a new instance of LocalCompleteComplianceStatusBundle.
func NewLocalPlacementRulesBundle ¶
func NewLocalPlacementRulesBundle() Bundle
NewLocalPlacementRulesBundle creates a new instance of LocalPlacementRulesBundle.
func NewLocalPolicySpecBundle ¶
func NewLocalPolicySpecBundle() Bundle
NewLocalPolicySpecBundle creates a new instance of LocalPolicySpecBundle.
func NewManagedClustersStatusBundle ¶
func NewManagedClustersStatusBundle() Bundle
NewManagedClustersStatusBundle creates a new instance of ManagedClustersStatusBundle.
func NewMinimalComplianceStatusBundle ¶
func NewMinimalComplianceStatusBundle() Bundle
NewMinimalComplianceStatusBundle creates a new instance of MinimalComplianceStatusBundle.
type ClustersPerPolicyBundle ¶
type ClustersPerPolicyBundle struct {
status.BaseClustersPerPolicyBundle
}
ClustersPerPolicyBundle abstracts management of clusters per policy bundle.
func (*ClustersPerPolicyBundle) GetLeafHubName ¶
func (bundle *ClustersPerPolicyBundle) GetLeafHubName() string
GetLeafHubName returns the leaf hub name that sent the bundle.
func (*ClustersPerPolicyBundle) GetObjects ¶
func (bundle *ClustersPerPolicyBundle) GetObjects() []interface{}
GetObjects returns the objects in the bundle.
func (*ClustersPerPolicyBundle) GetVersion ¶
func (bundle *ClustersPerPolicyBundle) GetVersion() *status.BundleVersion
GetVersion returns the bundle version.
type CompleteComplianceStatusBundle ¶
type CompleteComplianceStatusBundle struct {
status.BaseCompleteComplianceStatusBundle
}
CompleteComplianceStatusBundle abstracts management of complete compliance status bundle.
func (*CompleteComplianceStatusBundle) GetDependencyVersion ¶
func (bundle *CompleteComplianceStatusBundle) GetDependencyVersion() *status.BundleVersion
GetDependencyVersion returns the bundle dependency required version.
func (*CompleteComplianceStatusBundle) GetLeafHubName ¶
func (bundle *CompleteComplianceStatusBundle) GetLeafHubName() string
GetLeafHubName returns the leaf hub name that sent the bundle.
func (*CompleteComplianceStatusBundle) GetObjects ¶
func (bundle *CompleteComplianceStatusBundle) GetObjects() []interface{}
GetObjects returns the objects in the bundle.
func (*CompleteComplianceStatusBundle) GetVersion ¶
func (bundle *CompleteComplianceStatusBundle) GetVersion() *status.BundleVersion
GetVersion returns the bundle version.
type ControlInfoBundle ¶
type ControlInfoBundle struct {
// contains filtered or unexported fields
}
ControlInfoBundle abstracts management of control info bundle.
func (*ControlInfoBundle) GetLeafHubName ¶
func (baseBundle *ControlInfoBundle) GetLeafHubName() string
GetLeafHubName returns the leaf hub name that sent the bundle.
func (*ControlInfoBundle) GetObjects ¶
func (bundle *ControlInfoBundle) GetObjects() []interface{}
GetObjects returns the objects in the bundle.
func (*ControlInfoBundle) GetVersion ¶
func (baseBundle *ControlInfoBundle) GetVersion() *status.BundleVersion
GetVersion returns the bundle version.
type CreateBundleFunction ¶
type CreateBundleFunction func() Bundle
CreateBundleFunction function that specifies how to create a bundle.
type DeltaComplianceStatusBundle ¶
type DeltaComplianceStatusBundle struct {
status.BaseDeltaComplianceStatusBundle
}
DeltaComplianceStatusBundle abstracts management of compliance status bundle.
func (*DeltaComplianceStatusBundle) GetDependencyVersion ¶
func (bundle *DeltaComplianceStatusBundle) GetDependencyVersion() *status.BundleVersion
GetDependencyVersion returns the bundle dependency required version.
func (*DeltaComplianceStatusBundle) GetLeafHubName ¶
func (bundle *DeltaComplianceStatusBundle) GetLeafHubName() string
GetLeafHubName returns the leaf hub name that sent the bundle.
func (*DeltaComplianceStatusBundle) GetObjects ¶
func (bundle *DeltaComplianceStatusBundle) GetObjects() []interface{}
GetObjects returns the objects in the bundle.
func (*DeltaComplianceStatusBundle) GetVersion ¶
func (bundle *DeltaComplianceStatusBundle) GetVersion() *status.BundleVersion
GetVersion returns the bundle version.
func (*DeltaComplianceStatusBundle) InheritEvents ¶
func (bundle *DeltaComplianceStatusBundle) InheritEvents(olderBundle Bundle) error
InheritEvents updates the content of this bundle with that of another older one (this bundle is the source of truth).
type DeltaStateBundle ¶
type DeltaStateBundle interface { DependantBundle // InheritEvents inherits the events in an older delta-bundle into the receiver (in-case of conflict, the receiver // is the source of truth). InheritEvents(olderBundle Bundle) error }
DeltaStateBundle abstracts the functionality required from a Bundle to be used as Delta-State bundle.
type DependantBundle ¶
type DependantBundle interface { Bundle // GetDependencyVersion returns the bundle dependency required version. GetDependencyVersion() *status.BundleVersion }
DependantBundle is a bundle that depends on a different bundle. to support bundles dependencies additional function is required - GetDependencyVersion, in order to start processing the dependant bundle only after it's required dependency (with required version) was processed.
type LocalClustersPerPolicyBundle ¶
type LocalClustersPerPolicyBundle struct{ ClustersPerPolicyBundle }
LocalClustersPerPolicyBundle abstracts management of local clusters per policy bundle.
type LocalCompleteComplianceStatusBundle ¶
type LocalCompleteComplianceStatusBundle struct{ CompleteComplianceStatusBundle }
LocalCompleteComplianceStatusBundle abstracts management of local complete compliance status bundle.
type LocalPlacementRulesBundle ¶
type LocalPlacementRulesBundle struct { Objects []*placementrulesv1.PlacementRule `json:"objects"` // contains filtered or unexported fields }
LocalPlacementRulesBundle abstracts management of local placement rules bundle.
func (*LocalPlacementRulesBundle) GetLeafHubName ¶
func (baseBundle *LocalPlacementRulesBundle) GetLeafHubName() string
GetLeafHubName returns the leaf hub name that sent the bundle.
func (*LocalPlacementRulesBundle) GetObjects ¶
func (bundle *LocalPlacementRulesBundle) GetObjects() []interface{}
GetObjects returns the objects in the bundle.
func (*LocalPlacementRulesBundle) GetVersion ¶
func (baseBundle *LocalPlacementRulesBundle) GetVersion() *status.BundleVersion
GetVersion returns the bundle version.
type LocalPolicySpecBundle ¶
type LocalPolicySpecBundle struct { Objects []*policiesv1.Policy `json:"objects"` // contains filtered or unexported fields }
LocalPolicySpecBundle abstracts management of local policies spec bundle.
func (*LocalPolicySpecBundle) GetLeafHubName ¶
func (baseBundle *LocalPolicySpecBundle) GetLeafHubName() string
GetLeafHubName returns the leaf hub name that sent the bundle.
func (*LocalPolicySpecBundle) GetObjects ¶
func (bundle *LocalPolicySpecBundle) GetObjects() []interface{}
GetObjects returns the objects in the bundle.
func (*LocalPolicySpecBundle) GetVersion ¶
func (baseBundle *LocalPolicySpecBundle) GetVersion() *status.BundleVersion
GetVersion returns the bundle version.
type ManagedClustersStatusBundle ¶
type ManagedClustersStatusBundle struct { Objects []*clustersv1.ManagedCluster `json:"objects"` // contains filtered or unexported fields }
ManagedClustersStatusBundle abstracts management of managed clusters bundle.
func (*ManagedClustersStatusBundle) GetLeafHubName ¶
func (baseBundle *ManagedClustersStatusBundle) GetLeafHubName() string
GetLeafHubName returns the leaf hub name that sent the bundle.
func (*ManagedClustersStatusBundle) GetObjects ¶
func (bundle *ManagedClustersStatusBundle) GetObjects() []interface{}
GetObjects returns the objects in the bundle.
func (*ManagedClustersStatusBundle) GetVersion ¶
func (baseBundle *ManagedClustersStatusBundle) GetVersion() *status.BundleVersion
GetVersion returns the bundle version.
type MinimalComplianceStatusBundle ¶
type MinimalComplianceStatusBundle struct {
status.BaseMinimalComplianceStatusBundle
}
MinimalComplianceStatusBundle abstracts management of minimal compliance status bundle.
func (*MinimalComplianceStatusBundle) GetLeafHubName ¶
func (bundle *MinimalComplianceStatusBundle) GetLeafHubName() string
GetLeafHubName returns the leaf hub name that sent the bundle.
func (*MinimalComplianceStatusBundle) GetObjects ¶
func (bundle *MinimalComplianceStatusBundle) GetObjects() []interface{}
GetObjects returns the objects in the bundle.
func (*MinimalComplianceStatusBundle) GetVersion ¶
func (bundle *MinimalComplianceStatusBundle) GetVersion() *status.BundleVersion
GetVersion returns the bundle version.
Source Files ¶
- base_bundle.go
- bundle.go
- clusters_per_policy_bundle.go
- complete_compliance_status_bundle.go
- control_info_bundle.go
- delta_compliance_status_bundle.go
- helpers.go
- local_clusters_per_policy_bundle.go
- local_complete_compliance_status_bundle.go
- local_placement_rules_bundle.go
- local_policy_spec_bundle.go
- managed_clusters_bundle.go
- minimal_compliace_status_bundle.go