bundle

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: Apache-2.0 Imports: 7 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.

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.

Jump to

Keyboard shortcuts

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