Documentation ¶
Overview ¶
Package service provides the code which encapsulates business logic for managing target OpenShift clusters
Index ¶
- func ClusterByURL(clusters map[string]cluster.Cluster, url string) *cluster.Cluster
- func Clusters(clusters map[string]cluster.Cluster) []cluster.Cluster
- func NewCache(config clusterConfig, options ...rest.HTTPClientOption) cluster.ClusterCache
- func NewClusterService(context servicecontext.ServiceContext, config clusterServiceConfig) service.ClusterService
- func Start(ctx context.Context, factory service.ClusterCacheFactory, ...) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClusterByURL ¶
func NewCache ¶
func NewCache(config clusterConfig, options ...rest.HTTPClientOption) cluster.ClusterCache
func NewClusterService ¶
func NewClusterService(context servicecontext.ServiceContext, config clusterServiceConfig) service.ClusterService
NewClusterService creates a new cluster service
func Start ¶
func Start(ctx context.Context, factory service.ClusterCacheFactory, options ...rest.HTTPClientOption) (bool, error)
Start initializes the default Cluster cache if it's not initialized already Cache initialization loads the list of clusters from the cluster management service and starts regular cache refresher
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.