Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAvailableVersions ¶
func GetAvailableVersions(a AvailableVersions) ([]types.ComponentVersion, error)
GetAvailableVersions gets available component version data
Types ¶
type AvailableVersions ¶
type AvailableVersions interface { // will have a Refresh method to retrieve the version data from the remote authority Refresh() ([]types.ComponentVersion, error) // will have a Store method to cache the version data in memory Store([]types.ComponentVersion) }
AvailableVersions is an interface for managing available component version data
type AvailableVersionsFromAPI ¶
type AvailableVersionsFromAPI struct{}
AvailableVersionsFromAPI fulfills the AvailableVersions interface
func (AvailableVersionsFromAPI) Refresh ¶
func (a AvailableVersionsFromAPI) Refresh() ([]types.ComponentVersion, error)
Refresh method for AvailableVersionsFromAPI
func (AvailableVersionsFromAPI) Store ¶
func (a AvailableVersionsFromAPI) Store(c []types.ComponentVersion)
Store method for AvailableVersionsFromAPI
type ClusterID ¶
type ClusterID interface { // will have a Get method to retrieve the cluster ID Get() (string, error) }
ClusterID is an interface for managing cluster ID data
type ClusterIDFromPersistentStorage ¶
type ClusterIDFromPersistentStorage struct{}
ClusterIDFromPersistentStorage fulfills the ClusterID interface
func (ClusterIDFromPersistentStorage) Get ¶
func (c ClusterIDFromPersistentStorage) Get() (string, error)
Get method for ClusterIDFromPersistentStorage
Click to show internal directories.
Click to hide internal directories.