1 Star 0 Fork 0

ryancartoon / sensu-go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
extension.go 784 Bytes
一键复制 编辑 原始数据 按行查看 历史
package mockstore
import (
"context"
"github.com/sensu/sensu-go/backend/store"
"github.com/sensu/sensu-go/types"
)
func (s *MockStore) RegisterExtension(ctx context.Context, ext *types.Extension) error {
args := s.Called(ctx, ext)
return args.Error(0)
}
func (s *MockStore) DeregisterExtension(ctx context.Context, name string) error {
args := s.Called(ctx, name)
return args.Error(0)
}
func (s *MockStore) GetExtension(ctx context.Context, name string) (*types.Extension, error) {
args := s.Called(ctx, name)
return args.Get(0).(*types.Extension), args.Error(1)
}
func (s *MockStore) GetExtensions(ctx context.Context, pred *store.SelectionPredicate) ([]*types.Extension, error) {
args := s.Called(ctx, pred)
return args.Get(0).([]*types.Extension), args.Error(1)
}
1
https://gitee.com/ryancartoon/sensu-go.git
git@gitee.com:ryancartoon/sensu-go.git
ryancartoon
sensu-go
sensu-go
v5.10.1

搜索帮助