data

package
v2.0.0-beta2+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2016 License: Apache-2.0 Imports: 12 Imported by: 0

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

func GetID

func GetID(id ClusterID) (string, error)

GetID gets the cluster ID

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

Refresh method for AvailableVersionsFromAPI

func (AvailableVersionsFromAPI) Store

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

Get method for ClusterIDFromPersistentStorage

Jump to

Keyboard shortcuts

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