Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBundleManager ¶
func NewPackageBundleClient ¶ added in v0.1.7
Types ¶
type Client ¶ added in v0.1.7
type Client interface { // IsActive returns true if the bundle is the active bundle IsActive(ctx context.Context, packageBundle *api.PackageBundle) (bool, error) // GetActiveBundle retrieves the currently active bundle. GetActiveBundle(ctx context.Context) (activeBundle *api.PackageBundle, err error) // GetActiveBundleNamespacedName retrieves the namespace and name of the // currently active bundle. GetActiveBundleNamespacedName(ctx context.Context) (types.NamespacedName, error) // GetBundleList get list of bundles worthy of consideration GetBundleList(ctx context.Context, bundles *api.PackageBundleList) error // CreateBundle add a new bundle custom resource CreateBundle(ctx context.Context, bundle *api.PackageBundle) error }
type Manager ¶
type Manager interface { // ProcessBundle returns true if there are changes ProcessBundle(ctx context.Context, newBundle *api.PackageBundle) (bool, error) // ProcessLatestBundle make sure we save the latest bundle ProcessLatestBundle(ctx context.Context, latestBundle *api.PackageBundle) error // LatestBundle pulls the bundle tagged with "latest" from the bundle source. LatestBundle(ctx context.Context, baseRef string) ( *api.PackageBundle, error) // DownloadBundle downloads the bundle with a given tag. DownloadBundle(ctx context.Context, ref string) ( *api.PackageBundle, error) // SortBundlesDescending sort bundles latest first SortBundlesDescending(bundles []api.PackageBundle) }
Click to show internal directories.
Click to hide internal directories.