controllers

package
v0.0.0-...-6a25cbf Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	SERVICE_NAME = "controller-manager"
)

Variables

This section is empty.

Functions

func AddDeployment

func AddDeployment(userId string, deployment *models.Deployment) (*models.Deployment, error)

AddDeployment create a new deployment

func DeleteDeployment

func DeleteDeployment(userId string, deploymentId string) error

DeleteDeployment delete an existed deployment and notify peer nodes

func DeleteRuleChain

func DeleteRuleChain(userId string, chainId string) error

Delete will delete a specified rule chain

func GetDeployment

func GetDeployment(userId string, deploymentId string) (*models.Deployment, error)

GetDeploynent return a specified deployment

func GetRuleChain

func GetRuleChain(userId string, chainId string) (*models.RuleChain, error)

GetRuleChain return a specified rule chain

func GetRuleChainMetadata

func GetRuleChainMetadata(userId string, chainId string) ([]byte, error)

GetRuleChainMetadata return a chain's metadata

func ListDeployments

func ListDeployments(query models.Query) ([]*models.Deployment, error)

ListDeployments return all deployments

func ListRuleChains

func ListRuleChains(query models.Query) ([]*models.RuleChain, error)

ListRuleChains return a user's rule chains

func SaveRuleChain

func SaveRuleChain(userId string, chain *models.RuleChain) error

SaveRuleChain update an existed rule chain

func SaveRuleChainMetadata

func SaveRuleChainMetadata(userId string, chainId string, metadata []byte) error

SaveRuleChainMetadata will save a rule chain's metadata

func SetDeploymentStatus

func SetDeploymentStatus(userId string, deploymentId string, status string) error

SetDeploymentStatus set a deployment status according to user's request

func UpdateDeployment

func UpdateDeployment(userId string, deployment *models.Deployment) error

UpdateDeployment update an existed deployment

Types

type Controller

type Controller interface {
	OnModelNotified(path string, reason string, obj interface{})
	Shutdown()
}

Directories

Path Synopsis
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License.
inproc
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License.
rabbitmq
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License.
raft
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use p file except in compliance with the License.

Jump to

Keyboard shortcuts

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