governance

package
v0.0.0-...-92a954c Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package config is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GovernanceConfig

type GovernanceConfig interface {
	SetConfig(key string, value string) error
	GetConfig(key string) (string, error)
	GetList(configSuffix string) (map[string]string, error)
	DeleteConfig(key string) error
	SetConfigWithGroup(group string, key string, value string) error
	GetConfigWithGroup(group string, key string) (string, error)
	DeleteConfigWithGroup(group string, key string) error
	Register(url *common.URL) error
	UnRegister(url *common.URL) error
}

type GovernanceConfigImpl

type GovernanceConfigImpl struct {
	// contains filtered or unexported fields
}

func (*GovernanceConfigImpl) DeleteConfig

func (g *GovernanceConfigImpl) DeleteConfig(key string) error

func (*GovernanceConfigImpl) DeleteConfigWithGroup

func (g *GovernanceConfigImpl) DeleteConfigWithGroup(group string, key string) error

func (*GovernanceConfigImpl) GetConfig

func (g *GovernanceConfigImpl) GetConfig(key string) (string, error)

func (*GovernanceConfigImpl) GetConfigWithGroup

func (g *GovernanceConfigImpl) GetConfigWithGroup(group string, key string) (string, error)

func (*GovernanceConfigImpl) GetList

func (g *GovernanceConfigImpl) GetList(ConfigSuffix string) (map[string]string, error)

func (*GovernanceConfigImpl) Register

func (g *GovernanceConfigImpl) Register(url *common.URL) error

func (*GovernanceConfigImpl) SetConfig

func (g *GovernanceConfigImpl) SetConfig(key string, value string) error

func (*GovernanceConfigImpl) SetConfigWithGroup

func (g *GovernanceConfigImpl) SetConfigWithGroup(group string, key string, value string) error

func (*GovernanceConfigImpl) UnRegister

func (g *GovernanceConfigImpl) UnRegister(url *common.URL) error

type MockGovernanceConfig

type MockGovernanceConfig struct {
	// contains filtered or unexported fields
}

MockGovernanceConfig is a mock of GovernanceConfig interface.

func NewMockGovernanceConfig

func NewMockGovernanceConfig(ctrl *gomock.Controller) *MockGovernanceConfig

NewMockGovernanceConfig creates a new mock instance.

func (*MockGovernanceConfig) DeleteConfig

func (m *MockGovernanceConfig) DeleteConfig(arg0 string) error

DeleteConfig mocks base method.

func (*MockGovernanceConfig) DeleteConfigWithGroup

func (m *MockGovernanceConfig) DeleteConfigWithGroup(arg0, arg1 string) error

DeleteConfigWithGroup mocks base method.

func (*MockGovernanceConfig) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockGovernanceConfig) GetConfig

func (m *MockGovernanceConfig) GetConfig(arg0 string) (string, error)

GetConfig mocks base method.

func (*MockGovernanceConfig) GetConfigWithGroup

func (m *MockGovernanceConfig) GetConfigWithGroup(arg0, arg1 string) (string, error)

GetConfigWithGroup mocks base method.

func (*MockGovernanceConfig) GetList

func (m *MockGovernanceConfig) GetList(arg0 string) (map[string]string, error)

func (*MockGovernanceConfig) Register

func (m *MockGovernanceConfig) Register(arg0 *common.URL) error

Register mocks base method.

func (*MockGovernanceConfig) SetConfig

func (m *MockGovernanceConfig) SetConfig(arg0, arg1 string) error

SetConfig mocks base method.

func (*MockGovernanceConfig) SetConfigWithGroup

func (m *MockGovernanceConfig) SetConfigWithGroup(arg0, arg1, arg2 string) error

SetConfigWithGroup mocks base method.

func (*MockGovernanceConfig) UnRegister

func (m *MockGovernanceConfig) UnRegister(arg0 *common.URL) error

UnRegister mocks base method.

type MockGovernanceConfigMockRecorder

type MockGovernanceConfigMockRecorder struct {
	// contains filtered or unexported fields
}

MockGovernanceConfigMockRecorder is the mock recorder for MockGovernanceConfig.

func (*MockGovernanceConfigMockRecorder) DeleteConfig

func (mr *MockGovernanceConfigMockRecorder) DeleteConfig(arg0 interface{}) *gomock.Call

DeleteConfig indicates an expected call of DeleteConfig.

func (*MockGovernanceConfigMockRecorder) DeleteConfigWithGroup

func (mr *MockGovernanceConfigMockRecorder) DeleteConfigWithGroup(arg0, arg1 interface{}) *gomock.Call

DeleteConfigWithGroup indicates an expected call of DeleteConfigWithGroup.

func (*MockGovernanceConfigMockRecorder) GetConfig

func (mr *MockGovernanceConfigMockRecorder) GetConfig(arg0 interface{}) *gomock.Call

GetConfig indicates an expected call of GetConfig.

func (*MockGovernanceConfigMockRecorder) GetConfigWithGroup

func (mr *MockGovernanceConfigMockRecorder) GetConfigWithGroup(arg0, arg1 interface{}) *gomock.Call

GetConfigWithGroup indicates an expected call of GetConfigWithGroup.

func (*MockGovernanceConfigMockRecorder) Register

func (mr *MockGovernanceConfigMockRecorder) Register(arg0 interface{}) *gomock.Call

Register indicates an expected call of Register.

func (*MockGovernanceConfigMockRecorder) SetConfig

func (mr *MockGovernanceConfigMockRecorder) SetConfig(arg0, arg1 interface{}) *gomock.Call

SetConfig indicates an expected call of SetConfig.

func (*MockGovernanceConfigMockRecorder) SetConfigWithGroup

func (mr *MockGovernanceConfigMockRecorder) SetConfigWithGroup(arg0, arg1, arg2 interface{}) *gomock.Call

SetConfigWithGroup indicates an expected call of SetConfigWithGroup.

func (*MockGovernanceConfigMockRecorder) UnRegister

func (mr *MockGovernanceConfigMockRecorder) UnRegister(arg0 interface{}) *gomock.Call

UnRegister indicates an expected call of UnRegister.

type NacosGovImpl

type NacosGovImpl struct {
	GovernanceConfig
	// contains filtered or unexported fields
}

func (*NacosGovImpl) GetConfig

func (n *NacosGovImpl) GetConfig(key string) (string, error)

GetConfig transform Nacos specified 'node does not exist' err into unified admin rule error

func (*NacosGovImpl) SetConfig

func (n *NacosGovImpl) SetConfig(key string, value string) error

SetConfig transform Nacos specified 'node already exist' err into unified admin rule error

type RuleExists

type RuleExists struct {
	// contains filtered or unexported fields
}

func (*RuleExists) Error

func (exist *RuleExists) Error() string

type RuleNotFound

type RuleNotFound struct {
	// contains filtered or unexported fields
}

func (*RuleNotFound) Error

func (notFound *RuleNotFound) Error() string

type ZkGovImpl

type ZkGovImpl struct {
	GovernanceConfig
	// contains filtered or unexported fields
}

func (*ZkGovImpl) GetConfig

func (c *ZkGovImpl) GetConfig(key string) (string, error)

GetConfig transform ZK specified 'node does not exist' err into unified admin rule error

func (*ZkGovImpl) SetConfig

func (c *ZkGovImpl) SetConfig(key string, value string) error

SetConfig transform ZK specified 'node already exist' err into unified admin rule error

Jump to

Keyboard shortcuts

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