operator

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrCortexInstallationBroken    = "operator.cortex_installation_broken"
	ErrLoadBalancerInitializing    = "operator.load_balancer_initializing"
	ErrMalformedConfig             = "operator.malformed_config"
	ErrNoAPIs                      = "operator.no_apis"
	ErrAPIUpdating                 = "operator.api_updating"
	ErrAPINotDeployed              = "operator.api_not_deployed"
	ErrNoAvailableNodeComputeLimit = "operator.no_available_node_compute_limit"
)

Variables

This section is empty.

Functions

func APIsBaseURL

func APIsBaseURL() (string, error)

func DeleteAPI

func DeleteAPI(apiName string, keepCache bool) error

func DownloadAPISpec

func DownloadAPISpec(apiName string, apiID string) (*spec.API, error)

func DownloadAPISpecs

func DownloadAPISpecs(apiNames []string, apiIDs []string) ([]spec.API, error)

func ErrorAPINotDeployed

func ErrorAPINotDeployed(apiName string) error

func ErrorAPIUpdating added in v0.15.0

func ErrorAPIUpdating(apiName string) error

func ErrorCortexInstallationBroken

func ErrorCortexInstallationBroken() error

func ErrorLoadBalancerInitializing

func ErrorLoadBalancerInitializing() error

func ErrorNoAvailableNodeComputeLimit

func ErrorNoAvailableNodeComputeLimit(resource string, reqStr string, maxStr string) error

func GetAllStatuses

func GetAllStatuses() ([]status.Status, error)

func GetMetrics

func GetMetrics(api *spec.API) (*metrics.Metrics, error)

func GetMultipleMetrics

func GetMultipleMetrics(apis []spec.API) ([]metrics.Metrics, error)

func GetStatus

func GetStatus(apiName string) (*status.Status, error)

func Init

func Init() error

func IsAPIDeployed

func IsAPIDeployed(apiName string) (bool, error)

func ReadLogs

func ReadLogs(apiName string, socket *websocket.Conn)

func RefreshAPI

func RefreshAPI(apiName string, force bool) (string, error)

func UpdateAPI

func UpdateAPI(apiConfig *userconfig.API, projectID string, force bool) (*spec.API, string, error)

func ValidateClusterAPIs added in v0.16.0

func ValidateClusterAPIs(apis []userconfig.API, projectFiles spec.ProjectFiles) error

Types

type ProjectFiles added in v0.16.0

type ProjectFiles struct {
	ProjectByteMap map[string][]byte
	ConfigFilePath string
}

func (ProjectFiles) GetAllPaths added in v0.16.0

func (projectFiles ProjectFiles) GetAllPaths() []string

func (ProjectFiles) GetConfigFilePath added in v0.16.0

func (projectFiles ProjectFiles) GetConfigFilePath() string

func (ProjectFiles) GetFile added in v0.16.0

func (projectFiles ProjectFiles) GetFile(fileName string) ([]byte, error)

Jump to

Keyboard shortcuts

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