Documentation ¶
Index ¶
Constants ¶
View Source
const ( Integration Environment = iota Stage Production Unknown IntegrationURl = "https://api.integration.openshift.com" StageURL = "https://api.stage.openshift.com" ProdURL = "https://api.openshift.com" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Environment ¶
type Environment int
func (Environment) String ¶
func (e Environment) String() string
type FleetManager ¶
type FleetManager struct {
// contains filtered or unexported fields
}
func NewFleetManager ¶
func NewFleetManager(token string) *FleetManager
func (*FleetManager) GetClusters ¶
func (fm *FleetManager) GetClusters(ctx context.Context, env Environment) ([]entity.Cluster, error)
type FleetManagerCache ¶
type FleetManagerCache struct {
// contains filtered or unexported fields
}
wrapper around FleetManager for cache
func NewDefaultFleetManagerCache ¶
func NewDefaultFleetManagerCache(reader FleetManagerReader) *FleetManagerCache
func NewFleetManagerCache ¶
func NewFleetManagerCache(reader FleetManagerReader, cacheTtl time.Duration) *FleetManagerCache
func (*FleetManagerCache) GetClusters ¶
func (c *FleetManagerCache) GetClusters(ctx context.Context, env Environment) ([]entity.Cluster, error)
type FleetManagerReader ¶
Click to show internal directories.
Click to hide internal directories.