cluster

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: 1 Imported by: 0

Documentation

Overview

Package cluster contains the code to communicate with Cluster Management Service

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	Name                   string `mapstructure:"name"`
	APIURL                 string `mapstructure:"api-url"`
	ConsoleURL             string `mapstructure:"console-url"` // Optional in oso-clusters.conf
	MetricsURL             string `mapstructure:"metrics-url"` // Optional in oso-clusters.conf
	LoggingURL             string `mapstructure:"logging-url"` // Optional in oso-clusters.conf
	AppDNS                 string `mapstructure:"app-dns"`
	ServiceAccountToken    string `mapstructure:"service-account-token"`
	ServiceAccountUsername string `mapstructure:"service-account-username"`
	TokenProviderID        string `mapstructure:"token-provider-id"`
	AuthClientID           string `mapstructure:"auth-client-id"`
	AuthClientSecret       string `mapstructure:"auth-client-secret"`
	AuthClientDefaultScope string `mapstructure:"auth-client-default-scope"`
	CapacityExhausted      bool   `mapstructure:"capacity-exhausted"` // Optional in oso-clusters.conf ('false' by default)
}

Cluster represents an OpenShift cluster configuration

type ClusterCache

type ClusterCache interface {
	RLock()
	RUnlock()
	Clusters() map[string]Cluster
	Start(ctx context.Context) error
	Stop()
}

Directories

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

Jump to

Keyboard shortcuts

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