Documentation ¶
Index ¶
- Constants
- Variables
- func ErrCreateData(err error) error
- func ErrDeleteData(err error) error
- func ErrMesheryClient(err error) error
- func ErrMeshsyncSubscription(err error) error
- func ErrPublishBroker(err error) error
- func ErrQuery(err error) error
- func ErrSubscribeChannel(err error) error
- func ErrUpdateData(err error) error
- func GetOperator(kubeclient *mesherykube.Client) (string, string, error)
- func Initialize(client *mesherykube.Client, delete bool) error
- func ListernToEvents(log logger.Handler, handler *database.Handler, datach chan *broker.Message, ...)
- func RunMeshSync(client *mesherykube.Client, delete bool) error
- func SubscribeToBroker(provider models.Provider, mesheryKubeClient *mesherykube.Client, ...) (string, error)
- type AddonList
- type AddonStatusInput
- type ControlPlane
- type ControlPlaneFilter
- type ControlPlaneMember
- type Error
- type MeshType
- type NameSpace
- type OperatorControllerStatus
- type OperatorStatus
- type OperatorStatusInput
- type ReSyncActions
- type Status
Constants ¶
View Source
const ( ErrInvalidRequestCode = "1000" ErrNilClientCode = "1001" ErrCreateDataCode = "1002" ErrQueryCode = "1003" ErrMeshsyncSubscriptionCode = "1004" ErrOperatorSubscriptionCode = "1005" ErrAddonSubscriptionCode = "1006" ErrControlPlaneSubscriptionCode = "1007" ErrMesheryClientCode = "1008" ErrSubscribeChannelCode = "1009" ErrPublishBrokerCode = "1010" ErrNoMeshSyncCode = "1011" ErrNoExternalEndpointCode = "1012" )
View Source
const ( Namespace = "meshery" RequestSubject = "meshery.meshsync.request" MeshsyncSubject = "meshery.meshsync.core" BrokerQueue = "meshery" )
Variables ¶
View Source
var AllMeshType = []MeshType{ MeshTypeAllMesh, MeshTypeInvalidMesh, MeshTypeAppMesh, MeshTypeCitrixServiceMesh, MeshTypeConsul, MeshTypeIstio, MeshTypeKuma, MeshTypeLinkerd, MeshTypeTraefikMesh, MeshTypeOctarine, MeshTypeNetworkServiceMesh, MeshTypeTanzu, MeshTypeOpenServiceMesh, MeshTypeNginxServiceMesh, }
View Source
var AllStatus = []Status{ StatusEnabled, StatusDisabled, StatusProcessing, StatusUnknown, }
View Source
var (
ErrEmptyHandler = errors.New(ErrNoMeshSyncCode, errors.Alert, []string{"Database handler not initialized"}, []string{"Meshery Database handler is not accessible to perform operations"}, []string{"Meshery Database is crashed or not reachable"}, []string{"Restart Meshery Server", "Please check if Meshery server is accessible to the Database"})
)
Functions ¶
func ErrCreateData ¶ added in v0.5.40
func ErrDeleteData ¶ added in v0.5.40
func ErrMesheryClient ¶ added in v0.5.40
func ErrMeshsyncSubscription ¶ added in v0.5.40
func ErrPublishBroker ¶ added in v0.5.40
func ErrSubscribeChannel ¶ added in v0.5.40
func ErrUpdateData ¶ added in v0.5.40
func GetOperator ¶ added in v0.5.40
func GetOperator(kubeclient *mesherykube.Client) (string, string, error)
func Initialize ¶ added in v0.5.40
func Initialize(client *mesherykube.Client, delete bool) error
func ListernToEvents ¶ added in v0.5.40
func ListernToEvents(log logger.Handler, handler *database.Handler, datach chan *broker.Message, meshsyncCh chan struct{}, operatorSyncChannel chan struct{}, controlPlaneSyncChannel chan struct{}, meshsyncLivenessChannel chan struct{}, )
listernToEvents - scale this function with the number of channels
func RunMeshSync ¶ added in v0.5.40
func RunMeshSync(client *mesherykube.Client, delete bool) error
Types ¶
type AddonList ¶
type AddonList struct { Name string `json:"name"` Owner string `json:"owner"` Endpoint string `json:"endpoint"` }
func GetAddonsState ¶ added in v0.5.40
type AddonStatusInput ¶ added in v0.5.15
type ControlPlane ¶
type ControlPlane struct { Name string `json:"name"` Members []*ControlPlaneMember `json:"members"` }
func GetControlPlaneState ¶ added in v0.5.40
func GetControlPlaneState(selectors []MeshType, provider models.Provider) ([]*ControlPlane, error)
type ControlPlaneFilter ¶
type ControlPlaneFilter struct {
Type *MeshType `json:"type"`
}
type ControlPlaneMember ¶
type MeshType ¶
type MeshType string
const ( MeshTypeAllMesh MeshType = "ALL_MESH" MeshTypeInvalidMesh MeshType = "INVALID_MESH" MeshTypeAppMesh MeshType = "APP_MESH" MeshTypeCitrixServiceMesh MeshType = "CITRIX_SERVICE_MESH" MeshTypeConsul MeshType = "CONSUL" MeshTypeIstio MeshType = "ISTIO" MeshTypeKuma MeshType = "KUMA" MeshTypeLinkerd MeshType = "LINKERD" MeshTypeTraefikMesh MeshType = "TRAEFIK_MESH" MeshTypeOctarine MeshType = "OCTARINE" MeshTypeNetworkServiceMesh MeshType = "NETWORK_SERVICE_MESH" MeshTypeTanzu MeshType = "TANZU" MeshTypeOpenServiceMesh MeshType = "OPEN_SERVICE_MESH" MeshTypeNginxServiceMesh MeshType = "NGINX_SERVICE_MESH" )
func (MeshType) MarshalGQL ¶
func (*MeshType) UnmarshalGQL ¶
type OperatorControllerStatus ¶
type OperatorControllerStatus struct { Name string `json:"name"` Version string `json:"version"` Status Status `json:"status"` Error *Error `json:"error"` }
func GetControllersInfo ¶ added in v0.5.40
func GetControllersInfo(mesheryKubeClient *mesherykube.Client, brokerConn brokerpkg.Handler, ch chan struct{}) ([]*OperatorControllerStatus, error)
type OperatorStatus ¶
type OperatorStatus struct { Status Status `json:"status"` Version string `json:"version"` Controllers []*OperatorControllerStatus `json:"controllers"` Error *Error `json:"error"` }
type OperatorStatusInput ¶ added in v0.5.15
type OperatorStatusInput struct {
TargetStatus Status `json:"targetStatus"`
}
type ReSyncActions ¶ added in v0.5.39
Click to show internal directories.
Click to hide internal directories.