service

package
v0.0.0-...-2d73068 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: Apache-2.0 Imports: 19 Imported by: 3

Documentation

Overview

Package service provides the code which encapsulates business logic for managing target OpenShift clusters

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterByURL

func ClusterByURL(clusters map[string]cluster.Cluster, url string) *cluster.Cluster

func Clusters

func Clusters(clusters map[string]cluster.Cluster) []cluster.Cluster

Clusters converts the given cluster map to an array slice

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.

Jump to

Keyboard shortcuts

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