service

package
v0.0.0-...-625aa4e Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: MIT Imports: 7 Imported by: 0

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

type FleetManagerReader interface {
	GetClusters(ctx context.Context, env Environment) ([]entity.Cluster, error)
}

Jump to

Keyboard shortcuts

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