bundle

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Index

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.

func NewPlacementDecisionsBundle

func NewPlacementDecisionsBundle() Bundle

NewPlacementDecisionsBundle creates a new instance of PlacementDecisionsBundle.

func NewPlacementRulesBundle

func NewPlacementRulesBundle() Bundle

NewPlacementRulesBundle creates a new instance of PlacementRulesBundle.

func NewPlacementsBundle

func NewPlacementsBundle() Bundle

NewPlacementsBundle creates a new instance of PlacementsBundle.

func NewSubscriptionReportsBundle

func NewSubscriptionReportsBundle() Bundle

NewSubscriptionReportsBundle creates a new instance of SubscriptionReportsBundle.

func NewSubscriptionStatusesBundle

func NewSubscriptionStatusesBundle() Bundle

NewSubscriptionStatusesBundle creates a new instance of SubscriptionStatusesBundle.

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 delta 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 its 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 []*placementrulev1.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 []*policyv1.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 []*clusterv1.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.

type PlacementDecisionsBundle

type PlacementDecisionsBundle struct {
	Objects []*clusterv1beta1.PlacementDecision `json:"objects"`
	// contains filtered or unexported fields
}

PlacementDecisionsBundle abstracts management of placement-decisions bundle.

func (*PlacementDecisionsBundle) GetLeafHubName

func (baseBundle *PlacementDecisionsBundle) GetLeafHubName() string

GetLeafHubName returns the leaf hub name that sent the bundle.

func (*PlacementDecisionsBundle) GetObjects

func (bundle *PlacementDecisionsBundle) GetObjects() []interface{}

GetObjects return all the objects that the bundle holds.

func (*PlacementDecisionsBundle) GetVersion

func (baseBundle *PlacementDecisionsBundle) GetVersion() *status.BundleVersion

GetVersion returns the bundle version.

type PlacementRulesBundle

type PlacementRulesBundle struct {
	Objects []*placementrulev1.PlacementRule `json:"objects"`
	// contains filtered or unexported fields
}

PlacementRulesBundle abstracts management of placement-rules bundle.

func (*PlacementRulesBundle) GetLeafHubName

func (baseBundle *PlacementRulesBundle) GetLeafHubName() string

GetLeafHubName returns the leaf hub name that sent the bundle.

func (*PlacementRulesBundle) GetObjects

func (bundle *PlacementRulesBundle) GetObjects() []interface{}

GetObjects return all the objects that the bundle holds.

func (*PlacementRulesBundle) GetVersion

func (baseBundle *PlacementRulesBundle) GetVersion() *status.BundleVersion

GetVersion returns the bundle version.

type PlacementsBundle

type PlacementsBundle struct {
	Objects []*clusterv1beta1.Placement `json:"objects"`
	// contains filtered or unexported fields
}

PlacementsBundle abstracts management of placement bundle.

func (*PlacementsBundle) GetLeafHubName

func (baseBundle *PlacementsBundle) GetLeafHubName() string

GetLeafHubName returns the leaf hub name that sent the bundle.

func (*PlacementsBundle) GetObjects

func (bundle *PlacementsBundle) GetObjects() []interface{}

GetObjects return all the objects that the bundle holds.

func (*PlacementsBundle) GetVersion

func (baseBundle *PlacementsBundle) GetVersion() *status.BundleVersion

GetVersion returns the bundle version.

type SubscriptionReportsBundle

type SubscriptionReportsBundle struct {
	Objects []*appsv1alpha1.SubscriptionReport `json:"objects"`
	// contains filtered or unexported fields
}

SubscriptionReportsBundle abstracts management of subscription-reports bundle.

func (*SubscriptionReportsBundle) GetLeafHubName

func (baseBundle *SubscriptionReportsBundle) GetLeafHubName() string

GetLeafHubName returns the leaf hub name that sent the bundle.

func (*SubscriptionReportsBundle) GetObjects

func (bundle *SubscriptionReportsBundle) GetObjects() []interface{}

GetObjects return all the objects that the bundle holds.

func (*SubscriptionReportsBundle) GetVersion

func (baseBundle *SubscriptionReportsBundle) GetVersion() *status.BundleVersion

GetVersion returns the bundle version.

type SubscriptionStatusesBundle

type SubscriptionStatusesBundle struct {
	Objects []*appsv1alpha1.SubscriptionStatus `json:"objects"`
	// contains filtered or unexported fields
}

SubscriptionStatusesBundle abstracts management of subscription-statuses bundle.

func (*SubscriptionStatusesBundle) GetLeafHubName

func (baseBundle *SubscriptionStatusesBundle) GetLeafHubName() string

GetLeafHubName returns the leaf hub name that sent the bundle.

func (*SubscriptionStatusesBundle) GetObjects

func (bundle *SubscriptionStatusesBundle) GetObjects() []interface{}

GetObjects return all the objects that the bundle holds.

func (*SubscriptionStatusesBundle) GetVersion

func (baseBundle *SubscriptionStatusesBundle) GetVersion() *status.BundleVersion

GetVersion returns the bundle version.

Jump to

Keyboard shortcuts

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