controllers

package
v0.5.35 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrGetControllerStatusCode         = "11080"
	ErrDeployControllerCode            = "11081"
	ErrGetControllerPublicEndpointCode = "11082"
)

Functions

func ErrDeployController

func ErrDeployController(err error) error

func ErrGetControllerPublicEndpoint

func ErrGetControllerPublicEndpoint(err error) error

func ErrGetControllerStatus

func ErrGetControllerStatus(err error) error

func GetBrokerEndpoint

func GetBrokerEndpoint(kclient *mesherykube.Client, broker *v1alpha1.Broker) string

Types

type IMesheryController

type IMesheryController interface {
	GetName() string
	GetStatus() MesheryControllerStatus
	Deploy() error
	GetPublicEndpoint() (string, error)
	GetVersion() (string, error)
}

func NewMesheryBrokerHandler

func NewMesheryBrokerHandler(kubernetesClient *mesherykube.Client) IMesheryController

func NewMesheryOperatorHandler

func NewMesheryOperatorHandler(client *mesherykube.Client, deploymentConf OperatorDeploymentConfig) IMesheryController

func NewMeshsyncHandler

func NewMeshsyncHandler(kubernetesClient *mesherykube.Client) IMesheryController

type MesheryControllerStatus

type MesheryControllerStatus int
const (
	Deployed MesheryControllerStatus = iota
	Deploying
	NotDeployed
	// we don't know since we have not checked yet
	Unknown
)

func (MesheryControllerStatus) String

func (mcs MesheryControllerStatus) String() string

type OperatorDeploymentConfig

type OperatorDeploymentConfig struct {
	GetHelmOverrides      func(delete bool) map[string]interface{}
	HelmChartRepo         string
	MesheryReleaseVersion string
}

Jump to

Keyboard shortcuts

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